[lantiq] enable usb on dgn3500
authorJohn Crispin <john@openwrt.org>
Thu, 5 Apr 2012 20:03:19 +0000 (20:03 +0000)
committerJohn Crispin <john@openwrt.org>
Thu, 5 Apr 2012 20:03:19 +0000 (20:03 +0000)
A power-enable toggle gpio is not available, it is always on and protected with a resettable fuse.

Signed-off-by: Pieter Voorthuijsen<p.voorthuijsen at gmail.com>
SVN-Revision: 31205

target/linux/lantiq/files-3.2/arch/mips/lantiq/xway/mach-netgear.c

index ed9098e7fc6e5516b1863ec61a8fdae1c4a34a3e..f30478c0fd7b7db2acaffa7c05d8b988b9c4a871 100644 (file)
@@ -21,6 +21,7 @@
 
 #include "../machtypes.h"
 #include "devices.h"
+#include "dev-dwc_otg.h"
 
 static struct ltq_pci_data ltq_pci_data = {
        .clock  = PCI_CLOCK_INT,
@@ -77,6 +78,8 @@ static void __init dgn3500_init(void)
        ltq_register_pci(&ltq_pci_data);
        ltq_register_etop(&ltq_eth_data);
        ltq_register_spi(&ltq_spi_data, &spi_info, 1);
+       /* The usb power is always enabled, protected by a fuse */
+       xway_register_dwc(-1);
 }
 
 MIPS_MACHINE(LANTIQ_MACH_DGN3500B,