lkml.org 
[lkml]   [2007]   [Apr]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 85/90] ARM: OMAP: Fix PRCM base register usage for 243x
    Date
    From: Kevin Hilman <khilman@mvista.com>

    The PRCM base register is different on 242x and 243x. Use
    the #ifdef'd #define from omap24xx.h instead of the locally
    defined one.

    Signed-off-by: Kevin Hilman <khilman@mvista.com>
    Signed-off-by: Tony Lindgren <tony@atomide.com>
    ---
    arch/arm/mach-omap2/pm.c | 3 +--
    1 files changed, 1 insertions(+), 2 deletions(-)

    diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
    index 64e67e5..cb1ae46 100644
    --- a/arch/arm/mach-omap2/pm.c
    +++ b/arch/arm/mach-omap2/pm.c
    @@ -51,7 +51,6 @@
    #include <asm/arch/dma.h>
    #include <asm/arch/board.h>

    -#define PRCM_BASE 0x48008000
    #define PRCM_REVISION 0x000
    #define PRCM_SYSCONFIG 0x010
    #define PRCM_IRQSTATUS_MPU 0x018
    @@ -150,7 +149,7 @@ static void (*omap2_sram_idle)(void);
    static void (*omap2_sram_suspend)(int dllctrl);
    static void (*saved_idle)(void);

    -static u32 prcm_base = IO_ADDRESS(PRCM_BASE);
    +static u32 prcm_base = IO_ADDRESS(OMAP24XX_PRCM_BASE);

    static inline void prcm_write_reg(int idx, u32 val)
    {
    --
    1.4.4.2
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-04 20:21    [W:5.127 / U:0.360 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site