diff options
| author | Adrian Chadd <adrian@FreeBSD.org> | 2010-06-23 03:59:26 +0000 |
|---|---|---|
| committer | Adrian Chadd <adrian@FreeBSD.org> | 2010-06-23 03:59:26 +0000 |
| commit | e3ded4845ca4a10f49c98ccd1f5667d68e252802 (patch) | |
| tree | d9c77512c086a57b619a5370397ae388e47bfa92 | |
| parent | e3e05e50d9fed44790c79a5b7c1b3f819b3bec53 (diff) | |
Notes
| -rw-r--r-- | sys/mips/atheros/ar71xxreg.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/sys/mips/atheros/ar71xxreg.h b/sys/mips/atheros/ar71xxreg.h index 1908d6859ba9..28d6c573cf2c 100644 --- a/sys/mips/atheros/ar71xxreg.h +++ b/sys/mips/atheros/ar71xxreg.h @@ -137,6 +137,27 @@ #define USB_CTRL_CONFIG_RESUME_UTMI_PLS_DIS (1 << 1) #define USB_CTRL_CONFIG_UTMI_BACKWARD_ENB (1 << 0) +#define AR71XX_GPIO_BASE 0x18040000 +#define AR71XX_GPIO_OE 0x00 +#define AR71XX_GPIO_IN 0x04 +#define AR71XX_GPIO_OUT 0x08 +#define AR71XX_GPIO_SET 0x0c +#define AR71XX_GPIO_CLEAR 0x10 +#define AR71XX_GPIO_INT 0x14 +#define AR71XX_GPIO_INT_TYPE 0x18 +#define AR71XX_GPIO_INT_POLARITY 0x1c +#define AR71XX_GPIO_INT_PENDING 0x20 +#define AR71XX_GPIO_INT_MASK 0x24 +#define AR71XX_GPIO_FUNCTION 0x28 +#define GPIO_FUNC_STEREO_EN (1 << 17) +#define GPIO_FUNC_SLIC_EN (1 << 16) +#define GPIO_FUNC_SPI_CS1_EN (1 << 15) +#define GPIO_FUNC_SPI_CS0_EN (1 << 14) +#define GPIO_FUNC_SPI_EN (1 << 13) +#define GPIO_FUNC_UART_EN (1 << 8) +#define GPIO_FUNC_USB_OC_EN (1 << 4) +#define GPIO_FUNC_USB_CLK_EN (0) + #define AR71XX_BASE_FREQ 40000000 #define AR71XX_PLL_CPU_CONFIG 0x18050000 #define PLL_SW_UPDATE (1 << 31) |
