Martin Roth | 8324fe9 | 2023-08-04 12:07:51 -0600 | [diff] [blame] | 1 | ## SPDX-License-Identifier: GPL-2.0-only |
| 2 | |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 3 | ifeq ($(CONFIG_DRIVERS_UART),y) |
| 4 | |
Kyösti Mälkki | 3ee1668 | 2014-02-17 19:37:52 +0200 | [diff] [blame] | 5 | romstage-y += util.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame] | 6 | postcar-y += util.c |
Kyösti Mälkki | 3ee1668 | 2014-02-17 19:37:52 +0200 | [diff] [blame] | 7 | ramstage-y += util.c |
| 8 | bootblock-y += util.c |
Aaron Durbin | fd6fb26 | 2015-05-13 13:37:43 -0500 | [diff] [blame] | 9 | verstage-y += util.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 10 | smm-$(CONFIG_DEBUG_SMI) += util.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 11 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 12 | # Add the driver, only one can be enabled. The driver files may |
| 13 | # be located in the soc/ or cpu/ directories instead of here. |
| 14 | |
| 15 | ifeq ($(CONFIG_DRIVERS_UART_8250IO),y) |
Alexandru Gagniuc | 66bbb31 | 2015-10-06 16:35:07 -0700 | [diff] [blame] | 16 | bootblock-y += uart8250io.c |
Aaron Durbin | 75c51d9 | 2015-09-29 16:31:20 -0500 | [diff] [blame] | 17 | verstage-y += uart8250io.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 18 | romstage-y += uart8250io.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame] | 19 | postcar-y += uart8250io.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 20 | ramstage-y += uart8250io.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 21 | smm-$(CONFIG_DEBUG_SMI) += uart8250io.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 22 | endif |
| 23 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 24 | ifeq ($(CONFIG_DRIVERS_UART_8250MEM),y) |
Alexandru Gagniuc | 66bbb31 | 2015-10-06 16:35:07 -0700 | [diff] [blame] | 25 | bootblock-y += uart8250mem.c |
Aaron Durbin | 75c51d9 | 2015-09-29 16:31:20 -0500 | [diff] [blame] | 26 | verstage-y += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 27 | romstage-y += uart8250mem.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame] | 28 | postcar-y += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 29 | ramstage-y += uart8250mem.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 30 | smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 31 | endif |
| 32 | |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 33 | ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) |
Kyösti Mälkki | fb25f9f | 2018-12-26 20:15:58 +0200 | [diff] [blame] | 34 | bootblock-y += oxpcie_early.c |
| 35 | verstage-y += oxpcie_early.c |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 36 | romstage-y += oxpcie_early.c |
Kyösti Mälkki | fb25f9f | 2018-12-26 20:15:58 +0200 | [diff] [blame] | 37 | postcar-y += oxpcie_early.c |
| 38 | ramstage-y += oxpcie_early.c oxpcie.c |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 39 | endif |
| 40 | |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 41 | ifeq ($(CONFIG_DRIVERS_UART_PL011),y) |
| 42 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c |
Kyösti Mälkki | 48713a1 | 2014-04-15 18:19:48 +0300 | [diff] [blame] | 43 | romstage-y += pl011.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame] | 44 | postcar-y += pl011.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 45 | ramstage-y += pl011.c |
Patrick Rudolph | db06cf0 | 2018-03-12 16:02:54 +0100 | [diff] [blame] | 46 | verstage-y += pl011.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 47 | endif |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 48 | |
Jonathan Neuschäfer | 894e3a9 | 2018-04-19 16:23:54 +0200 | [diff] [blame] | 49 | ifeq ($(CONFIG_DRIVERS_UART_SIFIVE),y) |
| 50 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += sifive.c |
| 51 | romstage-y += sifive.c |
| 52 | postcar-y += sifive.c |
| 53 | ramstage-y += sifive.c |
| 54 | endif |
| 55 | |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 56 | endif |