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/arm/samsung/exynos/exynos_uart.c | |
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/arm/samsung/exynos/exynos_uart.c')
-rw-r--r-- | sys/arm/samsung/exynos/exynos_uart.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/arm/samsung/exynos/exynos_uart.c b/sys/arm/samsung/exynos/exynos_uart.c index 9e33bcb..7b372de 100644 --- a/sys/arm/samsung/exynos/exynos_uart.c +++ b/sys/arm/samsung/exynos/exynos_uart.c @@ -380,6 +380,7 @@ static struct uart_class uart_exynos4210_class = { .uc_ops = &uart_exynos4210_ops, .uc_range = 8, .uc_rclk = 0, + .uc_rshift = 0 }; static struct ofw_compat_data compat_data[] = { |