diff options
author | Vimal Singh <vimalsingh@ti.com> | 2010-02-15 19:03:33 +0100 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-02-15 19:03:33 +0100 |
commit | c2798e9342a1394de966c31703e0410ee3988378 (patch) | |
tree | 094ad60443db864d6db80d5c7c6497fade9fbbcc /arch/arm/plat-omap/include/plat/gpmc.h | |
parent | omap2/3/4: Introducing 'gpmc-nand.c' for GPMC specific NAND init (diff) | |
download | linux-c2798e9342a1394de966c31703e0410ee3988378.tar.xz linux-c2798e9342a1394de966c31703e0410ee3988378.zip |
omap3: SDP: Introducing 'board-sdp-flash.c' for flash init
This patch adds 'board-sdp-flash.c', which could be utilized
by boards similar to 3430SDP. (For ex: 2430sdp, 36030sdp).
This file does initialization for all three flash devices present
in SDP boards (NOR, NAND, OneNAND), by finding there 'cs' number
dynamically using switch setting information (S8: 1-4).
This also expects partition information from core board files (for
ex: board-3430sdp.c). Which allows to choose different default
partitions for different boards.
A new structure is created for this purpose: 'flash_partitions'
in 'mach/board-sdp.h'. This has two members:
1. struct mtd_partition *parts
2. int nr_parts
A board file is expected to fill this structure and pass it to
'sdp-flsash-init'. Partition information should be passed in
structure array of 'flash_partitions'. Partition information should
be passed in below sequence in array:
NOR
OneNAND
NAND
Signed-off-by: Vimal Singh <vimalsingh@ti.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/plat-omap/include/plat/gpmc.h')
-rw-r--r-- | arch/arm/plat-omap/include/plat/gpmc.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/plat-omap/include/plat/gpmc.h b/arch/arm/plat-omap/include/plat/gpmc.h index 3f3609aa277f..145838a81ef6 100644 --- a/arch/arm/plat-omap/include/plat/gpmc.h +++ b/arch/arm/plat-omap/include/plat/gpmc.h @@ -27,6 +27,8 @@ #define GPMC_CONFIG 0x50 #define GPMC_STATUS 0x54 +#define GPMC_CS0_BASE 0x60 +#define GPMC_CS_SIZE 0x30 #define GPMC_CONFIG1_WRAPBURST_SUPP (1 << 31) #define GPMC_CONFIG1_READMULTIPLE_SUPP (1 << 30) |