blob: a39cbefed12fb4d9679da3d5c1328e02d58cf15f [file] [log] [blame]
Stefan Reinauer1d7b9de2015-04-19 12:48:25 -07001ifeq ($(CONFIG_DRIVERS_UART),y)
2
Kyösti Mälkki3ee16682014-02-17 19:37:52 +02003romstage-y += util.c
Lee Leahy3eabe6e2016-07-24 19:22:17 -07004postcar-y += util.c
Kyösti Mälkki3ee16682014-02-17 19:37:52 +02005ramstage-y += util.c
6bootblock-y += util.c
Aaron Durbinfd6fb262015-05-13 13:37:43 -05007verstage-y += util.c
Kyösti Mälkki9c479c92014-01-26 11:32:51 +02008smm-$(CONFIG_DEBUG_SMI) += util.c
Kyösti Mälkki7e75f202014-02-10 23:21:14 +02009
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020010# 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
13ifeq ($(CONFIG_DRIVERS_UART_8250IO),y)
Alexandru Gagniuc66bbb312015-10-06 16:35:07 -070014bootblock-y += uart8250io.c
Aaron Durbin75c51d92015-09-29 16:31:20 -050015verstage-y += uart8250io.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020016romstage-y += uart8250io.c
Lee Leahy3eabe6e2016-07-24 19:22:17 -070017postcar-y += uart8250io.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020018ramstage-y += uart8250io.c
Kyösti Mälkki9c479c92014-01-26 11:32:51 +020019smm-$(CONFIG_DEBUG_SMI) += uart8250io.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020020endif
21
Kyösti Mälkkiafa7b132014-02-13 17:16:22 +020022ifeq ($(CONFIG_DRIVERS_UART_8250MEM),y)
Alexandru Gagniuc66bbb312015-10-06 16:35:07 -070023bootblock-y += uart8250mem.c
Aaron Durbin75c51d92015-09-29 16:31:20 -050024verstage-y += uart8250mem.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020025romstage-y += uart8250mem.c
Lee Leahy3eabe6e2016-07-24 19:22:17 -070026postcar-y += uart8250mem.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020027ramstage-y += uart8250mem.c
Kyösti Mälkki9c479c92014-01-26 11:32:51 +020028smm-$(CONFIG_DEBUG_SMI) += uart8250mem.c
Kyösti Mälkkibea6bf02014-01-30 15:45:16 +020029endif
30
Kyösti Mälkkid53d96d2014-02-28 15:15:12 +020031ifeq ($(CONFIG_DRIVERS_UART_OXPCIE),y)
32ramstage-y += oxpcie_early.c oxpcie.c
Lee Leahy3eabe6e2016-07-24 19:22:17 -070033postcar-y += oxpcie_early.c
Kyösti Mälkkid53d96d2014-02-28 15:15:12 +020034romstage-y += oxpcie_early.c
35endif
36
Kyösti Mälkki7e75f202014-02-10 23:21:14 +020037ifeq ($(CONFIG_DRIVERS_UART_PL011),y)
38bootblock-$(CONFIG_BOOTBLOCK_CONSOLE) += pl011.c
Kyösti Mälkki48713a12014-04-15 18:19:48 +030039romstage-y += pl011.c
Lee Leahy3eabe6e2016-07-24 19:22:17 -070040postcar-y += pl011.c
Kyösti Mälkki7e75f202014-02-10 23:21:14 +020041ramstage-y += pl011.c
42endif
Stefan Reinauer1d7b9de2015-04-19 12:48:25 -070043
44endif