diff options
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/mach-davinci/dm355.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm365.c | 5 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm644x.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-davinci/dm646x.c | 3 | ||||
-rw-r--r-- | arch/arm/mach-davinci/gpio.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/da8xx.h | 21 | ||||
-rw-r--r-- | arch/arm/mach-davinci/include/mach/mux.h | 2 | ||||
-rw-r--r-- | arch/arm/mach-davinci/mux.h | 2 |
8 files changed, 4 insertions, 43 deletions
diff --git a/arch/arm/mach-davinci/dm355.c b/arch/arm/mach-davinci/dm355.c index f9a54ff2d249..f91e9a1ab921 100644 --- a/arch/arm/mach-davinci/dm355.c +++ b/arch/arm/mach-davinci/dm355.c | |||
@@ -450,11 +450,6 @@ void __init dm355_init_spi0(unsigned chipselect_mask, | |||
450 | 450 | ||
451 | /*----------------------------------------------------------------------*/ | 451 | /*----------------------------------------------------------------------*/ |
452 | 452 | ||
453 | #define PINMUX0 0x00 | ||
454 | #define PINMUX1 0x04 | ||
455 | #define PINMUX2 0x08 | ||
456 | #define PINMUX3 0x0c | ||
457 | #define PINMUX4 0x10 | ||
458 | #define INTMUX 0x18 | 453 | #define INTMUX 0x18 |
459 | #define EVTMUX 0x1c | 454 | #define EVTMUX 0x1c |
460 | 455 | ||
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 05666754aebe..f2b1d93b2256 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c | |||
@@ -467,11 +467,6 @@ static struct clk_lookup dm365_clks[] = { | |||
467 | 467 | ||
468 | /*----------------------------------------------------------------------*/ | 468 | /*----------------------------------------------------------------------*/ |
469 | 469 | ||
470 | #define PINMUX0 0x00 | ||
471 | #define PINMUX1 0x04 | ||
472 | #define PINMUX2 0x08 | ||
473 | #define PINMUX3 0x0c | ||
474 | #define PINMUX4 0x10 | ||
475 | #define INTMUX 0x18 | 470 | #define INTMUX 0x18 |
476 | #define EVTMUX 0x1c | 471 | #define EVTMUX 0x1c |
477 | 472 | ||
diff --git a/arch/arm/mach-davinci/dm644x.c b/arch/arm/mach-davinci/dm644x.c index 4af349efbd54..85c88ecd6cf0 100644 --- a/arch/arm/mach-davinci/dm644x.c +++ b/arch/arm/mach-davinci/dm644x.c | |||
@@ -350,9 +350,6 @@ static struct platform_device dm644x_emac_device = { | |||
350 | .resource = dm644x_emac_resources, | 350 | .resource = dm644x_emac_resources, |
351 | }; | 351 | }; |
352 | 352 | ||
353 | #define PINMUX0 0x00 | ||
354 | #define PINMUX1 0x04 | ||
355 | |||
356 | /* | 353 | /* |
357 | * Device specific mux setup | 354 | * Device specific mux setup |
358 | * | 355 | * |
diff --git a/arch/arm/mach-davinci/dm646x.c b/arch/arm/mach-davinci/dm646x.c index bdb1acebe203..a8189c919e92 100644 --- a/arch/arm/mach-davinci/dm646x.c +++ b/arch/arm/mach-davinci/dm646x.c | |||
@@ -401,9 +401,6 @@ static struct platform_device dm646x_emac_device = { | |||
401 | .resource = dm646x_emac_resources, | 401 | .resource = dm646x_emac_resources, |
402 | }; | 402 | }; |
403 | 403 | ||
404 | #define PINMUX0 0x00 | ||
405 | #define PINMUX1 0x04 | ||
406 | |||
407 | /* | 404 | /* |
408 | * Device specific mux setup | 405 | * Device specific mux setup |
409 | * | 406 | * |
diff --git a/arch/arm/mach-davinci/gpio.c b/arch/arm/mach-davinci/gpio.c index b62d5e2bd37e..2efb4468ebd0 100644 --- a/arch/arm/mach-davinci/gpio.c +++ b/arch/arm/mach-davinci/gpio.c | |||
@@ -71,11 +71,7 @@ static int __init davinci_gpio_irq_setup(void); | |||
71 | 71 | ||
72 | /*--------------------------------------------------------------------------*/ | 72 | /*--------------------------------------------------------------------------*/ |
73 | 73 | ||
74 | /* | 74 | /* board setup code *MUST* setup pinmux and enable the GPIO clock. */ |
75 | * board setup code *MUST* set PINMUX0 and PINMUX1 as | ||
76 | * needed, and enable the GPIO clock. | ||
77 | */ | ||
78 | |||
79 | static inline int __davinci_direction(struct gpio_chip *chip, | 75 | static inline int __davinci_direction(struct gpio_chip *chip, |
80 | unsigned offset, bool out, int value) | 76 | unsigned offset, bool out, int value) |
81 | { | 77 | { |
diff --git a/arch/arm/mach-davinci/include/mach/da8xx.h b/arch/arm/mach-davinci/include/mach/da8xx.h index 33471c9cbca3..dbb4ebe4d114 100644 --- a/arch/arm/mach-davinci/include/mach/da8xx.h +++ b/arch/arm/mach-davinci/include/mach/da8xx.h | |||
@@ -64,27 +64,6 @@ extern void __iomem *da8xx_syscfg1_base; | |||
64 | #define DA8XX_DDR2_CTL_BASE 0xb0000000 | 64 | #define DA8XX_DDR2_CTL_BASE 0xb0000000 |
65 | #define DA8XX_ARM_RAM_BASE 0xffff0000 | 65 | #define DA8XX_ARM_RAM_BASE 0xffff0000 |
66 | 66 | ||
67 | #define PINMUX0 0x00 | ||
68 | #define PINMUX1 0x04 | ||
69 | #define PINMUX2 0x08 | ||
70 | #define PINMUX3 0x0c | ||
71 | #define PINMUX4 0x10 | ||
72 | #define PINMUX5 0x14 | ||
73 | #define PINMUX6 0x18 | ||
74 | #define PINMUX7 0x1c | ||
75 | #define PINMUX8 0x20 | ||
76 | #define PINMUX9 0x24 | ||
77 | #define PINMUX10 0x28 | ||
78 | #define PINMUX11 0x2c | ||
79 | #define PINMUX12 0x30 | ||
80 | #define PINMUX13 0x34 | ||
81 | #define PINMUX14 0x38 | ||
82 | #define PINMUX15 0x3c | ||
83 | #define PINMUX16 0x40 | ||
84 | #define PINMUX17 0x44 | ||
85 | #define PINMUX18 0x48 | ||
86 | #define PINMUX19 0x4c | ||
87 | |||
88 | void __init da830_init(void); | 67 | void __init da830_init(void); |
89 | void __init da850_init(void); | 68 | void __init da850_init(void); |
90 | 69 | ||
diff --git a/arch/arm/mach-davinci/include/mach/mux.h b/arch/arm/mach-davinci/include/mach/mux.h index 923debec7487..743dbd2e0ea3 100644 --- a/arch/arm/mach-davinci/include/mach/mux.h +++ b/arch/arm/mach-davinci/include/mach/mux.h | |||
@@ -1174,6 +1174,8 @@ enum davinci_tnetv107x_index { | |||
1174 | TNETV107X_TDM0_RX, | 1174 | TNETV107X_TDM0_RX, |
1175 | }; | 1175 | }; |
1176 | 1176 | ||
1177 | #define PINMUX(x) (4 * (x)) | ||
1178 | |||
1177 | #ifdef CONFIG_DAVINCI_MUX | 1179 | #ifdef CONFIG_DAVINCI_MUX |
1178 | /* setup pin muxing */ | 1180 | /* setup pin muxing */ |
1179 | extern int davinci_cfg_reg(unsigned long reg_cfg); | 1181 | extern int davinci_cfg_reg(unsigned long reg_cfg); |
diff --git a/arch/arm/mach-davinci/mux.h b/arch/arm/mach-davinci/mux.h index adc869413371..5aad1e7dd210 100644 --- a/arch/arm/mach-davinci/mux.h +++ b/arch/arm/mach-davinci/mux.h | |||
@@ -20,7 +20,7 @@ | |||
20 | .name = #desc, \ | 20 | .name = #desc, \ |
21 | .debug = dbg, \ | 21 | .debug = dbg, \ |
22 | .mux_reg_name = "PINMUX"#muxreg, \ | 22 | .mux_reg_name = "PINMUX"#muxreg, \ |
23 | .mux_reg = PINMUX##muxreg, \ | 23 | .mux_reg = PINMUX(muxreg), \ |
24 | .mask_offset = mode_offset, \ | 24 | .mask_offset = mode_offset, \ |
25 | .mask = mode_mask, \ | 25 | .mask = mode_mask, \ |
26 | .mode = mux_mode, \ | 26 | .mode = mux_mode, \ |