diff options
author | Viresh Kumar <viresh.kumar@st.com> | 2012-04-03 07:57:10 -0400 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2012-04-22 16:49:26 -0400 |
commit | 8076dd1b7deeaeb5c6f0b58be95c0a13164e1a99 (patch) | |
tree | 96e3741dec72d84de577b23c9e821a27bf371f63 /arch/arm/mach-spear3xx/include/mach/generic.h | |
parent | 52130b6033c580c27d968f64cd73209c9609e4e0 (diff) |
SPEAr: Remove existing padmux support for SPEAr
We must use pinctrl framework instead of defining per SoC pinmux drivers. This
patch removes existing padmux support present for SPEAr platform.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/mach-spear3xx/include/mach/generic.h')
-rw-r--r-- | arch/arm/mach-spear3xx/include/mach/generic.h | 128 |
1 files changed, 0 insertions, 128 deletions
diff --git a/arch/arm/mach-spear3xx/include/mach/generic.h b/arch/arm/mach-spear3xx/include/mach/generic.h index a7569584cbe8..9603bf4d5119 100644 --- a/arch/arm/mach-spear3xx/include/mach/generic.h +++ b/arch/arm/mach-spear3xx/include/mach/generic.h | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/amba/bus.h> | 20 | #include <linux/amba/bus.h> |
21 | #include <asm/mach/time.h> | 21 | #include <asm/mach/time.h> |
22 | #include <asm/mach/map.h> | 22 | #include <asm/mach/map.h> |
23 | #include <plat/padmux.h> | ||
24 | 23 | ||
25 | /* spear3xx declarations */ | 24 | /* spear3xx declarations */ |
26 | /* | 25 | /* |
@@ -43,147 +42,20 @@ void __init spear3xx_dt_init_irq(void); | |||
43 | 42 | ||
44 | void spear_restart(char, const char *); | 43 | void spear_restart(char, const char *); |
45 | 44 | ||
46 | /* pad mux declarations */ | ||
47 | #define PMX_FIRDA_MASK (1 << 14) | ||
48 | #define PMX_I2C_MASK (1 << 13) | ||
49 | #define PMX_SSP_CS_MASK (1 << 12) | ||
50 | #define PMX_SSP_MASK (1 << 11) | ||
51 | #define PMX_MII_MASK (1 << 10) | ||
52 | #define PMX_GPIO_PIN0_MASK (1 << 9) | ||
53 | #define PMX_GPIO_PIN1_MASK (1 << 8) | ||
54 | #define PMX_GPIO_PIN2_MASK (1 << 7) | ||
55 | #define PMX_GPIO_PIN3_MASK (1 << 6) | ||
56 | #define PMX_GPIO_PIN4_MASK (1 << 5) | ||
57 | #define PMX_GPIO_PIN5_MASK (1 << 4) | ||
58 | #define PMX_UART0_MODEM_MASK (1 << 3) | ||
59 | #define PMX_UART0_MASK (1 << 2) | ||
60 | #define PMX_TIMER_3_4_MASK (1 << 1) | ||
61 | #define PMX_TIMER_1_2_MASK (1 << 0) | ||
62 | |||
63 | /* pad mux devices */ | ||
64 | extern struct pmx_dev spear3xx_pmx_firda; | ||
65 | extern struct pmx_dev spear3xx_pmx_i2c; | ||
66 | extern struct pmx_dev spear3xx_pmx_ssp_cs; | ||
67 | extern struct pmx_dev spear3xx_pmx_ssp; | ||
68 | extern struct pmx_dev spear3xx_pmx_mii; | ||
69 | extern struct pmx_dev spear3xx_pmx_gpio_pin0; | ||
70 | extern struct pmx_dev spear3xx_pmx_gpio_pin1; | ||
71 | extern struct pmx_dev spear3xx_pmx_gpio_pin2; | ||
72 | extern struct pmx_dev spear3xx_pmx_gpio_pin3; | ||
73 | extern struct pmx_dev spear3xx_pmx_gpio_pin4; | ||
74 | extern struct pmx_dev spear3xx_pmx_gpio_pin5; | ||
75 | extern struct pmx_dev spear3xx_pmx_uart0_modem; | ||
76 | extern struct pmx_dev spear3xx_pmx_uart0; | ||
77 | extern struct pmx_dev spear3xx_pmx_timer_3_4; | ||
78 | extern struct pmx_dev spear3xx_pmx_timer_1_2; | ||
79 | |||
80 | #if defined(CONFIG_MACH_SPEAR310) || defined(CONFIG_MACH_SPEAR320) | ||
81 | /* padmux plgpio devices */ | ||
82 | extern struct pmx_dev spear3xx_pmx_plgpio_0_1; | ||
83 | extern struct pmx_dev spear3xx_pmx_plgpio_2_3; | ||
84 | extern struct pmx_dev spear3xx_pmx_plgpio_4_5; | ||
85 | extern struct pmx_dev spear3xx_pmx_plgpio_6_9; | ||
86 | extern struct pmx_dev spear3xx_pmx_plgpio_10_27; | ||
87 | extern struct pmx_dev spear3xx_pmx_plgpio_28; | ||
88 | extern struct pmx_dev spear3xx_pmx_plgpio_29; | ||
89 | extern struct pmx_dev spear3xx_pmx_plgpio_30; | ||
90 | extern struct pmx_dev spear3xx_pmx_plgpio_31; | ||
91 | extern struct pmx_dev spear3xx_pmx_plgpio_32; | ||
92 | extern struct pmx_dev spear3xx_pmx_plgpio_33; | ||
93 | extern struct pmx_dev spear3xx_pmx_plgpio_34_36; | ||
94 | extern struct pmx_dev spear3xx_pmx_plgpio_37_42; | ||
95 | extern struct pmx_dev spear3xx_pmx_plgpio_43_44_47_48; | ||
96 | extern struct pmx_dev spear3xx_pmx_plgpio_45_46_49_50; | ||
97 | #endif | ||
98 | |||
99 | /* spear300 declarations */ | 45 | /* spear300 declarations */ |
100 | #ifdef CONFIG_MACH_SPEAR300 | 46 | #ifdef CONFIG_MACH_SPEAR300 |
101 | /* pad mux modes */ | ||
102 | extern struct pmx_mode spear300_nand_mode; | ||
103 | extern struct pmx_mode spear300_nor_mode; | ||
104 | extern struct pmx_mode spear300_photo_frame_mode; | ||
105 | extern struct pmx_mode spear300_lend_ip_phone_mode; | ||
106 | extern struct pmx_mode spear300_hend_ip_phone_mode; | ||
107 | extern struct pmx_mode spear300_lend_wifi_phone_mode; | ||
108 | extern struct pmx_mode spear300_hend_wifi_phone_mode; | ||
109 | extern struct pmx_mode spear300_ata_pabx_wi2s_mode; | ||
110 | extern struct pmx_mode spear300_ata_pabx_i2s_mode; | ||
111 | extern struct pmx_mode spear300_caml_lcdw_mode; | ||
112 | extern struct pmx_mode spear300_camu_lcd_mode; | ||
113 | extern struct pmx_mode spear300_camu_wlcd_mode; | ||
114 | extern struct pmx_mode spear300_caml_lcd_mode; | ||
115 | |||
116 | /* pad mux devices */ | ||
117 | extern struct pmx_dev spear300_pmx_fsmc_2_chips; | ||
118 | extern struct pmx_dev spear300_pmx_fsmc_4_chips; | ||
119 | extern struct pmx_dev spear300_pmx_keyboard; | ||
120 | extern struct pmx_dev spear300_pmx_clcd; | ||
121 | extern struct pmx_dev spear300_pmx_telecom_gpio; | ||
122 | extern struct pmx_dev spear300_pmx_telecom_tdm; | ||
123 | extern struct pmx_dev spear300_pmx_telecom_spi_cs_i2c_clk; | ||
124 | extern struct pmx_dev spear300_pmx_telecom_camera; | ||
125 | extern struct pmx_dev spear300_pmx_telecom_dac; | ||
126 | extern struct pmx_dev spear300_pmx_telecom_i2s; | ||
127 | extern struct pmx_dev spear300_pmx_telecom_boot_pins; | ||
128 | extern struct pmx_dev spear300_pmx_telecom_sdhci_4bit; | ||
129 | extern struct pmx_dev spear300_pmx_telecom_sdhci_8bit; | ||
130 | extern struct pmx_dev spear300_pmx_gpio1; | ||
131 | |||
132 | /* Add spear300 machine declarations here */ | ||
133 | void __init spear300_clk_init(void); | 47 | void __init spear300_clk_init(void); |
134 | 48 | ||
135 | #endif /* CONFIG_MACH_SPEAR300 */ | 49 | #endif /* CONFIG_MACH_SPEAR300 */ |
136 | 50 | ||
137 | /* spear310 declarations */ | 51 | /* spear310 declarations */ |
138 | #ifdef CONFIG_MACH_SPEAR310 | 52 | #ifdef CONFIG_MACH_SPEAR310 |
139 | /* pad mux devices */ | ||
140 | extern struct pmx_dev spear310_pmx_emi_cs_0_1_4_5; | ||
141 | extern struct pmx_dev spear310_pmx_emi_cs_2_3; | ||
142 | extern struct pmx_dev spear310_pmx_uart1; | ||
143 | extern struct pmx_dev spear310_pmx_uart2; | ||
144 | extern struct pmx_dev spear310_pmx_uart3_4_5; | ||
145 | extern struct pmx_dev spear310_pmx_fsmc; | ||
146 | extern struct pmx_dev spear310_pmx_rs485_0_1; | ||
147 | extern struct pmx_dev spear310_pmx_tdm0; | ||
148 | |||
149 | /* Add spear310 machine declarations here */ | ||
150 | void __init spear310_clk_init(void); | 53 | void __init spear310_clk_init(void); |
151 | 54 | ||
152 | #endif /* CONFIG_MACH_SPEAR310 */ | 55 | #endif /* CONFIG_MACH_SPEAR310 */ |
153 | 56 | ||
154 | /* spear320 declarations */ | 57 | /* spear320 declarations */ |
155 | #ifdef CONFIG_MACH_SPEAR320 | 58 | #ifdef CONFIG_MACH_SPEAR320 |
156 | /* pad mux modes */ | ||
157 | extern struct pmx_mode spear320_auto_net_smii_mode; | ||
158 | extern struct pmx_mode spear320_auto_net_mii_mode; | ||
159 | extern struct pmx_mode spear320_auto_exp_mode; | ||
160 | extern struct pmx_mode spear320_small_printers_mode; | ||
161 | |||
162 | /* pad mux devices */ | ||
163 | extern struct pmx_dev spear320_pmx_clcd; | ||
164 | extern struct pmx_dev spear320_pmx_emi; | ||
165 | extern struct pmx_dev spear320_pmx_fsmc; | ||
166 | extern struct pmx_dev spear320_pmx_spp; | ||
167 | extern struct pmx_dev spear320_pmx_sdhci; | ||
168 | extern struct pmx_dev spear320_pmx_i2s; | ||
169 | extern struct pmx_dev spear320_pmx_uart1; | ||
170 | extern struct pmx_dev spear320_pmx_uart1_modem; | ||
171 | extern struct pmx_dev spear320_pmx_uart2; | ||
172 | extern struct pmx_dev spear320_pmx_touchscreen; | ||
173 | extern struct pmx_dev spear320_pmx_can; | ||
174 | extern struct pmx_dev spear320_pmx_sdhci_led; | ||
175 | extern struct pmx_dev spear320_pmx_pwm0; | ||
176 | extern struct pmx_dev spear320_pmx_pwm1; | ||
177 | extern struct pmx_dev spear320_pmx_pwm2; | ||
178 | extern struct pmx_dev spear320_pmx_pwm3; | ||
179 | extern struct pmx_dev spear320_pmx_ssp1; | ||
180 | extern struct pmx_dev spear320_pmx_ssp2; | ||
181 | extern struct pmx_dev spear320_pmx_mii1; | ||
182 | extern struct pmx_dev spear320_pmx_smii0; | ||
183 | extern struct pmx_dev spear320_pmx_smii1; | ||
184 | extern struct pmx_dev spear320_pmx_i2c1; | ||
185 | |||
186 | /* Add spear320 machine declarations here */ | ||
187 | void __init spear320_clk_init(void); | 59 | void __init spear320_clk_init(void); |
188 | 60 | ||
189 | #endif /* CONFIG_MACH_SPEAR320 */ | 61 | #endif /* CONFIG_MACH_SPEAR320 */ |