mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
7fbcf3afe6
This change adds a driver for the 16550-based Aspeed virtual UART device. We use a similar process to the of_serial driver for device probe, but expose some VUART-specific functions through sysfs too. The VUART is two UART 'front ends' connected by their FIFO (no actual serial line in between). One is on the BMC side (management controller) and one is on the host CPU side. This driver is for the BMC side. The sysfs files allow the BMC userspace, which owns the system configuration policy, to specify at what IO port and interrupt number the host side will appear to the host on the Host <-> BMC LPC bus. It could be different on a different system (though most of them use 3f8/4). OpenPOWER host firmware doesn't like it when the host-side of the VUART's FIFO is not drained. This driver only disables host TX discard mode when the port is in use. We set the VUART enabled bit when we bind to the device, and clear it on unbind. We don't want to do this on open/release, as the host may be using this bit to configure serial output modes, which is independent of whether the devices has been opened by BMC userspace. Signed-off-by: Jeremy Kerr <jk@ozlabs.org> Signed-off-by: Joel Stanley <joel@jms.id.au> Acked-by: Rob Herring <robh@kernel.org> Reviewed-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
8250.txt | ||
altera_jtaguart.txt | ||
altera_uart.txt | ||
arc-uart.txt | ||
arm_sbsa_uart.txt | ||
arm,mps2-uart.txt | ||
atmel-usart.txt | ||
axis,etraxfs-uart.txt | ||
brcm,bcm2835-aux-uart.txt | ||
brcm,bcm6345-uart.txt | ||
cavium-uart.txt | ||
cdns,uart.txt | ||
cirrus,clps711x-uart.txt | ||
digicolor-usart.txt | ||
efm32-uart.txt | ||
fsl-imx-uart.txt | ||
fsl-lpuart.txt | ||
fsl-mxs-auart.txt | ||
ingenic,uart.txt | ||
lantiq_asc.txt | ||
maxim,max310x.txt | ||
microchip,pic32-uart.txt | ||
mrvl-serial.txt | ||
mrvl,pxa-ssp.txt | ||
mtk-uart.txt | ||
mvebu-uart.txt | ||
nvidia,tegra20-hsuart.txt | ||
nxp-lpc32xx-hsuart.txt | ||
nxp,lpc1850-uart.txt | ||
nxp,sc16is7xx.txt | ||
omap_serial.txt | ||
pl011.txt | ||
qca,ar9330-uart.txt | ||
qcom,msm-uart.txt | ||
qcom,msm-uartdm.txt | ||
renesas,sci-serial.txt | ||
rs485.txt | ||
samsung_uart.txt | ||
serial.txt | ||
sirf-uart.txt | ||
slave-device.txt | ||
snps-dw-apb-uart.txt | ||
sprd-uart.txt | ||
st-asc.txt | ||
st,stm32-usart.txt | ||
uniphier-uart.txt | ||
vt8500-uart.txt |