From 310995d9f91ae56082b49be06fe8c3d01424f8f6 Mon Sep 17 00:00:00 2001 From: Wilson Lee Date: Wed, 15 Nov 2017 01:14:35 -0800 Subject: mtd: zynq: nand: Move board_nand_init() function to board.c Putting board_nand_init() function inside NAND driver was not appropriate due to it doesn't allow board vendor to customise their NAND initialization code such as adding NAND lock/unlock code. This commit was to move the board_nand_init() function from NAND driver to board.c file. This allow customization of board_nand_init() function. Signed-off-by: Wilson Lee Cc: Joe Hershberger Cc: Keng Soon Cheah Cc: Chen Yee Chew Cc: Albert Aribaud Cc: Michal Simek Cc: Siva Durga Prasad Paladugu Cc: Scott Wood Signed-off-by: Michal Simek --- arch/arm/mach-zynq/include/mach/nand.h | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 arch/arm/mach-zynq/include/mach/nand.h (limited to 'arch/arm/mach-zynq') diff --git a/arch/arm/mach-zynq/include/mach/nand.h b/arch/arm/mach-zynq/include/mach/nand.h new file mode 100644 index 0000000000..61ef45f582 --- /dev/null +++ b/arch/arm/mach-zynq/include/mach/nand.h @@ -0,0 +1,9 @@ +/* + * Copyright (C) 2017 National Instruments Corp. + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include + +void zynq_nand_init(void); -- cgit