• Alexander Graf's avatar
    serial: bcm283x_mu: Detect disabled serial device · 601147b0
    Alexander Graf authored
    On the raspberry pi, you can disable the serial port to gain dynamic frequency
    scaling which can get handy at times.
    
    However, in such a configuration the serial controller gets its rx queue filled
    up with zero bytes which then happily get transmitted on to whoever calls
    getc() today.
    
    This patch adds detection logic for that case by checking whether the RX pin is
    mapped to GPIO15 and disables the mini uart if it is not mapped properly.
    
    That way we can leave the driver enabled in the tree and can determine during
    runtime whether serial is usable or not, having a single binary that allows for
    uart and non-uart operation.
    Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
    Acked-by: default avatarStephen Warren <swarren@wwwdotorg.org>
    Reviewed-by: default avatarSimon Glass <sjg@chromium.org>
    601147b0
Name
Last commit
Last update
..
Kconfig Loading commit data...
Makefile Loading commit data...
altera_jtag_uart.c Loading commit data...
altera_uart.c Loading commit data...
arm_dcc.c Loading commit data...
atmel_usart.c Loading commit data...
atmel_usart.h Loading commit data...
lpc32xx_hsuart.c Loading commit data...
mcfuart.c Loading commit data...
ns16550.c Loading commit data...
sandbox.c Loading commit data...
serial-uclass.c Loading commit data...
serial.c Loading commit data...
serial_ar933x.c Loading commit data...
serial_arc.c Loading commit data...
serial_bcm283x_mu.c Loading commit data...
serial_bfin.c Loading commit data...
serial_efi.c Loading commit data...
serial_linflexuart.c Loading commit data...
serial_lpuart.c Loading commit data...
serial_meson.c Loading commit data...
serial_msm.c Loading commit data...
serial_mxc.c Loading commit data...
serial_ns16550.c Loading commit data...
serial_pic32.c Loading commit data...
serial_pl01x.c Loading commit data...
serial_pl01x_internal.h Loading commit data...
serial_pxa.c Loading commit data...
serial_rockchip.c Loading commit data...
serial_s3c24x0.c Loading commit data...
serial_s5p.c Loading commit data...
serial_sh.c Loading commit data...
serial_sh.h Loading commit data...
serial_stm32.c Loading commit data...
serial_stm32x7.c Loading commit data...
serial_stm32x7.h Loading commit data...
serial_uniphier.c Loading commit data...
serial_xuartlite.c Loading commit data...
serial_zynq.c Loading commit data...
usbtty.c Loading commit data...
usbtty.h Loading commit data...