diff options
author | adrian <adrian@FreeBSD.org> | 2010-07-07 15:05:44 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2010-07-07 15:05:44 +0000 |
commit | 3d4e04519cdf048dcfa3c03765e61dfb3075fe6e (patch) | |
tree | 6dd4cba06cd8e7823b5d648b29c50a4d9b80217c | |
parent | 0a0547a44db01e27873b539c252fad75519c994e (diff) | |
download | FreeBSD-src-3d4e04519cdf048dcfa3c03765e61dfb3075fe6e.zip FreeBSD-src-3d4e04519cdf048dcfa3c03765e61dfb3075fe6e.tar.gz |
Fix the CS line definitions. These bits are for the CS2/CS1 lines
rather than CS1/CS0.
This has been tested on the Ubiqiti Routerstation Pro board.
-rw-r--r-- | sys/mips/atheros/ar71xxreg.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/mips/atheros/ar71xxreg.h b/sys/mips/atheros/ar71xxreg.h index 6c93e49..a87151f 100644 --- a/sys/mips/atheros/ar71xxreg.h +++ b/sys/mips/atheros/ar71xxreg.h @@ -151,10 +151,10 @@ #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) - /* CS1 is shared with GPIO_1 */ -#define GPIO_FUNC_SPI_CS0_EN (1 << 14) - /* CS0 is shared with GPIO_0 */ +#define GPIO_FUNC_SPI_CS2_EN (1 << 15) + /* CS2 is shared with GPIO_1 */ +#define GPIO_FUNC_SPI_CS1_EN (1 << 14) + /* CS1 is shared with GPIO_0 */ #define GPIO_FUNC_SPI_EN (1 << 13) #define GPIO_FUNC_UART_EN (1 << 8) #define GPIO_FUNC_USB_OC_EN (1 << 4) |