ARM: OMAP: Use the correct CONFIG_ARCH_OMAP24XX
Subsystems (2)
PATCH 1/1 ARM: OMAP: Use the correct CONFIG_ARCH_OMAP24XX
Use the correct CONFIG_ARCH_OMAP24XX.
It boots on locked SRAM board.
---
arch/arm/plat-omap/sram.c +1 -1
@@ -91,7 +91,7 @@ static int is_sram_locked(void) {int type =0 ; -#if defined(CONFIG_ARCH_OMAP242X ) +#if defined(CONFIG_ARCH_OMAP24XX )if (cpu_is_omap242x ()) type = (ctrl_read_reg (OMAP24XX_CONTROL_STATUS ) &OMAP2_DEVICETYPE_MASK );
Quoted 2 lines · Kyungmin Park
Use the correct
CONFIG_ARCH_OMAP24XX.
It boots on locked SRAM board.
since CONFIG_ARCH_OMAP242X does not exist.
- Paul
Quoted 10 lines · Kyungmin Park
Use the correct
CONFIG_ARCH_OMAP24XX.
It boots on locked SRAM board.Signed-off-by Kyungmin Park <[email protected]>---
arch/arm/plat-omap/sram.c +0
-0
arch/arm/plat-omap/sram.c static int is_sram_locked(void) · line 97
Quoted 8 lines
arch/arm/plat-omap/sram.c +1
-1@@ -91,7 +91,7 @@ static int is_sram_locked(void) {int type =0 ; -#if defined(CONFIG_ARCH_OMAP242X ) +#if defined(CONFIG_ARCH_OMAP24XX )if (cpu_is_omap242x ()) type = (ctrl_read_reg (OMAP24XX_CONTROL_STATUS ) &OMAP2_DEVICETYPE_MASK );
Shouldn't the cpu_is_omap242x be changed to cpu_is_omap24xx also so this works on 2430?
Kevin
Quoted 15 lines · Kevin Hilman
Quoted 13 lines · Kyungmin Park
Use the correct
CONFIG_ARCH_OMAP24XX.
It boots on locked SRAM board.Signed-off-by Kyungmin Park <[email protected]>---
arch/arm/plat-omap/sram.c +0
-0@@ -91,7 +91,7 @@ static int is_sram_locked(void) {int type =0 ;
Quoted 8 lines
arch/arm/plat-omap/sram.c static int is_sram_locked(void) · line 97
Quoted 5 lines
arch/arm/plat-omap/sram.c +1
-1-#if defined(CONFIG_ARCH_OMAP242X ) +#if defined(CONFIG_ARCH_OMAP24XX )if (cpu_is_omap242x ()) type = (ctrl_read_reg (OMAP24XX_CONTROL_STATUS ) &OMAP2_DEVICETYPE_MASK );Shouldn't the
cpu_is_omap242xbe changed tocpu_is_omap24xxalso so this works on 2430?
Additionally the #if defined(CONFIG_ARCH_OMAP242X) should not be needed here. If not selected, the cpu_is_omapxxxx() functions are if (0) {} functions and get optimized out.
Tony