Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/uart/uart_dev_pl011.c
Show First 20 Lines • Show All 336 Lines • ▼ Show 20 Lines | static struct ofw_compat_data fdt_compat_data[] = { | ||||
{"arm,pl011", (uintptr_t)&uart_pl011_class}, | {"arm,pl011", (uintptr_t)&uart_pl011_class}, | ||||
{NULL, (uintptr_t)NULL}, | {NULL, (uintptr_t)NULL}, | ||||
}; | }; | ||||
UART_FDT_CLASS_AND_DEVICE(fdt_compat_data); | UART_FDT_CLASS_AND_DEVICE(fdt_compat_data); | ||||
#endif | #endif | ||||
#ifdef DEV_ACPI | #ifdef DEV_ACPI | ||||
static struct acpi_uart_compat_data acpi_compat_data[] = { | static struct acpi_uart_compat_data acpi_compat_data[] = { | ||||
{"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_PL011, 2, 0, 0, 0, "uart plo11"}, | {"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_PL011, 2, 0, 0, UART_F_IGNORE_SPCR_REGSHFT, "uart plo11"}, | ||||
{"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_SBSA_GENERIC, 2, 0, 0, 0, "uart plo11"}, | {"ARMH0011", &uart_pl011_class, ACPI_DBG2_ARM_SBSA_GENERIC, 2, 0, 0, UART_F_IGNORE_SPCR_REGSHFT, "uart plo11"}, | ||||
{NULL, NULL, 0, 0, 0, 0, 0, NULL}, | {NULL, NULL, 0, 0, 0, 0, 0, NULL}, | ||||
andrew: We should fix the spelling of `pl011` one day. | |||||
}; | }; | ||||
UART_ACPI_CLASS_AND_DEVICE(acpi_compat_data); | UART_ACPI_CLASS_AND_DEVICE(acpi_compat_data); | ||||
#endif | #endif | ||||
static int | static int | ||||
uart_pl011_bus_attach(struct uart_softc *sc) | uart_pl011_bus_attach(struct uart_softc *sc) | ||||
{ | { | ||||
struct uart_pl011_softc *psc; | struct uart_pl011_softc *psc; | ||||
▲ Show 20 Lines • Show All 258 Lines • Show Last 20 Lines |
We should fix the spelling of pl011 one day.