ARM: OMAP2+: Detect incorrectly aligned GPMC base address
authorJon Hunter <jon-hunter@ti.com>
Wed, 6 Mar 2013 18:00:10 +0000 (12:00 -0600)
committerJon Hunter <jon-hunter@ti.com>
Thu, 4 Apr 2013 01:13:39 +0000 (20:13 -0500)
commitc71f8e9bef8a3e022537361505c09f8c357ffd18
tree0e7307933173ecd17a19b7a671729885a4d14bd9
parent32cde0b5141030030f950a3c7e971018c81a9360
ARM: OMAP2+: Detect incorrectly aligned GPMC base address

Each GPMC chip-select can be configured to map 16MB, 32MB, 64MB or 128MB
of address space. The physical base address where a chip-select starts
is also configurable and must be aligned on a boundary that is equal to
or greater than the size of the address space mapped bt the chip-select.
When enabling a GPMC chip-select, ensure that the base address is aligned
to the appropriate boundary.

Reported-by: Mark Jackson <mpfj-list@mimc.co.uk>
Signed-off-by: Jon Hunter <jon-hunter@ti.com>
Tested-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
arch/arm/mach-omap2/gpmc.c