svn commit: r188881 - projects/mips/sys/mips/atheros
Oleksandr Tymoshenko
gonzo at FreeBSD.org
Fri Feb 20 19:11:44 PST 2009
Author: gonzo
Date: Sat Feb 21 03:11:43 2009
New Revision: 188881
URL: http://svn.freebsd.org/changeset/base/188881
Log:
- Add USB-related registers
Modified:
projects/mips/sys/mips/atheros/ar71xxreg.h
Modified: projects/mips/sys/mips/atheros/ar71xxreg.h
==============================================================================
--- projects/mips/sys/mips/atheros/ar71xxreg.h Sat Feb 21 03:06:29 2009 (r188880)
+++ projects/mips/sys/mips/atheros/ar71xxreg.h Sat Feb 21 03:11:43 2009 (r188881)
@@ -101,6 +101,31 @@
#define AR71XX_UART_ADDR 0x18020000
+#define AR71XX_USB_CTRL_FLADJ 0x18030000
+#define USB_CTRL_FLADJ_HOST_SHIFT 12
+#define USB_CTRL_FLADJ_A5_SHIFT 10
+#define USB_CTRL_FLADJ_A4_SHIFT 8
+#define USB_CTRL_FLADJ_A3_SHIFT 6
+#define USB_CTRL_FLADJ_A2_SHIFT 4
+#define USB_CTRL_FLADJ_A1_SHIFT 2
+#define USB_CTRL_FLADJ_A0_SHIFT 0
+#define AR71XX_USB_CTRL_CONFIG 0x18030004
+#define USB_CTRL_CONFIG_OHCI_DES_SWAP (1 << 19)
+#define USB_CTRL_CONFIG_OHCI_BUF_SWAP (1 << 18)
+#define USB_CTRL_CONFIG_EHCI_DES_SWAP (1 << 17)
+#define USB_CTRL_CONFIG_EHCI_BUF_SWAP (1 << 16)
+#define USB_CTRL_CONFIG_DISABLE_XTL (1 << 13)
+#define USB_CTRL_CONFIG_OVERRIDE_XTL (1 << 12)
+#define USB_CTRL_CONFIG_CLK_SEL_SHIFT 4
+#define USB_CTRL_CONFIG_CLK_SEL_MASK 3
+#define USB_CTRL_CONFIG_CLK_SEL_12 0
+#define USB_CTRL_CONFIG_CLK_SEL_24 1
+#define USB_CTRL_CONFIG_CLK_SEL_48 2
+#define USB_CTRL_CONFIG_OVER_CURRENT_AS_GPIO (1 << 8)
+#define USB_CTRL_CONFIG_SS_SIMULATION_MODE (1 << 2)
+#define USB_CTRL_CONFIG_RESUME_UTMI_PLS_DIS (1 << 1)
+#define USB_CTRL_CONFIG_UTMI_BACKWARD_ENB (1 << 0)
+
#define AR71XX_PLL_CPU_CONFIG 0x18050000
#define AR71XX_PLL_SEC_CONFIG 0x18050004
#define AR71XX_PLL_CPU_CLK_CTRL 0x18050008
@@ -142,6 +167,9 @@
#define RST_RESET_GE1_PHY (1 << 12)
#define RST_RESET_GE0_MAC (1 << 9)
#define RST_RESET_GE0_PHY (1 << 8)
+#define RST_RESET_USB_OHCI_DLL (1 << 6)
+#define RST_RESET_USB_HOST (1 << 5)
+#define RST_RESET_USB_PHY (1 << 4)
#define RST_RESET_PCI_BUS (1 << 1)
#define RST_RESET_PCI_CORE (1 << 0)
More information about the svn-src-projects
mailing list