Board definition for the ARV4518PWR01. In the board definition, leds and buttons of the ARV4518PW were used.
Signed off by: José Vázquez Fernández <ppvazquez...@gmail.com> Tested by: Carles Gadea Roig <carles...@gmail.com>
diff -urN a/arch/mips/lantiq/xway/mach-arv.c b/arch/mips/lantiq/xway/mach-arv.c --- a/arch/mips/lantiq/xway/mach-arv.c 2013-09-17 21:07:00.000000000 +0200 +++ b/arch/mips/lantiq/xway/mach-arv.c 2013-09-25 13:32:14.013421918 +0200 @@ -516,6 +516,38 @@ arv4510pw_init); static void __init +arv4518pwr01_init(void) +{ +#define ARV4518PWR01_EBU 0 +#define ARV4518PWR01_USB 14 +#define ARV4518PWR01_SWITCH_RESET 13 +#define ARV4518PWR01_ATH_ADDR 0x3f0400 +#define ARV4518PWR01_MAC_ADDR 0x3f0016 + + ltq_register_gpio_ebu(ARV4518PWR01_EBU); + ltq_add_device_gpio_leds(-1, ARRAY_SIZE(arv4518pw_gpio_leds), arv4518pw_gpio_leds); + ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL, + ARRAY_SIZE(arv4518pw_gpio_keys), arv4518pw_gpio_keys); + arv_load_nor(0x400000); + ltq_pci_data.clock = PCI_CLOCK_INT; + ltq_register_pci(<q_pci_data); + xway_register_dwc(ARV4518PWR01_USB); + arv_register_ethernet(ARV4518PWR01_MAC_ADDR); + arv_register_ath5k(ARV4518PWR01_ATH_ADDR, ARV4518PWR01_MAC_ADDR); + ltq_register_ath5k(arv_ath5k_eeprom_data, arv_athxk_eeprom_mac); + ltq_register_tapi(); + + gpio_request(ARV4518PWR01_SWITCH_RESET, "switch"); + gpio_direction_output(ARV4518PW_SWITCH_RESET, 1); + gpio_export(ARV4518PWR01_SWITCH_RESET, 0); +} + +MIPS_MACHINE(LANTIQ_MACH_ARV4518PWR01, + "ARV4518PWR01", + "Arcadyan ARV4518PWR01", + arv4518pwr01_init); + +static void __init arv4518pw_init(void) { #define ARV4518PW_EBU 0
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel