omap_gpmc: Accept a zero mask field on omap3630
authorJuha Riihimäki <juha.riihimaki@nokia.com>
Sun, 28 Aug 2011 16:22:20 +0000 (16:22 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Sun, 28 Aug 2011 16:37:13 +0000 (16:37 +0000)
commit856f2df7717bc4270bac39469443dec401b02fec
tree9a306921aacb53b187ee07c14aec1dffc00ed450
parentf13e656e7eb555523df4b1ca73d0d9b65bf1d015
omap_gpmc: Accept a zero mask field on omap3630

OMAP3630 adds an extra bit of address masking, so a mask of
0xb1111 is valid. Unfortunately the GPMC_REVISION is the same as
on the OMAP3430 which only has three bits of address masking, so
we have to derive this feature directly from the OMAP revision
rather than from the GPMC revision.

Signed-off-by: Juha Riihimäki <juha.riihimaki@nokia.com>
[Riku Voipio: Fixes and restructuring patchset]
Signed-off-by: Riku Voipio <riku.voipio@iki.fi>
[Peter Maydell: More fixes and cleanups for upstream submission]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/omap_gpmc.c