summaryrefslogtreecommitdiff
path: root/include/configs
diff options
context:
space:
mode:
authorpekon gupta <pekon@ti.com>2014-07-18 17:59:40 +0530
committerTom Rini <trini@ti.com>2014-07-25 16:26:12 -0400
commit77cd89e75563742aa32cf3d216ac9ff649d1d70e (patch)
tree3d406770cd972f2ef88bec049ed48025cde1e831 /include/configs
parent8c16dd6fa7de448b36778275b456bf4ea53c3306 (diff)
downloadu-boot-imx-77cd89e75563742aa32cf3d216ac9ff649d1d70e.zip
u-boot-imx-77cd89e75563742aa32cf3d216ac9ff649d1d70e.tar.gz
u-boot-imx-77cd89e75563742aa32cf3d216ac9ff649d1d70e.tar.bz2
ARM: omap: fix GPMC address-map size for NAND and NOR devices
Fixes commit a0a37183bd75e74608bc78c8d0e2a34454f95a91 ARM: omap: merge GPMC initialization code for all platform 1) NAND device are not directly memory-mapped to CPU address-space, they are indirectly accessed via following GPMC registers: - GPMC_NAND_COMMAND_x - GPMC_NAND_ADDRESS_x - GPMC_NAND_DATA_x Therefore from CPU's point of view, NAND address-map can be limited to just above register addresses. But GPMC chip-select address-map can be configured in granularity of 16MB only. So this patch uses GPMC_SIZE_16M for all NAND devices. 2) NOR device are directly memory-mapped to CPU address-space, so its address-map size depends on actual addressable region in NOR FLASH device. So this patch uses CONFIG_SYS_FLASH_SIZE to derive GPMC chip-select address-map size configuration. Signed-off-by: Pekon Gupta <pekon@ti.com>
Diffstat (limited to 'include/configs')
-rw-r--r--include/configs/am335x_evm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/configs/am335x_evm.h b/include/configs/am335x_evm.h
index a48b386..c1a6ada 100644
--- a/include/configs/am335x_evm.h
+++ b/include/configs/am335x_evm.h
@@ -453,6 +453,7 @@
#define CONFIG_SYS_MAX_FLASH_BANKS 1
#define CONFIG_SYS_FLASH_BASE (0x08000000)
#define CONFIG_SYS_FLASH_CFI_WIDTH FLASH_CFI_16BIT
+#define CONFIG_SYS_FLASH_SIZE 0x01000000
#define CONFIG_SYS_MONITOR_BASE CONFIG_SYS_FLASH_BASE
/* Reduce SPL size by removing unlikey targets */
#ifdef CONFIG_NOR_BOOT