Commit 52be41ac authored by Miles Bader's avatar Miles Bader Committed by Linus Torvalds

[PATCH] Make NB85E_UART_CKSR_MAX_FREQ (in nb85e_uart driver) overridable

Make NB85E_UART_CKSR_MAX_FREQ (in nb85e_uart driver) overridable
[The proper value is CPU-dependent]
parent cbf1e86b
......@@ -43,6 +43,9 @@
#define NB85E_UART_BRGC_ADDR(n) (NB85E_UART_BASE_ADDR(n) + 0x7)
#endif
#ifndef NB85E_UART_CKSR_MAX_FREQ
#define NB85E_UART_CKSR_MAX_FREQ (25*1000*1000)
#endif
/* UART config registers. */
#define NB85E_UART_ASIM(n) (*(volatile u8 *)NB85E_UART_ASIM_ADDR(n))
......@@ -81,7 +84,6 @@
/* UART baud-rate generator control registers. */
#define NB85E_UART_CKSR(n) (*(volatile u8 *)NB85E_UART_CKSR_ADDR(n))
#define NB85E_UART_CKSR_MAX 11
#define NB85E_UART_CKSR_MAX_FREQ (25*1000*1000)
#define NB85E_UART_BRGC(n) (*(volatile u8 *)NB85E_UART_BRGC_ADDR(n))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment