1 ## SPDX-License-Identifier: GPL-2.0-only
3 ifeq ($(CONFIG_DRIVERS_UART
),y
)
10 smm-
$(CONFIG_DEBUG_SMI
) += util.c
12 # Add the driver, only one can be enabled. The driver files may
13 # be located in the soc/ or cpu/ directories instead of here.
15 ifeq ($(CONFIG_DRIVERS_UART_8250IO
),y
)
16 bootblock-y
+= uart8250io.c
17 verstage-y
+= uart8250io.c
18 romstage-y
+= uart8250io.c
19 postcar-y
+= uart8250io.c
20 ramstage-y
+= uart8250io.c
21 smm-
$(CONFIG_DEBUG_SMI
) += uart8250io.c
24 ifeq ($(CONFIG_DRIVERS_UART_8250MEM
),y
)
25 bootblock-y
+= uart8250mem.c
26 verstage-y
+= uart8250mem.c
27 romstage-y
+= uart8250mem.c
28 postcar-y
+= uart8250mem.c
29 ramstage-y
+= uart8250mem.c
30 smm-
$(CONFIG_DEBUG_SMI
) += uart8250mem.c
33 ifeq ($(CONFIG_DRIVERS_UART_OXPCIE
),y
)
34 bootblock-y
+= oxpcie_early.c
35 verstage-y
+= oxpcie_early.c
36 romstage-y
+= oxpcie_early.c
37 postcar-y
+= oxpcie_early.c
38 ramstage-y
+= oxpcie_early.c oxpcie.c
41 ifeq ($(CONFIG_DRIVERS_UART_PL011
),y
)
42 bootblock-
$(CONFIG_BOOTBLOCK_CONSOLE
) += pl011.c
49 ifeq ($(CONFIG_DRIVERS_UART_SIFIVE
),y
)
50 bootblock-
$(CONFIG_BOOTBLOCK_CONSOLE
) += sifive.c
51 romstage-y
+= sifive.c
53 ramstage-y
+= sifive.c