From 80efba7745863d5bbe5242bbe448a44790f56533 Mon Sep 17 00:00:00 2001 From: adrian Date: Fri, 29 Mar 2013 06:32:02 +0000 Subject: * Fix clock register definitions * Add maximum clock register values --- sys/mips/atheros/ar933x_uart.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sys/mips/atheros/ar933x_uart.h b/sys/mips/atheros/ar933x_uart.h index 992b152..5062ad0 100644 --- a/sys/mips/atheros/ar933x_uart.h +++ b/sys/mips/atheros/ar933x_uart.h @@ -68,10 +68,13 @@ #define AR933X_UART_CS_TX_BUSY (1 << 14) #define AR933X_UART_CS_RX_BUSY (1 << 15) -#define AR933X_UART_CLOCK_STEP_M 0xffff -#define AR933X_UART_CLOCK_SCALE_M 0xfff +#define AR933X_UART_CLOCK_SCALE_M 0xff #define AR933X_UART_CLOCK_SCALE_S 16 #define AR933X_UART_CLOCK_STEP_M 0xffff +#define AR933X_UART_CLOCK_STEP_S 0 + +#define AR933X_UART_MAX_SCALE 0xff +#define AR933X_UART_MAX_STEP 0xffff #define AR933X_UART_INT_RX_VALID (1 << 0) #define AR933X_UART_INT_TX_READY (1 << 1) -- cgit v1.1