diff options
author | adrian <adrian@FreeBSD.org> | 2013-03-30 04:13:47 +0000 |
---|---|---|
committer | adrian <adrian@FreeBSD.org> | 2013-03-30 04:13:47 +0000 |
commit | b3c007b431158819d980e913b81010252d005e10 (patch) | |
tree | a41e747a3a96caa85a5fc0ef90827c23acf37f1f | |
parent | 3c60e22da7d4460db7adb2b916f55e22b7d60e26 (diff) | |
download | FreeBSD-src-b3c007b431158819d980e913b81010252d005e10.zip FreeBSD-src-b3c007b431158819d980e913b81010252d005e10.tar.gz |
AR933x UART updates:
* Default clock is 25MHz;
* Remove the UART register macro here - it's not needed as we don't need
to "adjust" the register offset / spacing at all;
* Remove unused fields in the softc.
Tested:
* AP121
-rw-r--r-- | sys/mips/atheros/uart_dev_ar933x.c | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/sys/mips/atheros/uart_dev_ar933x.c b/sys/mips/atheros/uart_dev_ar933x.c index e8c070c..ad1736b 100644 --- a/sys/mips/atheros/uart_dev_ar933x.c +++ b/sys/mips/atheros/uart_dev_ar933x.c @@ -41,12 +41,16 @@ __FBSDID("$FreeBSD$"); #include "uart_if.h" -#define DEFAULT_RCLK 1843200 +/* + * Default system clock is 25MHz; see ar933x_chip.c for how + * the startup process determines whether it's 25MHz or 40MHz. + */ +#define DEFAULT_RCLK (25 * 1000 * 1000) #define ar933x_getreg(bas, reg) \ - bus_space_read_4((bas)->bst, (bas)->bsh, uart_regofs(bas, reg)) + bus_space_read_4((bas)->bst, (bas)->bsh, reg) #define ar933x_setreg(bas, reg, value) \ - bus_space_write_4((bas)->bst, (bas)->bsh, uart_regofs(bas, reg), value) + bus_space_write_4((bas)->bst, (bas)->bsh, reg, value) #if 0 @@ -325,14 +329,7 @@ ar933x_getc(struct uart_bas *bas, struct mtx *hwmtx) */ struct ar933x_softc { struct uart_softc base; -#if 0 - uint8_t fcr; - uint8_t ier; - uint8_t mcr; - - uint8_t ier_mask; - uint8_t ier_rxbits; -#endif + uint32_t u_ier; }; |