omap_gpmc: map NAND devices into memory correctly.
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Sep 2010 17:27:45 +0000 (17:27 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 10 Sep 2010 17:27:45 +0000 (17:27 +0000)
commitc1fbedb5d0cc6a8370785f2dae78a38f5dc89199
treed1ad770239ceb24e0976a8ec71fdfbebafb9c081
parent97668bdc66b1018a6873a727d0bda4ebf4070b13
omap_gpmc: map NAND devices into memory correctly.

The OMAP GPMC is supposed to map NAND memory devices into its
address space so that any access behaves like an access to the
appropriate GPMC_NAND_DATA_i register; implement this behaviour
in the model.

This commit includes a workaround for a conflict between this
behaviour and the omap3_boot.c code wanting to map the boot
ROM to address zero -- we refuse to map NAND devices to address
zero. This is incorrect but allows the beagleboard to boot.
hw/omap_gpmc.c