svn commit: r221960 - in head/sys/dev: scc uart
Marius Strobl
marius at FreeBSD.org
Sun May 15 13:27:39 UTC 2011
Author: marius
Date: Sun May 15 13:27:38 2011
New Revision: 221960
URL: http://svn.freebsd.org/changeset/base/221960
Log:
Recognize the SAB 82532 found in Fujitsu PRIMEPOWER650 and 900.
Modified:
head/sys/dev/scc/scc_bfe_ebus.c
head/sys/dev/uart/uart_cpu_sparc64.c
Modified: head/sys/dev/scc/scc_bfe_ebus.c
==============================================================================
--- head/sys/dev/scc/scc_bfe_ebus.c Sun May 15 13:27:28 2011 (r221959)
+++ head/sys/dev/scc/scc_bfe_ebus.c Sun May 15 13:27:38 2011 (r221960)
@@ -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));
Modified: head/sys/dev/uart/uart_cpu_sparc64.c
==============================================================================
--- head/sys/dev/uart/uart_cpu_sparc64.c Sun May 15 13:27:28 2011 (r221959)
+++ head/sys/dev/uart/uart_cpu_sparc64.c Sun May 15 13:27:38 2011 (r221960)
@@ -238,7 +238,8 @@ uart_cpu_getdev(int devtype, struct uart
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)
More information about the svn-src-all
mailing list