]> git.kernelconcepts.de Git - karo-tx-uboot.git/commit
ARM: OMAP5: Align memory used for testing to the power of 2
authorSRICHARAN R <r.sricharan@ti.com>
Thu, 17 May 2012 00:12:08 +0000 (00:12 +0000)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Sat, 7 Jul 2012 12:07:22 +0000 (14:07 +0200)
commit41321fd4d64492689bfad20c98b8970171aee7ce
tree683a5d2ef70a007e2a8a98e67a328a69bbffe18e
parent77efdeb7588aeae585fcde7e59cc8693df592fd7
ARM: OMAP5: Align memory used for testing to the power of 2

get_ram_size checks the given memory range for valid ram,
but expects the size of memory to be aligned to the power
of 2. In case of OMAP5 evm board the memory available is
2GB - 16MB(used for TRAP section) = 2032MB.

So always ensure that the size of memory used for testing is
aligned to the power of 2.

Signed-off-by: R Sricharan <r.sricharan@ti.com>
arch/arm/cpu/armv7/omap-common/emif-common.c