Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900.

This commit is contained in:
Marius Strobl 2011-05-15 13:27:38 +00:00
parent 3bb1fd1bc4
commit c71dacd168
2 changed files with 4 additions and 2 deletions

View File

@ -56,7 +56,8 @@ scc_ebus_probe(device_t dev)
cmpt = ofw_bus_get_compat(dev);
if (cmpt == NULL)
cmpt = "";
if (!strcmp(nm, "se") || !strcmp(cmpt, "sab82532")) {
if (!strcmp(nm, "se") || !strcmp(nm, "FJSV,se") ||
!strcmp(cmpt, "sab82532")) {
device_set_desc(dev, "Siemens SAB 82532 dual channel SCC");
sc->sc_class = &scc_sab82532_class;
return (scc_bfe_probe(dev, EBUS_REGSHFT, EBUS_RCLK, 0));

View File

@ -238,7 +238,8 @@ uart_cpu_getdev(int devtype, struct uart_devinfo *di)
di->bas.regshft = 0;
di->bas.rclk = 0;
class = NULL;
if (!strcmp(buf, "se") || !strcmp(compat, "sab82532")) {
if (!strcmp(buf, "se") || !strcmp(buf, "FJSV,se") ||
!strcmp(compat, "sab82532")) {
class = &uart_sab82532_class;
/* SAB82532 are only known to be used for TTYs. */
if ((di->bas.chan = uart_cpu_channel(dev)) == 0)