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