28c28
< __FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 219591 2011-03-13 08:36:57Z adrian $");
---
> __FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 220180 2011-03-31 02:36:22Z adrian $");
61a62
> #include <mips/atheros/ar71xx_setup.h>
153a155,198
> static void
> ar724x_chip_init_usb_peripheral(void)
> {
>
> switch (ar71xx_soc) {
> case AR71XX_SOC_AR7240:
>
> ar71xx_device_stop(AR724X_RESET_MODULE_USB_OHCI_DLL |
> AR724X_RESET_USB_HOST);
> DELAY(1000);
>
> ar71xx_device_start(AR724X_RESET_MODULE_USB_OHCI_DLL |
> AR724X_RESET_USB_HOST);
> DELAY(1000);
>
> /*
> * WAR for HW bug. Here it adjusts the duration
> * between two SOFS.
> */
> ATH_WRITE_REG(AR71XX_USB_CTRL_FLADJ,
> (3 << USB_CTRL_FLADJ_A0_SHIFT));
>
> break;
>
> case AR71XX_SOC_AR7241:
> case AR71XX_SOC_AR7242:
>
> ar71xx_device_start(AR724X_RESET_MODULE_USB_OHCI_DLL);
> DELAY(100);
>
> ar71xx_device_start(AR724X_RESET_USB_HOST);
> DELAY(100);
>
> ar71xx_device_start(AR724X_RESET_USB_PHY);
> DELAY(100);
>
> break;
>
> default:
> /* fallthrough */
> break;
> }
> }
>
166c211
< NULL /* ar71xx_chip_init_usb_peripheral */
---
> &ar724x_chip_init_usb_peripheral
< __FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 219591 2011-03-13 08:36:57Z adrian $");
---
> __FBSDID("$FreeBSD: head/sys/mips/atheros/ar724x_chip.c 220180 2011-03-31 02:36:22Z adrian $");
61a62
> #include <mips/atheros/ar71xx_setup.h>
153a155,198
> static void
> ar724x_chip_init_usb_peripheral(void)
> {
>
> switch (ar71xx_soc) {
> case AR71XX_SOC_AR7240:
>
> ar71xx_device_stop(AR724X_RESET_MODULE_USB_OHCI_DLL |
> AR724X_RESET_USB_HOST);
> DELAY(1000);
>
> ar71xx_device_start(AR724X_RESET_MODULE_USB_OHCI_DLL |
> AR724X_RESET_USB_HOST);
> DELAY(1000);
>
> /*
> * WAR for HW bug. Here it adjusts the duration
> * between two SOFS.
> */
> ATH_WRITE_REG(AR71XX_USB_CTRL_FLADJ,
> (3 << USB_CTRL_FLADJ_A0_SHIFT));
>
> break;
>
> case AR71XX_SOC_AR7241:
> case AR71XX_SOC_AR7242:
>
> ar71xx_device_start(AR724X_RESET_MODULE_USB_OHCI_DLL);
> DELAY(100);
>
> ar71xx_device_start(AR724X_RESET_USB_HOST);
> DELAY(100);
>
> ar71xx_device_start(AR724X_RESET_USB_PHY);
> DELAY(100);
>
> break;
>
> default:
> /* fallthrough */
> break;
> }
> }
>
166c211
< NULL /* ar71xx_chip_init_usb_peripheral */
---
> &ar724x_chip_init_usb_peripheral