blob: a48458f95532a8e312bffb6fca988e75ccfcf276 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001# SPDX-License-Identifier: GPL-2.0+
TsiChung Liewf6afe722007-06-18 13:50:13 -05002#
Detlev Zundelf04e2582009-04-23 13:14:20 +02003# (C) Copyright 2006-2009
TsiChung Liewf6afe722007-06-18 13:50:13 -05004# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
TsiChung Liewf6afe722007-06-18 13:50:13 -05005
Marek Vasutde570f02018-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
10else
11obj-y += serial.o
12endif
13
14else
15
Simon Glass247f5962014-09-04 16:27:26 -060016ifdef CONFIG_DM_SERIAL
Marek Vasutde570f02018-04-07 16:06:22 +020017obj-y += serial-uclass.o
Simon Glass247f5962014-09-04 16:27:26 -060018else
Masahiro Yamada5594ce42013-10-17 17:34:57 +090019obj-y += serial.o
Marek Vasutde570f02018-04-07 16:06:22 +020020endif
21
22endif
23
24ifdef CONFIG_DM_SERIAL
25obj-$(CONFIG_PL01X_SERIAL) += serial_pl01x.o
26else
Simon Glassf35484d2014-09-22 17:30:57 -060027obj-$(CONFIG_PL010_SERIAL) += serial_pl01x.o
28obj-$(CONFIG_PL011_SERIAL) += serial_pl01x.o
Simon Glass79a9da32014-09-04 16:27:34 -060029obj-$(CONFIG_SYS_NS16550_SERIAL) += serial_ns16550.o
Simon Glass247f5962014-09-04 16:27:26 -060030endif
TsiChung Liewf6afe722007-06-18 13:50:13 -050031
Masahiro Yamada5594ce42013-10-17 17:34:57 +090032obj-$(CONFIG_ALTERA_UART) += altera_uart.o
33obj-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o
Wills Wangcb48c6d2016-03-16 16:59:57 +080034obj-$(CONFIG_AR933X_UART) += serial_ar933x.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090035obj-$(CONFIG_ARM_DCC) += arm_dcc.o
36obj-$(CONFIG_ATMEL_USART) += atmel_usart.o
Álvaro Fernández Rojas842cfaf2017-04-25 00:39:16 +020037obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o
Philippe Reynes0371dec2018-10-11 18:31:57 +020038obj-$(CONFIG_BCM6858_SERIAL) += serial_bcm6858.o
Simon Glass5a991bd2015-08-04 12:33:40 -060039obj-$(CONFIG_EFI_APP) += serial_efi.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090040obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o
41obj-$(CONFIG_MCFUART) += mcfuart.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090042obj-$(CONFIG_SYS_NS16550) += ns16550.o
43obj-$(CONFIG_S5P) += serial_s5p.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090044obj-$(CONFIG_MXC_UART) += serial_mxc.o
Masahiro Yamada5594ce42013-10-17 17:34:57 +090045obj-$(CONFIG_PXA_SERIAL) += serial_pxa.o
Beniamino Galvanid1037e42016-05-08 08:30:16 +020046obj-$(CONFIG_MESON_SERIAL) += serial_meson.o
Andy Shevchenkoc65a7fe2017-02-28 14:04:10 +020047obj-$(CONFIG_INTEL_MID_SERIAL) += serial_intel_mid.o
Simon Glassb3068ad2016-07-04 11:58:24 -060048ifdef CONFIG_SPL_BUILD
49obj-$(CONFIG_ROCKCHIP_SERIAL) += serial_rockchip.o
50endif
Masahiro Yamada5594ce42013-10-17 17:34:57 +090051obj-$(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
Masahiro Yamada5594ce42013-10-17 17:34:57 +090055obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o
Stoica Cosmin-Stefan0edfb4e2016-06-05 03:42:59 +030056obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o
Alexey Brodkinc51eb112013-12-13 10:35:11 +040057obj-$(CONFIG_ARC_SERIAL) += serial_arc.o
Masahiro Yamadab2890732014-10-03 19:21:05 +090058obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o
rev13@wp.plaf9873c2015-03-01 12:44:41 +010059obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o
Patrice Chotard42d742b2017-02-21 13:37:07 +010060obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o
Paul Thacker1dc42832016-01-28 15:30:14 +053061obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o
Stephen Warrenf84f9bf2016-03-18 21:41:38 -060062obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o
Alexander Grafa73b0ec2018-01-25 12:05:55 +010063obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o
Mateusz Kulikowski8aac6972016-03-31 23:12:14 +020064obj-$(CONFIG_MSM_SERIAL) += serial_msm.o
Stefan Roese027276a2016-05-17 16:36:00 +020065obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o
Christophe Leroy9ac4a542017-07-06 10:33:27 +020066obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o
Keng Soon Cheah755e2d02017-08-24 20:29:07 -070067obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o
Manivannan Sadhasivam01e47392018-06-14 23:38:38 +053068obj-$(CONFIG_OWL_SERIAL) += serial_owl.o
Lokesh Vutla42cb4b82018-08-27 15:55:24 +053069obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o
Aneesh V55fc5b62011-07-13 05:11:06 +000070
71ifndef CONFIG_SPL_BUILD
Masahiro Yamada5594ce42013-10-17 17:34:57 +090072obj-$(CONFIG_USB_TTY) += usbtty.o
Aneesh V55fc5b62011-07-13 05:11:06 +000073endif