u-boot-brain/drivers/serial
Bin Meng 151f275e05 dm: serial: Handle "stdout-path" with ":options" correctly
With commit f0921f5098 ("fdt: Sync up to the latest libfdt"),
SiFive Unleashed board does not boot any more. This was due to
the U-Boot local changes commit 77d7fff8ce ("fdt: Fix handling
of paths with options in them") to libfdt/fdt_ro.c was dropped
during the libfdt upgrade.

>From the history [1] it was mentioned that the U-Boot changes
commit 77d7fff8ce ("fdt: Fix handling of paths with options in
them") was rejected by libfdt upstream, hence we need find another
way to fix the things.

This commit uses another method, by updating serial_check_stdout()
directly to handle the situation of "stdout-path" with ":options".
A simpler way is to change the logic in fdtdec_get_chosen_node()
to do similar thing, but I feel that not every property in chosen
node may have the option in them, hence it would make more sense
to do the special handling in serial_check_stdout() directly.

[1]: http://patchwork.ozlabs.org/patch/462756/

Signed-off-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
2019-12-02 16:18:05 -07:00
..
altera_jtag_uart.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
altera_uart.c serial: altera_uart: convert to livetree 2019-05-10 22:48:11 +02:00
arm_dcc.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
atmel_usart.c serial: atmel_usart: Use fixed clock value in SPL version with DM_SERIAL 2019-04-09 09:28:50 +03:00
atmel_usart.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Kconfig serial: Kconfig: make MXC_UART usable for MX7 and IMX8M 2019-10-08 16:35:16 +02:00
lpc32xx_hsuart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
Makefile drivers: serial: Add SiFive UART driver 2018-12-18 09:56:54 +08:00
mcfuart.c drivers: serial: mcfuart: add DT support 2019-05-24 08:11:58 -04:00
ns16550.c dm: pci: Add a function to read a PCI BAR 2019-10-08 13:57:43 +08:00
sandbox.c dm: core: Call ofdata_to_platdata() with of-platdata 2019-10-08 13:57:38 +08:00
serial_ar933x.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_arc.c serial_arc: Allocate buffer for private data 2019-01-25 08:40:26 +03:00
serial_bcm283x_mu.c drivers: bcm283x: Set pre-location flag for OF_BOARD 2019-11-24 10:46:27 +01:00
serial_bcm283x_pl011.c drivers: bcm283x: Set pre-location flag for OF_BOARD 2019-11-24 10:46:27 +01:00
serial_bcm6345.c serial: bcm6345: switch to raw I/O functions 2018-12-07 08:13:46 -05:00
serial_efi.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_intel_mid.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_linflexuart.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_lpuart.c serial_lpuart: Fix config check issue when using clk driver in SPL 2019-08-11 16:43:41 -04:00
serial_meson.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_mpc8xx.c drivers: serial: get rid of non DM mpc8xx driver 2018-12-03 10:44:10 -05:00
serial_msm.c serial: serial_msm: added pinmux & config 2018-05-26 18:19:17 -04:00
serial_mtk.c serial: serial_mtk: add non-DM version for SPL 2019-10-25 17:20:43 +02:00
serial_mvebu_a3700.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_mxc.c serial: mxc: Add compatibles to NXP's serial driver (for imx21 and imx53) 2019-07-19 20:32:24 +02:00
serial_ns16550.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_nulldev.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_omap.c serial: omap: Add code for early debugging 2018-12-07 08:13:49 -05:00
serial_owl.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_pic32.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_pl01x_internal.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_pl01x.c drivers: serial: dm: Enable DM_FLAG_PRE_RELOC in SBSA pl011 uart driver 2019-02-09 07:50:55 -05:00
serial_pxa.c SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
serial_rockchip.c rockchip: use 'arch-rockchip' as header file path 2019-05-01 00:00:05 +02:00
serial_s5p.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_sh.c serial: sh: Drop assorted SH3, SH4, SH5 macros 2019-05-10 22:43:18 +02:00
serial_sh.h sh: sh3: Remove CPU support 2019-05-10 22:43:18 +02:00
serial_sifive.c riscv : serial: use rx watermark to indicate rx data is present 2019-08-15 13:42:28 +08:00
serial_sti_asc.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_stm32.c serial: stm32: add Framing error support 2019-08-27 11:19:23 +02:00
serial_stm32.h serial: stm32: add Framing error support 2019-08-27 11:19:23 +02:00
serial_uniphier.c serial: uniphier: set clock rate without clock-frequency property 2018-06-23 01:28:15 +09:00
serial_xuartlite.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial_zynq.c serial: Remove DM_FLAG_PRE_RELOC flag in various drivers 2018-11-14 09:16:28 -08:00
serial-uclass.c dm: serial: Handle "stdout-path" with ":options" correctly 2019-12-02 16:18:05 -07:00
serial.c serial: serial_mtk: add non-DM version for SPL 2019-10-25 17:20:43 +02:00
usbtty.c env: Move env_get() to env.h 2019-08-11 16:43:41 -04:00
usbtty.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00