]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
am335x: fix GPMC config for NAND and NOR SPL boot
authorpekon gupta <pekon@ti.com>
Mon, 18 Nov 2013 13:33:02 +0000 (19:03 +0530)
committerScott Wood <scottwood@freescale.com>
Thu, 21 Nov 2013 19:33:41 +0000 (13:33 -0600)
commit2c17e6d1d996a1b8b9325de15f253a13d5877dee
tree5404e5dea7c6e046fdaaa07fa98f4231c6fc1340
parent3f719069c884284b2457448a7afe32b02bd4f782
am335x: fix GPMC config for NAND and NOR SPL boot

GPMC controller is common IP to interface with both NAND and NOR flash devices.
Also, it supports max 8 chip-selects, which can be independently connected to
any of the devices.
But ROM code expects the boot-device to be connected to only chip-select[0].
Thus to resolve conflict between NOR and NAND boot. This patch:
- combines NOR and NAND configs spread in board files to common gpmc_init()
- configures GPMC based on boot-mode selected for SPL boot.

Signed-off-by: Pekon Gupta <pekon@ti.com>
arch/arm/cpu/armv7/am33xx/mem.c
arch/arm/include/asm/arch-am33xx/mem.h
board/ti/am335x/board.c