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 |
| 4 | ramstage-y += util.c |
| 5 | bootblock-y += util.c |
Patrick Georgi | 9bb90cd | 2015-05-07 12:30:06 +0200 | [diff] [blame] | 6 | secmon-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) |
Aaron Durbin | 75c51d9 | 2015-09-29 16:31:20 -0500 | [diff] [blame^] | 14 | verstage-y += uart8250io.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 15 | romstage-y += uart8250io.c |
| 16 | ramstage-y += uart8250io.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 17 | smm-$(CONFIG_DEBUG_SMI) += uart8250io.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 18 | endif |
| 19 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 20 | ifeq ($(CONFIG_DRIVERS_UART_8250MEM),y) |
Aaron Durbin | 75c51d9 | 2015-09-29 16:31:20 -0500 | [diff] [blame^] | 21 | verstage-y += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 22 | romstage-y += uart8250mem.c |
| 23 | ramstage-y += uart8250mem.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 24 | smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 25 | endif |
| 26 | |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 27 | ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) |
| 28 | ramstage-y += oxpcie_early.c oxpcie.c |
| 29 | romstage-y += oxpcie_early.c |
| 30 | endif |
| 31 | |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 32 | ifeq ($(CONFIG_DRIVERS_UART_PL011),y) |
| 33 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c |
Kyösti Mälkki | 48713a1 | 2014-04-15 18:19:48 +0300 | [diff] [blame] | 34 | romstage-y += pl011.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 35 | ramstage-y += pl011.c |
| 36 | endif |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 37 | |
| 38 | endif |