blob: eb7b8f23ee904a30fe5a6f1ae4459cc9f3be1311 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
TsiChung Liew8e585f02007-06-18 13:50:13 -05002#
Detlev Zundel294f10c2009-04-23 13:14:20 +02003# (C) Copyright 2006-2009
TsiChung Liew8e585f02007-06-18 13:50:13 -05004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
TsiChung Liew8e585f02007-06-18 13:50:13 -05005
Marek Vasuta9d79902018-04-07 16:06:22 +02006ifdef CONFIG_SPL_BUILD
7
8ifeq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)DM_SERIAL),yy)
9obj-y += serial-uclass.o
Simon Glass57d92752014-09-04 16:27:26 -060010else
Masahiro Yamada710f1d32013-10-17 17:34:57 +090011obj-y += serial.o
Marek Vasuta9d79902018-04-07 16:06:22 +020012endif
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
Simon Glassaed2fbe2014-09-22 17:30:57 -060027obj-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
Simon Glass12e431b2014-09-04 16:27:34 -060028obj-$(CONFIG_SYS_NS16550_SERIAL) += serial_ns16550.o
Simon Glass57d92752014-09-04 16:27:26 -060029endif
TsiChung Liew8e585f02007-06-18 13:50:13 -050030
Masahiro Yamada710f1d32013-10-17 17:34:57 +090031obj-$(CONFIG_ALTERA_UART) += altera_uart.o
32obj-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
Wills Wang60b49762016-03-16 16:59:57 +080033obj-$(CONFIG_AR933X_UART) += serial_ar933x.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090034obj-$(CONFIG_ARM_DCC) += arm_dcc.o
35obj-$(CONFIG_ATMEL_USART) += atmel_usart.o
Álvaro Fernández Rojas30581042017-04-25 00:39:16 +020036obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o
Simon Glass44482e82019-12-19 17:58:20 -070037obj-$(CONFIG_COREBOOT_SERIAL) += serial_coreboot.o
Jason Li0de653d2020-01-30 12:34:58 -080038obj-$(CONFIG_CORTINA_UART) += serial_cortina.o
Samuel Holland41f7be72021-09-12 10:56:09 -050039obj-$(CONFIG_DEBUG_SBI_CONSOLE) += serial_sbi.o
Simon Glass275854b2015-08-04 12:33:40 -060040obj-$(CONFIG_EFI_APP) += serial_efi.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090041obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o
Angelo Durgehello18860242020-02-29 01:09:35 +010042obj-$(CONFIG_MCFUART) += serial_mcf.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090043obj-$(CONFIG_SYS_NS16550) += ns16550.o
Mark Kettenis0d9ff952021-02-12 23:22:18 +010044obj-$(CONFIG_S5P_SERIAL) += serial_s5p.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090045obj-$(CONFIG_MXC_UART) += serial_mxc.o
Beniamino Galvanibfcef282016-05-08 08:30:16 +020046obj-$(CONFIG_MESON_SERIAL) += serial_meson.o
Andy Shevchenkoc5f8dd42017-02-28 14:04:10 +020047obj-$(CONFIG_INTEL_MID_SERIAL) += serial_intel_mid.o
Simon Glass2fc24d52016-07-04 11:58:24 -060048obj-$(CONFIG_ROCKCHIP_SERIAL) += serial_rockchip.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090049obj-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o
50obj-$(CONFIG_SANDBOX_SERIAL) += sandbox.o
51obj-$(CONFIG_SCIF_CONSOLE) += serial_sh.o
Sean Anderson74d11d32022-03-22 16:59:24 -040052obj-$(CONFIG_SEMIHOSTING_SERIAL) += serial_semihosting.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090053obj-$(CONFIG_ZYNQ_SERIAL) += serial_zynq.o
Masahiro Yamada710f1d32013-10-17 17:34:57 +090054obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o
Stoica Cosmin-Stefan1f68dbc2016-06-05 03:42:59 +030055obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o
Alexey Brodkin22a240c2013-12-13 10:35:11 +040056obj-$(CONFIG_ARC_SERIAL) += serial_arc.o
Masahiro Yamada7f368552014-10-03 19:21:05 +090057obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o
rev13@wp.plab3f0c72015-03-01 12:44:41 +010058obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o
Patrice Chotard214a17e2017-02-21 13:37:07 +010059obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o
Paul Thacker9e160ee2016-01-28 15:30:14 +053060obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o
Stephen Warren3917c262016-03-18 21:41:38 -060061obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
Alexander Graf60019852018-01-25 12:05:55 +010062obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o
Mateusz Kulikowski142a20c2016-03-31 23:12:14 +020063obj-$(CONFIG_MSM_SERIAL) += serial_msm.o
Dzmitry Sankouski324df152021-10-17 13:44:27 +030064obj-$(CONFIG_MSM_GENI_SERIAL) += serial_msm_geni.o
Stefan Roese6985d492016-05-17 16:36:00 +020065obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o
Christophe Leroydd7ff472017-07-06 10:33:27 +020066obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
Keng Soon Cheahcac73f22017-08-24 20:29:07 -070067obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o
Jim Liu6f6a0b72022-04-19 13:32:21 +080068obj-$(CONFIG_NPCM_SERIAL) += serial_npcm.o
Stefan Roesef1054662021-04-07 09:12:31 +020069obj-$(CONFIG_OCTEON_SERIAL_BOOTCMD) += serial_octeon_bootcmd.o
Stefan Roese4dead102021-04-07 09:12:30 +020070obj-$(CONFIG_OCTEON_SERIAL_PCIE_CONSOLE) += serial_octeon_pcie_console.o
Manivannan Sadhasivam6f9347f2018-06-14 23:38:38 +053071obj-$(CONFIG_OWL_SERIAL) += serial_owl.o
Lokesh Vutla5d754192018-08-27 15:55:24 +053072obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
Ryder Lee849b1162018-11-15 10:08:02 +080073obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o
Weijie Gao2161f1f2020-11-12 16:36:05 +080074obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o
Anup Pateld6ba7872022-01-27 11:41:07 +053075obj-$(CONFIG_HTIF_CONSOLE) += serial_htif.o
Anup Patele2842492018-12-15 11:35:15 +053076obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o
Peng Fan384d5cf2020-08-06 12:42:50 +030077obj-$(CONFIG_XEN_SERIAL) += serial_xen.o
Aneesh V05bad4a2011-07-13 05:11:06 +000078
79ifndef CONFIG_SPL_BUILD
Masahiro Yamada710f1d32013-10-17 17:34:57 +090080obj-$(CONFIG_USB_TTY) += usbtty.o
Aneesh V05bad4a2011-07-13 05:11:06 +000081endif