Tom Rini | 10e4779 | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0+ |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 2 | # |
Detlev Zundel | f04e258 | 2009-04-23 13:14:20 +0200 | [diff] [blame] | 3 | # (C) Copyright 2006-2009 |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 4 | # Wolfgang Denk, DENX Software Engineering, wd@denx.de. |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 5 | |
Marek Vasut | de570f0 | 2018-04-07 16:06:22 +0200 | [diff] [blame] | 6 | ifdef CONFIG_SPL_BUILD |
| 7 | |
| 8 | ifeq ($(CONFIG_$(SPL_TPL_)BUILD)$(CONFIG_$(SPL_TPL_)DM_SERIAL),yy) |
| 9 | obj-y += serial-uclass.o |
| 10 | else |
| 11 | obj-y += serial.o |
| 12 | endif |
| 13 | |
| 14 | else |
| 15 | |
Simon Glass | 247f596 | 2014-09-04 16:27:26 -0600 | [diff] [blame] | 16 | ifdef CONFIG_DM_SERIAL |
Marek Vasut | de570f0 | 2018-04-07 16:06:22 +0200 | [diff] [blame] | 17 | obj-y += serial-uclass.o |
Simon Glass | 247f596 | 2014-09-04 16:27:26 -0600 | [diff] [blame] | 18 | else |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 19 | obj-y += serial.o |
Marek Vasut | de570f0 | 2018-04-07 16:06:22 +0200 | [diff] [blame] | 20 | endif |
| 21 | |
| 22 | endif |
| 23 | |
| 24 | ifdef CONFIG_DM_SERIAL |
| 25 | obj-$(CONFIG_PL01X_SERIAL) += serial_pl01x.o |
| 26 | else |
Simon Glass | f35484d | 2014-09-22 17:30:57 -0600 | [diff] [blame] | 27 | obj-$(CONFIG_PL011_SERIAL) += serial_pl01x.o |
Simon Glass | 79a9da3 | 2014-09-04 16:27:34 -0600 | [diff] [blame] | 28 | obj-$(CONFIG_SYS_NS16550_SERIAL) += serial_ns16550.o |
Simon Glass | 247f596 | 2014-09-04 16:27:26 -0600 | [diff] [blame] | 29 | endif |
TsiChung Liew | f6afe72 | 2007-06-18 13:50:13 -0500 | [diff] [blame] | 30 | |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 31 | obj-$(CONFIG_ALTERA_UART) += altera_uart.o |
| 32 | obj-$(CONFIG_ALTERA_JTAG_UART) += altera_jtag_uart.o |
Wills Wang | cb48c6d | 2016-03-16 16:59:57 +0800 | [diff] [blame] | 33 | obj-$(CONFIG_AR933X_UART) += serial_ar933x.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 34 | obj-$(CONFIG_ARM_DCC) += arm_dcc.o |
| 35 | obj-$(CONFIG_ATMEL_USART) += atmel_usart.o |
Álvaro Fernández Rojas | 842cfaf | 2017-04-25 00:39:16 +0200 | [diff] [blame] | 36 | obj-$(CONFIG_BCM6345_SERIAL) += serial_bcm6345.o |
Simon Glass | 4d22107 | 2019-12-19 17:58:20 -0700 | [diff] [blame] | 37 | obj-$(CONFIG_COREBOOT_SERIAL) += serial_coreboot.o |
Jason Li | adca83a | 2020-01-30 12:34:58 -0800 | [diff] [blame] | 38 | obj-$(CONFIG_CORTINA_UART) += serial_cortina.o |
Samuel Holland | 4c33c26 | 2021-09-12 10:56:09 -0500 | [diff] [blame] | 39 | obj-$(CONFIG_DEBUG_SBI_CONSOLE) += serial_sbi.o |
Simon Glass | 5a991bd | 2015-08-04 12:33:40 -0600 | [diff] [blame] | 40 | obj-$(CONFIG_EFI_APP) += serial_efi.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 41 | obj-$(CONFIG_LPC32XX_HSUART) += lpc32xx_hsuart.o |
Angelo Durgehello | dbc0c3a | 2020-02-29 01:09:35 +0100 | [diff] [blame] | 42 | obj-$(CONFIG_MCFUART) += serial_mcf.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 43 | obj-$(CONFIG_SYS_NS16550) += ns16550.o |
Mark Kettenis | 3b9ad30 | 2021-02-12 23:22:18 +0100 | [diff] [blame] | 44 | obj-$(CONFIG_S5P_SERIAL) += serial_s5p.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 45 | obj-$(CONFIG_MXC_UART) += serial_mxc.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 46 | obj-$(CONFIG_PXA_SERIAL) += serial_pxa.o |
Beniamino Galvani | d1037e4 | 2016-05-08 08:30:16 +0200 | [diff] [blame] | 47 | obj-$(CONFIG_MESON_SERIAL) += serial_meson.o |
Andy Shevchenko | c65a7fe | 2017-02-28 14:04:10 +0200 | [diff] [blame] | 48 | obj-$(CONFIG_INTEL_MID_SERIAL) += serial_intel_mid.o |
Simon Glass | b3068ad | 2016-07-04 11:58:24 -0600 | [diff] [blame] | 49 | obj-$(CONFIG_ROCKCHIP_SERIAL) += serial_rockchip.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 50 | obj-$(CONFIG_XILINX_UARTLITE) += serial_xuartlite.o |
| 51 | obj-$(CONFIG_SANDBOX_SERIAL) += sandbox.o |
| 52 | obj-$(CONFIG_SCIF_CONSOLE) += serial_sh.o |
Sean Anderson | d4f131a | 2022-03-22 16:59:24 -0400 | [diff] [blame] | 53 | obj-$(CONFIG_SEMIHOSTING_SERIAL) += serial_semihosting.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 54 | obj-$(CONFIG_ZYNQ_SERIAL) += serial_zynq.o |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 55 | obj-$(CONFIG_FSL_LPUART) += serial_lpuart.o |
Stoica Cosmin-Stefan | 0edfb4e | 2016-06-05 03:42:59 +0300 | [diff] [blame] | 56 | obj-$(CONFIG_FSL_LINFLEXUART) += serial_linflexuart.o |
Alexey Brodkin | c51eb11 | 2013-12-13 10:35:11 +0400 | [diff] [blame] | 57 | obj-$(CONFIG_ARC_SERIAL) += serial_arc.o |
Masahiro Yamada | b289073 | 2014-10-03 19:21:05 +0900 | [diff] [blame] | 58 | obj-$(CONFIG_UNIPHIER_SERIAL) += serial_uniphier.o |
rev13@wp.pl | af9873c | 2015-03-01 12:44:41 +0100 | [diff] [blame] | 59 | obj-$(CONFIG_STM32_SERIAL) += serial_stm32.o |
Patrice Chotard | 42d742b | 2017-02-21 13:37:07 +0100 | [diff] [blame] | 60 | obj-$(CONFIG_STI_ASC_SERIAL) += serial_sti_asc.o |
Paul Thacker | 1dc4283 | 2016-01-28 15:30:14 +0530 | [diff] [blame] | 61 | obj-$(CONFIG_PIC32_SERIAL) += serial_pic32.o |
Stephen Warren | f84f9bf | 2016-03-18 21:41:38 -0600 | [diff] [blame] | 62 | obj-$(CONFIG_BCM283X_MU_SERIAL) += serial_bcm283x_mu.o |
Alexander Graf | a73b0ec | 2018-01-25 12:05:55 +0100 | [diff] [blame] | 63 | obj-$(CONFIG_BCM283X_PL011_SERIAL) += serial_bcm283x_pl011.o |
Mateusz Kulikowski | 8aac697 | 2016-03-31 23:12:14 +0200 | [diff] [blame] | 64 | obj-$(CONFIG_MSM_SERIAL) += serial_msm.o |
Dzmitry Sankouski | f5be5c8 | 2021-10-17 13:44:27 +0300 | [diff] [blame] | 65 | obj-$(CONFIG_MSM_GENI_SERIAL) += serial_msm_geni.o |
Stefan Roese | 027276a | 2016-05-17 16:36:00 +0200 | [diff] [blame] | 66 | obj-$(CONFIG_MVEBU_A3700_UART) += serial_mvebu_a3700.o |
Christophe Leroy | 9ac4a54 | 2017-07-06 10:33:27 +0200 | [diff] [blame] | 67 | obj-$(CONFIG_MPC8XX_CONS) += serial_mpc8xx.o |
Keng Soon Cheah | 755e2d0 | 2017-08-24 20:29:07 -0700 | [diff] [blame] | 68 | obj-$(CONFIG_NULLDEV_SERIAL) += serial_nulldev.o |
Stefan Roese | 09e9076 | 2021-04-07 09:12:31 +0200 | [diff] [blame] | 69 | obj-$(CONFIG_OCTEON_SERIAL_BOOTCMD) += serial_octeon_bootcmd.o |
Stefan Roese | 0145225 | 2021-04-07 09:12:30 +0200 | [diff] [blame] | 70 | obj-$(CONFIG_OCTEON_SERIAL_PCIE_CONSOLE) += serial_octeon_pcie_console.o |
Manivannan Sadhasivam | 01e4739 | 2018-06-14 23:38:38 +0530 | [diff] [blame] | 71 | obj-$(CONFIG_OWL_SERIAL) += serial_owl.o |
Lokesh Vutla | 42cb4b8 | 2018-08-27 15:55:24 +0530 | [diff] [blame] | 72 | obj-$(CONFIG_OMAP_SERIAL) += serial_omap.o |
developer | 90af58f | 2018-11-15 10:08:02 +0800 | [diff] [blame] | 73 | obj-$(CONFIG_MTK_SERIAL) += serial_mtk.o |
developer | e076b9e | 2020-11-12 16:36:05 +0800 | [diff] [blame] | 74 | obj-$(CONFIG_MT7620_SERIAL) += serial_mt7620.o |
Anup Patel | c0fe284 | 2022-01-27 11:41:07 +0530 | [diff] [blame] | 75 | obj-$(CONFIG_HTIF_CONSOLE) += serial_htif.o |
Anup Patel | 4b1d68f | 2018-12-15 11:35:15 +0530 | [diff] [blame] | 76 | obj-$(CONFIG_SIFIVE_SERIAL) += serial_sifive.o |
Peng Fan | 8162f8f | 2020-08-06 12:42:50 +0300 | [diff] [blame] | 77 | obj-$(CONFIG_XEN_SERIAL) += serial_xen.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 78 | |
| 79 | ifndef CONFIG_SPL_BUILD |
Masahiro Yamada | 5594ce4 | 2013-10-17 17:34:57 +0900 | [diff] [blame] | 80 | obj-$(CONFIG_USB_TTY) += usbtty.o |
Aneesh V | 55fc5b6 | 2011-07-13 05:11:06 +0000 | [diff] [blame] | 81 | endif |