aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-spear3xx/include/mach/generic.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@st.com>2012-04-03 07:57:10 -0400
committerArnd Bergmann <arnd@arndb.de>2012-04-22 16:49:26 -0400
commit8076dd1b7deeaeb5c6f0b58be95c0a13164e1a99 (patch)
tree96e3741dec72d84de577b23c9e821a27bf371f63 /arch/arm/mach-spear3xx/include/mach/generic.h
parent52130b6033c580c27d968f64cd73209c9609e4e0 (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.h128
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
44void spear_restart(char, const char *); 43void 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 */
64extern struct pmx_dev spear3xx_pmx_firda;
65extern struct pmx_dev spear3xx_pmx_i2c;
66extern struct pmx_dev spear3xx_pmx_ssp_cs;
67extern struct pmx_dev spear3xx_pmx_ssp;
68extern struct pmx_dev spear3xx_pmx_mii;
69extern struct pmx_dev spear3xx_pmx_gpio_pin0;
70extern struct pmx_dev spear3xx_pmx_gpio_pin1;
71extern struct pmx_dev spear3xx_pmx_gpio_pin2;
72extern struct pmx_dev spear3xx_pmx_gpio_pin3;
73extern struct pmx_dev spear3xx_pmx_gpio_pin4;
74extern struct pmx_dev spear3xx_pmx_gpio_pin5;
75extern struct pmx_dev spear3xx_pmx_uart0_modem;
76extern struct pmx_dev spear3xx_pmx_uart0;
77extern struct pmx_dev spear3xx_pmx_timer_3_4;
78extern struct pmx_dev spear3xx_pmx_timer_1_2;
79
80#if defined(CONFIG_MACH_SPEAR310) || defined(CONFIG_MACH_SPEAR320)
81/* padmux plgpio devices */
82extern struct pmx_dev spear3xx_pmx_plgpio_0_1;
83extern struct pmx_dev spear3xx_pmx_plgpio_2_3;
84extern struct pmx_dev spear3xx_pmx_plgpio_4_5;
85extern struct pmx_dev spear3xx_pmx_plgpio_6_9;
86extern struct pmx_dev spear3xx_pmx_plgpio_10_27;
87extern struct pmx_dev spear3xx_pmx_plgpio_28;
88extern struct pmx_dev spear3xx_pmx_plgpio_29;
89extern struct pmx_dev spear3xx_pmx_plgpio_30;
90extern struct pmx_dev spear3xx_pmx_plgpio_31;
91extern struct pmx_dev spear3xx_pmx_plgpio_32;
92extern struct pmx_dev spear3xx_pmx_plgpio_33;
93extern struct pmx_dev spear3xx_pmx_plgpio_34_36;
94extern struct pmx_dev spear3xx_pmx_plgpio_37_42;
95extern struct pmx_dev spear3xx_pmx_plgpio_43_44_47_48;
96extern 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 */
102extern struct pmx_mode spear300_nand_mode;
103extern struct pmx_mode spear300_nor_mode;
104extern struct pmx_mode spear300_photo_frame_mode;
105extern struct pmx_mode spear300_lend_ip_phone_mode;
106extern struct pmx_mode spear300_hend_ip_phone_mode;
107extern struct pmx_mode spear300_lend_wifi_phone_mode;
108extern struct pmx_mode spear300_hend_wifi_phone_mode;
109extern struct pmx_mode spear300_ata_pabx_wi2s_mode;
110extern struct pmx_mode spear300_ata_pabx_i2s_mode;
111extern struct pmx_mode spear300_caml_lcdw_mode;
112extern struct pmx_mode spear300_camu_lcd_mode;
113extern struct pmx_mode spear300_camu_wlcd_mode;
114extern struct pmx_mode spear300_caml_lcd_mode;
115
116/* pad mux devices */
117extern struct pmx_dev spear300_pmx_fsmc_2_chips;
118extern struct pmx_dev spear300_pmx_fsmc_4_chips;
119extern struct pmx_dev spear300_pmx_keyboard;
120extern struct pmx_dev spear300_pmx_clcd;
121extern struct pmx_dev spear300_pmx_telecom_gpio;
122extern struct pmx_dev spear300_pmx_telecom_tdm;
123extern struct pmx_dev spear300_pmx_telecom_spi_cs_i2c_clk;
124extern struct pmx_dev spear300_pmx_telecom_camera;
125extern struct pmx_dev spear300_pmx_telecom_dac;
126extern struct pmx_dev spear300_pmx_telecom_i2s;
127extern struct pmx_dev spear300_pmx_telecom_boot_pins;
128extern struct pmx_dev spear300_pmx_telecom_sdhci_4bit;
129extern struct pmx_dev spear300_pmx_telecom_sdhci_8bit;
130extern struct pmx_dev spear300_pmx_gpio1;
131
132/* Add spear300 machine declarations here */
133void __init spear300_clk_init(void); 47void __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 */
140extern struct pmx_dev spear310_pmx_emi_cs_0_1_4_5;
141extern struct pmx_dev spear310_pmx_emi_cs_2_3;
142extern struct pmx_dev spear310_pmx_uart1;
143extern struct pmx_dev spear310_pmx_uart2;
144extern struct pmx_dev spear310_pmx_uart3_4_5;
145extern struct pmx_dev spear310_pmx_fsmc;
146extern struct pmx_dev spear310_pmx_rs485_0_1;
147extern struct pmx_dev spear310_pmx_tdm0;
148
149/* Add spear310 machine declarations here */
150void __init spear310_clk_init(void); 53void __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 */
157extern struct pmx_mode spear320_auto_net_smii_mode;
158extern struct pmx_mode spear320_auto_net_mii_mode;
159extern struct pmx_mode spear320_auto_exp_mode;
160extern struct pmx_mode spear320_small_printers_mode;
161
162/* pad mux devices */
163extern struct pmx_dev spear320_pmx_clcd;
164extern struct pmx_dev spear320_pmx_emi;
165extern struct pmx_dev spear320_pmx_fsmc;
166extern struct pmx_dev spear320_pmx_spp;
167extern struct pmx_dev spear320_pmx_sdhci;
168extern struct pmx_dev spear320_pmx_i2s;
169extern struct pmx_dev spear320_pmx_uart1;
170extern struct pmx_dev spear320_pmx_uart1_modem;
171extern struct pmx_dev spear320_pmx_uart2;
172extern struct pmx_dev spear320_pmx_touchscreen;
173extern struct pmx_dev spear320_pmx_can;
174extern struct pmx_dev spear320_pmx_sdhci_led;
175extern struct pmx_dev spear320_pmx_pwm0;
176extern struct pmx_dev spear320_pmx_pwm1;
177extern struct pmx_dev spear320_pmx_pwm2;
178extern struct pmx_dev spear320_pmx_pwm3;
179extern struct pmx_dev spear320_pmx_ssp1;
180extern struct pmx_dev spear320_pmx_ssp2;
181extern struct pmx_dev spear320_pmx_mii1;
182extern struct pmx_dev spear320_pmx_smii0;
183extern struct pmx_dev spear320_pmx_smii1;
184extern struct pmx_dev spear320_pmx_i2c1;
185
186/* Add spear320 machine declarations here */
187void __init spear320_clk_init(void); 59void __init spear320_clk_init(void);
188 60
189#endif /* CONFIG_MACH_SPEAR320 */ 61#endif /* CONFIG_MACH_SPEAR320 */