aboutsummaryrefslogtreecommitdiffstats
path: root/arch/mips/txx9/generic/setup.c
diff options
context:
space:
mode:
authorAtsushi Nemoto <anemo@mba.ocn.ne.jp>2008-07-17 11:43:48 -0400
committerRalf Baechle <ralf@linux-mips.org>2008-07-20 09:38:19 -0400
commit8d795f2a5cf73338a467ac82bdeb73225e987c45 (patch)
tree050293df491ce1623d4c7dc5f5c21a0e4f7fcf84 /arch/mips/txx9/generic/setup.c
parent73b4390fb23456964201abda79f1210fe337d01a (diff)
[MIPS] TXx9: Miscellaneous build fixes
* Fix build if only RBTX4927 or RBTX4938 was selected. * Move gpio helpers to generic part. * Select SOC_TX4938 for RBTX4927/37 board. * Fix parent of rbtx4938_fpga_resource. Signed-off-by: Atsushi Nemoto <anemo@mba.ocn.ne.jp> Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
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