Skip to content

Commit 3d09140

Browse files
Manjunath Hadlinsekhar
Manjunath Hadli
authored andcommitted
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 <[email protected]> Signed-off-by: Sekhar Nori <[email protected]>
1 parent 719f56f commit 3d09140

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

arch/arm/mach-davinci/dm646x.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,13 @@
4646
#define DM646X_REF_FREQ 27000000
4747
#define DM646X_AUX_FREQ 24000000
4848

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+
4956
static struct pll_data pll1_data = {
5057
.num = 1,
5158
.phys_base = DAVINCI_PLL1_BASE,

arch/arm/mach-davinci/include/mach/dm646x.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,6 @@
1818
#include <linux/davinci_emac.h>
1919
#include <media/davinci/vpif_types.h>
2020

21-
#define DM646X_EMAC_BASE (0x01C80000)
22-
#define DM646X_EMAC_MDIO_BASE (DM646X_EMAC_BASE + 0x4000)
23-
#define DM646X_EMAC_CNTRL_OFFSET (0x0000)
24-
#define DM646X_EMAC_CNTRL_MOD_OFFSET (0x1000)
25-
#define DM646X_EMAC_CNTRL_RAM_OFFSET (0x2000)
26-
#define DM646X_EMAC_CNTRL_RAM_SIZE (0x2000)
27-
2821
#define DM646X_ASYNC_EMIF_CONTROL_BASE 0x20008000
2922
#define DM646X_ASYNC_EMIF_CS2_SPACE_BASE 0x42000000
3023

0 commit comments

Comments
 (0)