u-boot-brain/arch/arm/cpu/armv7/omap-common
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
..
abb.c arm: omap: abb: add missing include 2013-12-12 14:54:22 -05:00
boot-common.c dra7xx_evm: Add QSPI_4 support, qspiboot build target 2014-04-17 17:24:37 -04:00
clocks-common.c ARM: OMAP4/5: Remove dead code against CONFIG_SYS_CLOCKS_ENABLE_ALL 2014-01-24 09:34:22 -05:00
emif-common.c DRA7: Add support for ES1.1 silicon ID code 2014-01-24 11:41:17 -05:00
hwinit-common.c sizes.h - consolidate for all architectures 2014-03-04 12:15:01 -05:00
lowlevel_init.S Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Makefile ARM: omap: merge GPMC initialization code for all platform 2014-05-23 19:39:36 -04:00
mem-common.c ARM: omap: merge GPMC initialization code for all platform 2014-05-23 19:39:36 -04:00
pipe3-phy.c ARM: OMAP5: Add Pipe3 PHY driver 2013-12-04 08:12:08 -05:00
pipe3-phy.h ARM: OMAP5: Add Pipe3 PHY driver 2013-12-04 08:12:08 -05:00
reset.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
sata.c ARM: O5/dra7xx: Add SATA boot support 2014-02-19 10:47:45 -05:00
timer.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
u-boot-spl.lds arm: make _end compiler-generated 2014-02-26 21:18:09 +01:00
utils.c OMAP: common: consolidate fake USB ethernet MAC address creation 2014-04-17 14:39:54 -04:00
vc.c ARM: OMAP4+: pmic: Make generic bus init and write functions 2013-06-10 08:43:09 -04:00