xref: /openbmc/u-boot/drivers/serial/Makefile (revision b6cba297)
1# SPDX-License-Identifier: GPL-2.0+
2#
3# (C) Copyright 2006-2009
4# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
5
6ifdef CONFIG_SPL_BUILD
7
8ifeq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)DM_SERIAL),yy)
9obj-y += serial-uclass.o
10else
11obj-y += serial.o
12endif
13
14else
15
16ifdef CONFIG_DM_SERIAL
17obj-y += serial-uclass.o
18else
19obj-y += serial.o
20endif
21
22endif
23
24ifdef CONFIG_DM_SERIAL
25obj-$(CONFIG_PL01X_SERIAL) += serial_pl01x.o
26else
27obj-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
28obj-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
29obj-$(CONFIG_SYS_NS16550_SERIAL) += serial_ns16550.o
30endif
31
32obj-$(CONFIG_ALTERA_UART) += altera_uart.o
33obj-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
34obj-$(CONFIG_AR933X_UART) += serial_ar933x.o
35obj-$(CONFIG_ARM_DCC) += arm_dcc.o
36obj-$(CONFIG_ATMEL_USART) += atmel_usart.o
37obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o
38obj-$(CONFIG_BCM6858_SERIAL) += serial_bcm6858.o
39obj-$(CONFIG_EFI_APP) += serial_efi.o
40obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o
41obj-$(CONFIG_MCFUART) += mcfuart.o
42obj-$(CONFIG_SYS_NS16550) += ns16550.o
43obj-$(CONFIG_S5P) += serial_s5p.o
44obj-$(CONFIG_MXC_UART) += serial_mxc.o
45obj-$(CONFIG_PXA_SERIAL) += serial_pxa.o
46obj-$(CONFIG_MESON_SERIAL) += serial_meson.o
47obj-$(CONFIG_INTEL_MID_SERIAL) += serial_intel_mid.o
48ifdef CONFIG_SPL_BUILD
49obj-$(CONFIG_ROCKCHIP_SERIAL) += serial_rockchip.o
50endif
51obj-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o
52obj-$(CONFIG_SANDBOX_SERIAL) += sandbox.o
53obj-$(CONFIG_SCIF_CONSOLE) += serial_sh.o
54obj-$(CONFIG_ZYNQ_SERIAL) += serial_zynq.o
55obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o
56obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o
57obj-$(CONFIG_ARC_SERIAL) += serial_arc.o
58obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o
59obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o
60obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o
61obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o
62obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
63obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o
64obj-$(CONFIG_MSM_SERIAL) += serial_msm.o
65obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o
66obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
67obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o
68obj-$(CONFIG_OWL_SERIAL) += serial_owl.o
69obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
70obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o
71
72ifndef CONFIG_SPL_BUILD
73obj-$(CONFIG_USB_TTY) += usbtty.o
74endif
75