Recognize the SAB82532 in USIII machines.
This commit is contained in:
parent
d11b733f41
commit
079f9edfef
@ -48,10 +48,11 @@ __FBSDID("$FreeBSD$");
|
||||
static int
|
||||
puc_ebus_probe(device_t dev)
|
||||
{
|
||||
const char *nm;
|
||||
const char *nm, *cmpt;
|
||||
|
||||
nm = ofw_bus_get_name(dev);
|
||||
if (!strcmp(nm, "se")) {
|
||||
cmpt = ofw_bus_get_compat(dev);
|
||||
if (!strcmp(nm, "se") || (cmpt != NULL && !strcmp(cmpt, "sab82532"))) {
|
||||
device_set_desc(dev, "Siemens SAB 82532 dual channel SCC");
|
||||
return (0);
|
||||
}
|
||||
|
@ -96,7 +96,7 @@ uart_ebus_probe(device_t dev)
|
||||
sc->sc_class = &uart_ns8250_class;
|
||||
return (uart_bus_probe(dev, 0, 0, 0, 0));
|
||||
}
|
||||
if (!strcmp(nm, "se")) {
|
||||
if (!strcmp(nm, "se") || (cmpt != NULL && !strcmp(cmpt, "sab82532"))) {
|
||||
sc->sc_class = &uart_sab82532_class;
|
||||
error = uart_bus_probe(dev, 0, 0, 0, 1);
|
||||
return ((error) ? error : -1);
|
||||
|
@ -216,7 +216,7 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
|
||||
compat[0] = '\0';
|
||||
di->bas.regshft = 0;
|
||||
di->bas.rclk = 0;
|
||||
if (!strcmp(buf, "se")) {
|
||||
if (!strcmp(buf, "se") || !strcmp(compat, "sab82532")) {
|
||||
di->ops = uart_sab82532_ops;
|
||||
/* SAB82532 are only known to be used for TTYs. */
|
||||
if ((di->bas.chan = uart_cpu_channel(dev)) == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user