diff options
author | andrew <andrew@FreeBSD.org> | 2015-04-11 17:16:23 +0000 |
---|---|---|
committer | andrew <andrew@FreeBSD.org> | 2015-04-11 17:16:23 +0000 |
commit | e2a65d5cfa2a52472daa9b9658f4fa10f742291f (patch) | |
tree | 3242f4dc9f4677a166d03c3acecc2475385f4f3d /sys/mips/atheros | |
parent | 7f65d178b4fad420cb01a2ff4b3163278d3025dc (diff) | |
download | FreeBSD-src-e2a65d5cfa2a52472daa9b9658f4fa10f742291f.zip FreeBSD-src-e2a65d5cfa2a52472daa9b9658f4fa10f742291f.tar.gz |
Add support for the uart classes to set their default register shift value.
This is needed with the pl011 driver. Before this change it would default
to a shift of 0, however the hardware places the registers at 4-byte
addresses meaning the value should be 2.
This patch fixes this for the pl011 when configured using the fdt. The
other drivers have a default value of 0 to keep this a no-op.
MFC after: 1 week
Diffstat (limited to 'sys/mips/atheros')
-rw-r--r-- | sys/mips/atheros/uart_dev_ar933x.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/mips/atheros/uart_dev_ar933x.c b/sys/mips/atheros/uart_dev_ar933x.c index 7be92bc..e769cbe 100644 --- a/sys/mips/atheros/uart_dev_ar933x.c +++ b/sys/mips/atheros/uart_dev_ar933x.c @@ -351,7 +351,8 @@ struct uart_class uart_ar933x_class = { sizeof(struct ar933x_softc), .uc_ops = &uart_ar933x_ops, .uc_range = 8, - .uc_rclk = DEFAULT_RCLK + .uc_rclk = DEFAULT_RCLK, + .uc_rshift = 0 }; #define SIGCHG(c, i, s, d) \ |