]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add support for the uart classes to set their default register shift value.
authorAndrew Turner <andrew@FreeBSD.org>
Sat, 11 Apr 2015 17:16:23 +0000 (17:16 +0000)
committerAndrew Turner <andrew@FreeBSD.org>
Sat, 11 Apr 2015 17:16:23 +0000 (17:16 +0000)
commit405ada37fbdafaa6691a906f3630ba8d064e5f30
tree3242f4dc9f4677a166d03c3acecc2475385f4f3d
parent2574218578003321766b2bc85b3dc877308c0fe4
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
23 files changed:
sys/arm/amlogic/aml8726/uart_dev_aml8726.c
sys/arm/freescale/vybrid/vf_uart.c
sys/arm/samsung/exynos/exynos_uart.c
sys/arm/samsung/s3c2xx0/uart_dev_s3c2410.c
sys/dev/uart/uart_bus.h
sys/dev/uart/uart_bus_fdt.c
sys/dev/uart/uart_core.c
sys/dev/uart/uart_cpu.h
sys/dev/uart/uart_cpu_fdt.c
sys/dev/uart/uart_dev_imx.c
sys/dev/uart/uart_dev_lpc.c
sys/dev/uart/uart_dev_msm.c
sys/dev/uart/uart_dev_ns8250.c
sys/dev/uart/uart_dev_pl011.c
sys/dev/uart/uart_dev_quicc.c
sys/dev/uart/uart_dev_sab82532.c
sys/dev/uart/uart_dev_ti8250.c
sys/dev/uart/uart_dev_z8530.c
sys/mips/adm5120/uart_dev_adm5120.c
sys/mips/atheros/uart_dev_ar933x.c
sys/mips/cavium/uart_dev_oct16550.c
sys/mips/rt305x/uart_dev_rt305x.c
sys/sparc64/pci/sbbc.c