diff mbox

[v1,1/1] ARM: OMAP3: Use OMAP3_HAS_IVA_REGS with OMAP3503

Message ID 1343692239-10393-2-git-send-email-juha.kuikka@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Juha Kuikka July 30, 2012, 11:50 p.m. UTC
Similarly to am3703, it seems that omap3503 has an IVA control
registers even though the subsystem is non-functional.

This patch sets the OMAP3_HAS_IVA_REGS feature to force
initialization of there registers.

Based in Mark A. Greer's patch
"ARM: OMAP3: Add OMAP3_HAS_IVA_REGS feature".

Signed-off-by: Juha Kuikka <juha.kuikka@gmail.com>
---
 arch/arm/mach-omap2/id.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Comments

Igor Grinberg Aug. 2, 2012, 7:43 a.m. UTC | #1
On 07/31/12 02:50, Juha Kuikka wrote:
> Similarly to am3703, it seems that omap3503 has an IVA control
> registers even though the subsystem is non-functional.
> 
> This patch sets the OMAP3_HAS_IVA_REGS feature to force
> initialization of there registers.
> 
> Based in Mark A. Greer's patch
> "ARM: OMAP3: Add OMAP3_HAS_IVA_REGS feature".
> 
> Signed-off-by: Juha Kuikka <juha.kuikka@gmail.com>
> ---
>  arch/arm/mach-omap2/id.c |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
> index 4072fbd..45d3eb4 100644
> --- a/arch/arm/mach-omap2/id.c
> +++ b/arch/arm/mach-omap2/id.c
> @@ -244,7 +244,7 @@ void __init omap3xxx_check_features(void)
>  	if (cpu_is_omap3630())
>  		omap_features |= OMAP3_HAS_192MHZ_CLK | OMAP3_HAS_IVA_REGS;

If you add the flag below, then you probably want to remove it from here, right?

>  	if (cpu_is_omap3430() || cpu_is_omap3630())
> -		omap_features |= OMAP3_HAS_IO_WAKEUP;
> +		omap_features |= OMAP3_HAS_IO_WAKEUP | OMAP3_HAS_IVA_REGS;
>  	if (cpu_is_omap3630() || omap_rev() == OMAP3430_REV_ES3_1 ||
>  	    omap_rev() == OMAP3430_REV_ES3_1_2)
>  		omap_features |= OMAP3_HAS_IO_CHAIN_CTRL;
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/id.c b/arch/arm/mach-omap2/id.c
index 4072fbd..45d3eb4 100644
--- a/arch/arm/mach-omap2/id.c
+++ b/arch/arm/mach-omap2/id.c
@@ -244,7 +244,7 @@  void __init omap3xxx_check_features(void)
 	if (cpu_is_omap3630())
 		omap_features |= OMAP3_HAS_192MHZ_CLK | OMAP3_HAS_IVA_REGS;
 	if (cpu_is_omap3430() || cpu_is_omap3630())
-		omap_features |= OMAP3_HAS_IO_WAKEUP;
+		omap_features |= OMAP3_HAS_IO_WAKEUP | OMAP3_HAS_IVA_REGS;
 	if (cpu_is_omap3630() || omap_rev() == OMAP3430_REV_ES3_1 ||
 	    omap_rev() == OMAP3430_REV_ES3_1_2)
 		omap_features |= OMAP3_HAS_IO_CHAIN_CTRL;