From: Tom Rini Date: Fri, 25 Jul 2014 21:28:13 -0400 Subject: [U-Boot] [U-Boot, v1, 1/3] ARM: omap: fix GPMC address-map size for NAND and NOR devices In-Reply-To: <1405686582-28356-2-git-send-email-pekon@ti.com> References: <1405686582-28356-2-git-send-email-pekon@ti.com> Message-ID: <20140726012813.GW1847@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Fri, Jul 18, 2014 at 05:59:40PM +0530, pekon gupta wrote: > 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 Applied to u-boot-ti/master, thanks! -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: