u-boot-brain/arch/arm/cpu/armv7/omap3
pekon gupta a0a37183bd 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>
2014-05-23 19:39:36 -04:00
..
am35x_musb.c Coding Style cleanup: remove trailing empty lines 2013-10-14 16:06:54 -04:00
board.c ARM: OMAP: remove sr32() from OMAP board code 2014-04-17 14:39:54 -04:00
clock.c ARM: OMAP: replace custom sr32() by standard I/O accessors 2014-04-17 14:39:54 -04:00
config.mk kbuild: use shorten logs for mkimage rules 2014-02-25 11:01:29 -05:00
emac.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
emif4.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
lowlevel_init.S arm: remove unneeded symbol offsets and _TEXT_BASE 2014-02-26 21:18:12 +01:00
Makefile ARM: omap: merge GPMC initialization code for all platform 2014-05-23 19:39:36 -04:00
mem.c arm: omap3: spl: Fix problem with 8bit NAND devices 2013-07-26 16:39:10 -04:00
sdrc.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl_id_nand.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sys_info.c omap3/sys_info: provide interface to read die id 2014-04-17 14:39:54 -04:00