diff options
author | John Crispin <blogic@openwrt.org> | 2012-04-05 20:03:21 +0000 |
---|---|---|
committer | John Crispin <blogic@openwrt.org> | 2012-04-05 20:03:21 +0000 |
commit | b01dd0668d5836c57da7b335b2541594762dc4f3 (patch) | |
tree | 39cad2e6615890d1ae89593cca456e7ce7eb7517 /target | |
parent | 9a4f59ca9783582f24970adf0763f7e5d45bd761 (diff) | |
download | upstream-b01dd0668d5836c57da7b335b2541594762dc4f3.tar.gz upstream-b01dd0668d5836c57da7b335b2541594762dc4f3.tar.bz2 upstream-b01dd0668d5836c57da7b335b2541594762dc4f3.zip |
[lantiq] add Easybox 802 - ARV752DPW
Implements the ARV752DPW architecture in mach-arv.c
Signed-off-by: Christian Rustmeier <rustmeier@gmail.com>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@31206 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-arv.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-arv.c b/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-arv.c index 9cc90fe312..99926c5c81 100644 --- a/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-arv.c +++ b/target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-arv.c @@ -754,3 +754,32 @@ MIPS_MACHINE(LANTIQ_MACH_ARV752DPW22, "ARV752DPW22", "ARV752DPW22 - Arcor A803", arv752dpw22_init); + +static void __init +arv752dpw_init(void) +{ +#define ARV752DPW22_EBU 0x2 +#define ARV752DPW22_USB 100 +#define ARV752DPW22_RELAY 101 +#define ARV752DPW22_MAC_ADDR 0x7f0016 + + arv_load_nor(0x800000); + ltq_register_gpio_ebu(ARV752DPW22_EBU); + ltq_add_device_gpio_leds(-1, ARRAY_SIZE(arv752dpw22_gpio_leds), arv752dpw22_gpio_leds); + ltq_register_gpio_keys_polled(-1, LTQ_KEYS_POLL_INTERVAL, ARRAY_SIZE(arv752dpw22_gpio_keys), arv752dpw22_gpio_keys); + ltq_pci_data.irq[14] = (INT_NUM_IM3_IRL0 + 31); + ltq_pci_data.gpio |= PCI_EXIN1 | PCI_REQ2; + ltq_register_pci(<q_pci_data); + xway_register_dwc(ARV752DPW22_USB); + ltq_register_rt2x00("RT2860.eeprom"); + arv_register_ethernet(ARV752DPW22_MAC_ADDR); + gpio_request(ARV752DPW22_RELAY, "relay"); + gpio_set_value(ARV752DPW22_RELAY, 1); + gpio_export(ARV752DPW22_RELAY, 0); + +} + +MIPS_MACHINE(LANTIQ_MACH_ARV752DPW, + "ARV752DPW", + "ARV752DPW - Arcor A802", + arv752dpw_init); |