diff options
author | Keerthy <j-keerthy@ti.com> | 2016-09-14 10:43:28 +0530 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-10-06 20:57:43 -0400 |
commit | c268a9bde00898acd8580f721a741dea1af871db (patch) | |
tree | 36af9f2acbc4d9835e66884794a34c78f2410728 /arch/arm | |
parent | 5052e8198816376d97d97355d33475b1bfeadbea (diff) | |
download | u-boot-imx-c268a9bde00898acd8580f721a741dea1af871db.zip u-boot-imx-c268a9bde00898acd8580f721a741dea1af871db.tar.gz u-boot-imx-c268a9bde00898acd8580f721a741dea1af871db.tar.bz2 |
omap: Remove hardcoding of mmu section shift to 20
As of now the mmu section shift is hardcoded to 20 but with LPAE
coming into picture this can be different. Hence replacing 20 with
MMU_SECTION_SHIFT macro.
Signed-off-by: Keerthy <j-keerthy@ti.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/cpu/armv7/omap-common/omap-cache.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/cpu/armv7/omap-common/omap-cache.c b/arch/arm/cpu/armv7/omap-common/omap-cache.c index 579bebf..ee89f1f 100644 --- a/arch/arm/cpu/armv7/omap-common/omap-cache.c +++ b/arch/arm/cpu/armv7/omap-common/omap-cache.c @@ -32,8 +32,8 @@ void dram_bank_mmu_setup(int bank) bd_t *bd = gd->bd; int i; - u32 start = bd->bi_dram[bank].start >> 20; - u32 size = bd->bi_dram[bank].size >> 20; + u32 start = bd->bi_dram[bank].start >> MMU_SECTION_SHIFT; + u32 size = bd->bi_dram[bank].size >> MMU_SECTION_SHIFT; u32 end = start + size; debug("%s: bank: %d\n", __func__, bank); |