Skip to content
Snippets Groups Projects
Commit c268a9bd authored by Keerthy's avatar Keerthy Committed by Tom Rini
Browse files

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: default avatarKeerthy <j-keerthy@ti.com>
Reviewed-by: default avatarTom Rini <trini@konsulko.com>
parent 5052e819
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment