diff options
author | Afzal Mohammed <afzal@ti.com> | 2012-02-29 07:41:56 -0500 |
---|---|---|
committer | Afzal Mohammed <afzal@ti.com> | 2012-10-15 02:30:44 -0400 |
commit | 2e618261c96d72e5c5409d134d6d93e679683ab8 (patch) | |
tree | 26695df308bf730aa404e2106272c2885e6cf3ff /arch/arm/mach-omap2/board-omap3touchbook.c | |
parent | ddffeb8c4d0331609ef2581d84de4d763607bd37 (diff) |
ARM: OMAP2+: nand: unify init functions
Helper function for updating nand platform data has been
added the capability to take timing structure arguement.
Usage of omap_nand_flash_init() has been replaced by modifed
one, omap_nand_flash_init was doing things similar to
board_nand_init except that NAND CS# were being acquired
based on bootloader setting. As CS# is hardwired for a given
board, acquiring gpmc CS# has been removed, and updated with
the value on board.
NAND CS# used in beagle board & omap3evm was found to be CS0.
Thomas Weber <thomas.weber.linux@googlemail.com> reported
that value of devkit8000 to be CS0. Overo board was found
to be using CS0 based on u-boot, while google grep says
omap3touchbook too has CS0.
Signed-off-by: Afzal Mohammed <afzal@ti.com>
Reviewed-by: Jon Hunter <jon-hunter@ti.com>
Acked-by: Igor Grinberg <grinberg@compulab.co.il>
Diffstat (limited to 'arch/arm/mach-omap2/board-omap3touchbook.c')
-rw-r--r-- | arch/arm/mach-omap2/board-omap3touchbook.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-omap3touchbook.c b/arch/arm/mach-omap2/board-omap3touchbook.c index 944ffc436577..3f013c8511ee 100644 --- a/arch/arm/mach-omap2/board-omap3touchbook.c +++ b/arch/arm/mach-omap2/board-omap3touchbook.c | |||
@@ -50,6 +50,7 @@ | |||
50 | 50 | ||
51 | #include "mux.h" | 51 | #include "mux.h" |
52 | #include "hsmmc.h" | 52 | #include "hsmmc.h" |
53 | #include "board-flash.h" | ||
53 | #include "common-board-devices.h" | 54 | #include "common-board-devices.h" |
54 | 55 | ||
55 | #include <asm/setup.h> | 56 | #include <asm/setup.h> |
@@ -59,6 +60,8 @@ | |||
59 | #define TB_BL_PWM_TIMER 9 | 60 | #define TB_BL_PWM_TIMER 9 |
60 | #define TB_KILL_POWER_GPIO 168 | 61 | #define TB_KILL_POWER_GPIO 168 |
61 | 62 | ||
63 | #define NAND_CS 0 | ||
64 | |||
62 | static unsigned long touchbook_revision; | 65 | static unsigned long touchbook_revision; |
63 | 66 | ||
64 | static struct mtd_partition omap3touchbook_nand_partitions[] = { | 67 | static struct mtd_partition omap3touchbook_nand_partitions[] = { |
@@ -365,8 +368,9 @@ static void __init omap3_touchbook_init(void) | |||
365 | omap_ads7846_init(4, OMAP3_TS_GPIO, 310, &ads7846_pdata); | 368 | omap_ads7846_init(4, OMAP3_TS_GPIO, 310, &ads7846_pdata); |
366 | usb_musb_init(NULL); | 369 | usb_musb_init(NULL); |
367 | usbhs_init(&usbhs_bdata); | 370 | usbhs_init(&usbhs_bdata); |
368 | omap_nand_flash_init(NAND_BUSWIDTH_16, omap3touchbook_nand_partitions, | 371 | board_nand_init(omap3touchbook_nand_partitions, |
369 | ARRAY_SIZE(omap3touchbook_nand_partitions)); | 372 | ARRAY_SIZE(omap3touchbook_nand_partitions), NAND_CS, |
373 | NAND_BUSWIDTH_16, NULL); | ||
370 | 374 | ||
371 | /* Ensure SDRC pins are mux'd for self-refresh */ | 375 | /* Ensure SDRC pins are mux'd for self-refresh */ |
372 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); | 376 | omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT); |