aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/setup.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/mips/txx9/generic/setup.c')
-rw-r--r--arch/mips/txx9/generic/setup.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/arch/mips/txx9/generic/setup.c b/arch/mips/txx9/generic/setup.c
index 5afc5d5cab03..8caef07701bb 100644
--- a/arch/mips/txx9/generic/setup.c
+++ b/arch/mips/txx9/generic/setup.c
@@ -94,6 +94,22 @@ void clk_put(struct clk *clk)
94} 94}
95EXPORT_SYMBOL(clk_put); 95EXPORT_SYMBOL(clk_put);
96 96
97/* GPIO support */
98
99#ifdef CONFIG_GENERIC_GPIO
100int gpio_to_irq(unsigned gpio)
101{
102 return -EINVAL;
103}
104EXPORT_SYMBOL(gpio_to_irq);
105
106int irq_to_gpio(unsigned irq)
107{
108 return -EINVAL;
109}
110EXPORT_SYMBOL(irq_to_gpio);
111#endif
112
97extern struct txx9_board_vec jmr3927_vec; 113extern struct txx9_board_vec jmr3927_vec;
98extern struct txx9_board_vec rbtx4927_vec; 114extern struct txx9_board_vec rbtx4927_vec;
99extern struct txx9_board_vec rbtx4937_vec; 115extern struct txx9_board_vec rbtx4937_vec;
@@ -126,15 +142,19 @@ void __init prom_init(void)
126#endif 142#endif
127#ifdef CONFIG_CPU_TX49XX 143#ifdef CONFIG_CPU_TX49XX
128 switch (TX4938_REV_PCODE()) { 144 switch (TX4938_REV_PCODE()) {
145#ifdef CONFIG_TOSHIBA_RBTX4927
129 case 0x4927: 146 case 0x4927:
130 txx9_board_vec = &rbtx4927_vec; 147 txx9_board_vec = &rbtx4927_vec;
131 break; 148 break;
132 case 0x4937: 149 case 0x4937:
133 txx9_board_vec = &rbtx4937_vec; 150 txx9_board_vec = &rbtx4937_vec;
134 break; 151 break;
152#endif
153#ifdef CONFIG_TOSHIBA_RBTX4938
135 case 0x4938: 154 case 0x4938:
136 txx9_board_vec = &rbtx4938_vec; 155 txx9_board_vec = &rbtx4938_vec;
137 break; 156 break;
157#endif
138 } 158 }
139#endif 159#endif
140 160