aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/board-omap3beagle.c
diff options
context:
space:
mode:
authorAfzal Mohammed <afzal@ti.com>2012-02-29 07:41:56 -0500
committerAfzal Mohammed <afzal@ti.com>2012-10-15 02:30:44 -0400
commit2e618261c96d72e5c5409d134d6d93e679683ab8 (patch)
tree26695df308bf730aa404e2106272c2885e6cf3ff /arch/arm/mach-omap2/board-omap3beagle.c
parentddffeb8c4d0331609ef2581d84de4d763607bd37 (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-omap3beagle.c')
-rw-r--r--arch/arm/mach-omap2/board-omap3beagle.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/board-omap3beagle.c b/arch/arm/mach-omap2/board-omap3beagle.c
index 388c431c745a..43b5f797e712 100644
--- a/arch/arm/mach-omap2/board-omap3beagle.c
+++ b/arch/arm/mach-omap2/board-omap3beagle.c
@@ -49,8 +49,11 @@
49#include "mux.h" 49#include "mux.h"
50#include "hsmmc.h" 50#include "hsmmc.h"
51#include "pm.h" 51#include "pm.h"
52#include "board-flash.h"
52#include "common-board-devices.h" 53#include "common-board-devices.h"
53 54
55#define NAND_CS 0
56
54/* 57/*
55 * OMAP3 Beagle revision 58 * OMAP3 Beagle revision
56 * Run time detection of Beagle revision is done by reading GPIO. 59 * Run time detection of Beagle revision is done by reading GPIO.
@@ -512,8 +515,9 @@ static void __init omap3_beagle_init(void)
512 515
513 usb_musb_init(NULL); 516 usb_musb_init(NULL);
514 usbhs_init(&usbhs_bdata); 517 usbhs_init(&usbhs_bdata);
515 omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions, 518 board_nand_init(omap3beagle_nand_partitions,
516 ARRAY_SIZE(omap3beagle_nand_partitions)); 519 ARRAY_SIZE(omap3beagle_nand_partitions), NAND_CS,
520 NAND_BUSWIDTH_16, NULL);
517 omap_twl4030_audio_init("omap3beagle"); 521 omap_twl4030_audio_init("omap3beagle");
518 522
519 /* Ensure msecure is mux'd to be able to set the RTC. */ 523 /* Ensure msecure is mux'd to be able to set the RTC. */