Re: [U-Boot] [PATCH 1/6] omap: Remove hardcoding of mmu section shift to 20

2016-09-16 Thread Tom Rini
On Wed, Sep 14, 2016 at 10:43:28AM +0530, Keerthy wrote:

> 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 

Reviewed-by: Tom Rini 

-- 
Tom


signature.asc
Description: Digital signature
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] [PATCH 1/6] omap: Remove hardcoding of mmu section shift to 20

2016-09-13 Thread Keerthy
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 
---
 arch/arm/cpu/armv7/omap-common/omap-cache.c | 4 ++--
 1 file 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);
-- 
1.9.1

___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot