u-boot/drivers/serial
Marek Vasut a9d7990dc4 serial: Fix Makefile during SPL and TPL build
This patch fixes a situation where CONFIG_DM_SERIAL is enabled for
regular U-Boot and SPL, but not for TPL. In that case, the build
will try to include serial-uclass into the TPL nonetheless, because
CONFIG_DM_SERIAL is set.

The solution is to check if the build is for SPL or TPL and in that
case, check if CONFIG_$(SPL_TPL_)DM_SERIAL is also set. Only in that
case, include serial-uclass.c . If the build is for regular U-Boot,
CONFIG_BUILD is not set, so only check if CONFIG_DM_SERIAL is set
and if so, include serial-uclass.c

Signed-off-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Tom Rini <trini@konsulko.com>
2018-04-11 13:22:05 -04:00
..
altera_jtag_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
altera_uart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
arm_dcc.c serial: dcc: Move driver to DM 2016-02-25 19:06:37 -05:00
atmel_usart.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
atmel_usart.h Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
Kconfig powerpc: mpc8xx: Change CONFIG_8xx to CONFIG_MPC8xx 2018-04-06 16:30:37 -04:00
lpc32xx_hsuart.c serial: lpc32xx hsuart: port driver to driver model 2016-01-13 21:05:22 -05:00
Makefile serial: Fix Makefile during SPL and TPL build 2018-04-11 13:22:05 -04:00
mcfuart.c m68k: add DM model serial driver 2016-05-17 09:54:43 -06:00
ns16550.c ns16550: Fix mem mapped endian check 2018-02-23 10:40:50 -05:00
sandbox.c dm: core: Replace of_offset with accessor 2017-02-08 06:12:14 -07:00
serial_ar933x.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_arc.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_bcm283x_mu.c serial_bcm283x_mu: Flush RX queue after setting baud rate 2018-03-09 12:26:47 -05:00
serial_bcm283x_pl011.c bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_bcm6345.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_efi.c debug_uart: Adjust the declaration of debug_uart_init() 2015-10-21 07:46:50 -06:00
serial_intel_mid.c serial: Add serial driver for Intel MID 2017-04-10 10:02:03 +08:00
serial_linflexuart.c serial: Introduce linflex uart support 2016-06-13 08:56:02 -04:00
serial_lpuart.c serial: lpuart: Proper device identification 2018-01-15 12:44:09 -08:00
serial_meson.c serial: meson: Update compatible with new Linux bindings 2018-04-10 11:52:16 -04:00
serial_mpc8xx.c powercp: mpc8xx: move commproc.h 2018-04-06 16:30:37 -04:00
serial_msm.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mvebu_a3700.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_mxc.c serial: mxc: Add debug uart support 2017-07-12 09:44:22 +02:00
serial_ns16550.c serial: Remove serial_putc_raw_dev 2016-01-25 10:39:45 -05:00
serial_nulldev.c serial: nulldev: Implement "pending" function to fix tstc return "true" 2017-11-17 07:44:13 -05:00
serial_pic32.c wait_bit: use wait_for_bit_le32 and remove wait_for_bit 2018-01-24 12:03:43 +05:30
serial_pl01x_internal.h bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_pl01x.c bcm283x_pl011: Flush RX queue after setting baud rate 2018-03-09 12:31:04 -05:00
serial_pxa.c serial: pxa: integrate optional driver model handling 2016-11-23 13:53:20 +01:00
serial_rockchip.c rockchip: serial: Adapt rockchip of-platdata driver for rk3188 2017-03-16 16:03:44 -06:00
serial_s5p.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_sh.c serial: Replace CONFIG_ with CONFIG_IS_ENABLED 2018-02-16 16:43:10 +01:00
serial_sh.h serial: sh: Add support for R7S72100 (RZ/A1) 2018-01-24 23:27:21 +01:00
serial_sti_asc.c sti: fix STMicroelectronics copyright 2017-11-06 09:51:01 -05:00
serial_stm32.c serial: stm32: Rename serial_stm32x7.c to serial_stm32.c 2018-01-19 15:49:32 -05:00
serial_stm32.h serial: stm32: Rename serial_stm32x7.c to serial_stm32.c 2018-01-19 15:49:32 -05:00
serial_uniphier.c dm: Fix up inclusion of common.h 2017-06-01 07:03:03 -06:00
serial_xuartlite.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial_zynq.c dm: Rename dev_addr..() functions 2017-06-01 07:03:01 -06:00
serial-uclass.c serial: Make full device search optional 2018-01-29 08:18:02 -05:00
serial.c drivers: serial: remove nonexisting initialisation functions 2018-04-06 17:04:33 -04:00
usbtty.c usbtty: fix typos 2017-10-16 09:42:51 -04:00
usbtty.h omap: clean-up dead configs 2014-08-09 11:17:04 -04:00