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 |
Aaron Durbin | fd6fb26 | 2015-05-13 13:37:43 -0500 | [diff] [blame] | 6 | verstage-y += util.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 7 | smm-$(CONFIG_DEBUG_SMI) += util.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 8 | |
Kyösti Mälkki | afa7b13 | 2014-02-13 17:16:22 +0200 | [diff] [blame] | 9 | # Add the driver, only one can be enabled. The driver files may |
| 10 | # be located in the soc/ or cpu/ directories instead of here. |
| 11 | |
| 12 | ifeq ($(CONFIG_DRIVERS_UART_8250IO),y) |
Alexandru Gagniuc | 66bbb31 | 2015-10-06 16:35:07 -0700 | [diff] [blame^] | 13 | bootblock-y += uart8250io.c |
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) |
Alexandru Gagniuc | 66bbb31 | 2015-10-06 16:35:07 -0700 | [diff] [blame^] | 21 | bootblock-y += uart8250mem.c |
Aaron Durbin | 75c51d9 | 2015-09-29 16:31:20 -0500 | [diff] [blame] | 22 | verstage-y += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 23 | romstage-y += uart8250mem.c |
| 24 | ramstage-y += uart8250mem.c |
Kyösti Mälkki | 9c479c9 | 2014-01-26 11:32:51 +0200 | [diff] [blame] | 25 | smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c |
Kyösti Mälkki | bea6bf0 | 2014-01-30 15:45:16 +0200 | [diff] [blame] | 26 | endif |
| 27 | |
Kyösti Mälkki | d53d96d | 2014-02-28 15:15:12 +0200 | [diff] [blame] | 28 | ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y) |
| 29 | ramstage-y += oxpcie_early.c oxpcie.c |
| 30 | romstage-y += oxpcie_early.c |
| 31 | endif |
| 32 | |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 33 | ifeq ($(CONFIG_DRIVERS_UART_PL011),y) |
| 34 | bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c |
Kyösti Mälkki | 48713a1 | 2014-04-15 18:19:48 +0300 | [diff] [blame] | 35 | romstage-y += pl011.c |
Kyösti Mälkki | 7e75f20 | 2014-02-10 23:21:14 +0200 | [diff] [blame] | 36 | ramstage-y += pl011.c |
| 37 | endif |
Stefan Reinauer | 1d7b9de | 2015-04-19 12:48:25 -0700 | [diff] [blame] | 38 | |
| 39 | endif |