Skip to content

Commit

Permalink
ARM: OMAP2/3: Remove OMAP_CM_REGADDR
Browse files Browse the repository at this point in the history
Processor specific macros should be used instead.

Signed-off-by: Tony Lindgren <tony@atomide.com>
  • Loading branch information
Tony Lindgren committed May 25, 2009
1 parent c28150e commit eb0d0ee
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 21 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/clock24xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,11 @@

/* REVISIT: These should be set dynamically for CONFIG_MULTI_OMAP2 */
#ifdef CONFIG_ARCH_OMAP2420
#define OMAP_CM_REGADDR OMAP2420_CM_REGADDR
#define OMAP24XX_PRCM_CLKOUT_CTRL OMAP2420_PRCM_CLKOUT_CTRL
#define OMAP24XX_PRCM_CLKEMUL_CTRL OMAP2420_PRCM_CLKEMUL_CTRL
#else
#define OMAP_CM_REGADDR OMAP2430_CM_REGADDR
#define OMAP24XX_PRCM_CLKOUT_CTRL OMAP2430_PRCM_CLKOUT_CTRL
#define OMAP24XX_PRCM_CLKEMUL_CTRL OMAP2430_PRCM_CLKEMUL_CTRL
#endif
Expand Down
2 changes: 2 additions & 0 deletions arch/arm/mach-omap2/clock34xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
#include "prm.h"
#include "prm-regbits-34xx.h"

#define OMAP_CM_REGADDR OMAP34XX_CM_REGADDR

static unsigned long omap3_dpll_recalc(struct clk *clk);
static unsigned long omap3_clkoutx2_recalc(struct clk *clk);
static void omap3_dpll_allow_idle(struct clk *clk);
Expand Down
5 changes: 0 additions & 5 deletions arch/arm/mach-omap2/cm.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,12 @@

#include "prcm-common.h"

#ifndef __ASSEMBLER__
#define OMAP_CM_REGADDR(module, reg) \
IO_ADDRESS(OMAP2_CM_BASE + (module) + (reg))
#else
#define OMAP2420_CM_REGADDR(module, reg) \
IO_ADDRESS(OMAP2420_CM_BASE + (module) + (reg))
#define OMAP2430_CM_REGADDR(module, reg) \
IO_ADDRESS(OMAP2430_CM_BASE + (module) + (reg))
#define OMAP34XX_CM_REGADDR(module, reg) \
IO_ADDRESS(OMAP3430_CM_BASE + (module) + (reg))
#endif

/*
* Architecture-specific global CM registers
Expand Down
10 changes: 0 additions & 10 deletions arch/arm/plat-omap/include/mach/omap24xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,15 +85,5 @@
#define OMAP24XX_SEC_AES_BASE (OMAP24XX_SEC_BASE + 0x6000)
#define OMAP24XX_SEC_PKA_BASE (OMAP24XX_SEC_BASE + 0x8000)

#if defined(CONFIG_ARCH_OMAP2420)

#define OMAP2_CM_BASE OMAP2420_CM_BASE

#elif defined(CONFIG_ARCH_OMAP2430)

#define OMAP2_CM_BASE OMAP2430_CM_BASE

#endif

#endif /* __ASM_ARCH_OMAP24XX_H */

6 changes: 0 additions & 6 deletions arch/arm/plat-omap/include/mach/omap34xx.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,12 +83,6 @@

#define OMAP34XX_MAILBOX_BASE (L4_34XX_BASE + 0x94000)

#if defined(CONFIG_ARCH_OMAP3430)

#define OMAP2_CM_BASE OMAP3430_CM_BASE

#endif

#define OMAP34XX_DSP_BASE 0x58000000
#define OMAP34XX_DSP_MEM_BASE (OMAP34XX_DSP_BASE + 0x0)
#define OMAP34XX_DSP_IPI_BASE (OMAP34XX_DSP_BASE + 0x1000000)
Expand Down

0 comments on commit eb0d0ee

Please sign in to comment.