diff options
author | Manjunath Hadli <manjunath.hadli@ti.com> | 2011-12-15 07:11:51 -0500 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2012-01-20 11:27:29 -0500 |
commit | 3d0914061fc3016250b00c0155113e27a1b8a269 (patch) | |
tree | b928e2f86528ddefa4a75b87169602806c11342d /arch/arm/mach-davinci/dm646x.c | |
parent | 719f56f2e45c3ab2a7873d45f1c115db568b1a29 (diff) |
ARM: davinci: dm646x: move private definitions to C file
Move register base addresses and offsets used only in dm646x.c
from arch/arm/mach-davinci/include/mach/dm646x.h in to the C
file as these definitions are used only in C file.
This helps reduce code in arch/arm/mach-davinci/include/mach/
which is not really needed by rest of the kernel.
Signed-off-by: Manjunath Hadli <manjunath.hadli@ti.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm646x.c')
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index 00f774394b16..7c9a62d6f577 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -46,6 +46,13 @@ | |||
46 | #define DM646X_REF_FREQ 27000000 | 46 | #define DM646X_REF_FREQ 27000000 |
47 | #define DM646X_AUX_FREQ 24000000 | 47 | #define DM646X_AUX_FREQ 24000000 |
48 | 48 | ||
49 | #define DM646X_EMAC_BASE 0x01c80000 | ||
50 | #define DM646X_EMAC_MDIO_BASE (DM646X_EMAC_BASE + 0x4000) | ||
51 | #define DM646X_EMAC_CNTRL_OFFSET 0x0000 | ||
52 | #define DM646X_EMAC_CNTRL_MOD_OFFSET 0x1000 | ||
53 | #define DM646X_EMAC_CNTRL_RAM_OFFSET 0x2000 | ||
54 | #define DM646X_EMAC_CNTRL_RAM_SIZE 0x2000 | ||
55 | |||
49 | static struct pll_data pll1_data = { | 56 | static struct pll_data pll1_data = { |
50 | .num = 1, | 57 | .num = 1, |
51 | .phys_base = DAVINCI_PLL1_BASE, | 58 | .phys_base = DAVINCI_PLL1_BASE, |