Changeset 13698
- Timestamp:
- 2008-12-20T08:47:30+01:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/target/linux/ar71xx/files/arch/mips/ar71xx/mach-rb-4xx.c
r13488 r13698 151 151 #endif 152 152 153 static void __init rb411_setup(void) 154 { 155 rb4xx_add_device_spi(); 156 157 ar71xx_add_device_mdio(0xfffffffe); 158 159 ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 160 ar71xx_eth0_data.phy_mask = 0x00000001; 161 162 ar71xx_add_device_eth(0); 163 153 static void __init rb4xx_generic_setup(void) 154 { 164 155 ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio), 165 156 rb4xx_leds_gpio); … … 170 161 171 162 platform_device_register(&rb4xx_nand_device); 163 } 164 165 static void __init rb411_setup(void) 166 { 167 rb4xx_generic_setup(); 168 rb4xx_add_device_spi(); 169 170 ar71xx_add_device_mdio(0xfffffffe); 171 172 ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_MII; 173 ar71xx_eth0_data.phy_mask = 0x00000001; 174 175 ar71xx_add_device_eth(0); 172 176 173 177 ar71xx_pci_init(ARRAY_SIZE(rb4xx_pci_irqs), rb4xx_pci_irqs); … … 178 182 static void __init rb433_setup(void) 179 183 { 184 rb4xx_generic_setup(); 180 185 rb433_add_device_spi(); 181 186 … … 193 198 ar71xx_add_device_eth(0); 194 199 195 ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),196 rb4xx_leds_gpio);197 198 ar71xx_add_device_gpio_buttons(-1, RB4XX_BUTTONS_POLL_INTERVAL,199 ARRAY_SIZE(rb4xx_gpio_buttons),200 rb4xx_gpio_buttons);201 202 platform_device_register(&rb4xx_nand_device);203 204 200 ar71xx_pci_init(ARRAY_SIZE(rb4xx_pci_irqs), rb4xx_pci_irqs); 205 201 } … … 209 205 static void __init rb450_setup(void) 210 206 { 207 rb4xx_generic_setup(); 211 208 rb4xx_add_device_spi(); 212 209 … … 223 220 ar71xx_add_device_eth(1); 224 221 ar71xx_add_device_eth(0); 225 226 ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),227 rb4xx_leds_gpio);228 229 ar71xx_add_device_gpio_buttons(-1, RB4XX_BUTTONS_POLL_INTERVAL,230 ARRAY_SIZE(rb4xx_gpio_buttons),231 rb4xx_gpio_buttons);232 233 platform_device_register(&rb4xx_nand_device);234 222 } 235 223 … … 238 226 static void __init rb493_setup(void) 239 227 { 228 rb4xx_generic_setup(); 240 229 rb4xx_add_device_spi(); 241 230 … … 253 242 ar71xx_add_device_eth(1); 254 243 255 ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(rb4xx_leds_gpio),256 rb4xx_leds_gpio);257 258 ar71xx_add_device_gpio_buttons(-1, RB4XX_BUTTONS_POLL_INTERVAL,259 ARRAY_SIZE(rb4xx_gpio_buttons),260 rb4xx_gpio_buttons);261 262 platform_device_register(&rb4xx_nand_device);263 264 244 ar71xx_pci_init(ARRAY_SIZE(rb4xx_pci_irqs), rb4xx_pci_irqs); 265 245 } 266 246 267 247 MIPS_MACHINE(AR71XX_MACH_RB_493, "MikroTik RouterBOARD 493/AH", rb493_setup); 268
Note: See TracChangeset
for help on using the changeset viewer.