diff options
author | pekon gupta <pekon@ti.com> | 2014-05-08 21:43:47 +0530 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-05-23 19:39:36 -0400 |
commit | a0a37183bd75e74608bc78c8d0e2a34454f95a91 (patch) | |
tree | b9505eae7d21e6c518e94011fd115ec14e30bcea /arch/arm/cpu/armv7/omap3/Makefile | |
parent | cd324a6dd252856fa55bd17d539a9466ae86411a (diff) | |
download | u-boot-imx-a0a37183bd75e74608bc78c8d0e2a34454f95a91.zip u-boot-imx-a0a37183bd75e74608bc78c8d0e2a34454f95a91.tar.gz u-boot-imx-a0a37183bd75e74608bc78c8d0e2a34454f95a91.tar.bz2 |
ARM: omap: merge GPMC initialization code for all platform
GPMC controller on TI's OMAP SoC is general purpose controller to interface
with different types of external devices like;
- parallel NOR flash
- parallel NAND flash
- OneNand flash
- SDR RAM
- Ethernet Devices like LAN9220
Though GPMC configurations may be different for each platform depending on
clock-frequency and external device interfacing with controller. But
initialization sequence remains common across all platfoms.
Thus this patch merges gpmc_init() scattered in different arch-xx/mem.c
files into single omap-common/mem-common.c
However, actual platforms specific register config values are still sourced
from corresponding platform specific headers like;
AM33xx: arch/arm/include/asm/arch-am33xx/mem.h
OMAP3: arch/arm/include/asm/arch-omap3/mem.h
OMAP4: arch/arm/include/asm/arch-omap4/mem.h
OMAP4: arch/arm/include/asm/arch-omap5/mem.h
Also, CONFIG_xx passed by board-profile decide config for which set of macros
need to be used for initialization
CONFIG_NAND: initialize GPMC for NAND device
CONFIG_NOR: initialize GPMC for NOR device
CONFIG_ONENAND: initialize GPMC for ONENAND device
Signed-off-by: Pekon Gupta <pekon@ti.com>
[trini: define GPMC_SIZE_256M for omap3]
Signed-off-by: Tom Rini <trini@ti.com>
Diffstat (limited to 'arch/arm/cpu/armv7/omap3/Makefile')
-rw-r--r-- | arch/arm/cpu/armv7/omap3/Makefile | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/cpu/armv7/omap3/Makefile b/arch/arm/cpu/armv7/omap3/Makefile index 39ff257..cf86046 100644 --- a/arch/arm/cpu/armv7/omap3/Makefile +++ b/arch/arm/cpu/armv7/omap3/Makefile @@ -9,7 +9,6 @@ obj-y := lowlevel_init.o obj-y += board.o obj-y += clock.o -obj-y += mem.o obj-y += sys_info.o ifdef CONFIG_SPL_BUILD obj-$(CONFIG_SPL_OMAP3_ID_NAND) += spl_id_nand.o |