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) |
| 32 | ramstage-y += oxpcie_early.c oxpcie.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame^] | 33 | postcar-y += oxpcie_early.c |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 34 | romstage-y += oxpcie_early.c |
| 35 | endif |
| 36 | |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 37 | ifeq ($(CONFIG_DRIVERS_UART_PL011),y) |
| 38 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c |
Kyösti Mälkki | 48713a1 | 2014-04-15 18:19:48 +0300 | [diff] [blame] | 39 | romstage-y += pl011.c |
Lee Leahy | 3eabe6e | 2016-07-24 19:22:17 -0700 | [diff] [blame^] | 40 | postcar-y += pl011.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 41 | ramstage-y += pl011.c |
| 42 | endif |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 43 | |
| 44 | endif |