aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/sparc64/rtc.c
diff options
context:
space:
mode:
authorMarius Strobl <marius@FreeBSD.org>2009-12-23 20:42:14 +0000
committerMarius Strobl <marius@FreeBSD.org>2009-12-23 20:42:14 +0000
commit7bb518f115b32da2f59c2160557e8230d33ad23d (patch)
tree5dc2b3413771084ddf10e0e3f77c83a8cedc34d5 /sys/sparc64/sparc64/rtc.c
parent4d116858dff2d5e366b8f9883b49aa163e8d1692 (diff)
downloadsrc-7bb518f115b32da2f59c2160557e8230d33ad23d.tar.gz
src-7bb518f115b32da2f59c2160557e8230d33ad23d.zip
Don't probe the bq4802 variant found in Ultra 25 and 45 for now as
this chip isn't MC146818 compatible and requires different handlers (but which I can't test due to lack of such hardware).
Notes
Notes: svn path=/head/; revision=200915
Diffstat (limited to 'sys/sparc64/sparc64/rtc.c')
-rw-r--r--sys/sparc64/sparc64/rtc.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/sys/sparc64/sparc64/rtc.c b/sys/sparc64/sparc64/rtc.c
index 5bd196b25efb..7d9e1295e836 100644
--- a/sys/sparc64/sparc64/rtc.c
+++ b/sys/sparc64/sparc64/rtc.c
@@ -28,10 +28,11 @@
__FBSDID("$FreeBSD$");
/*
- * The `rtc' device is a MC146818 compatible clock found on the ISA
- * bus and EBus. The EBus variant actually is the Real-Time Clock
- * function of a National Semiconductor PC87317/PC97317 which also
- * provides Advanced Power Control functionality.
+ * The `rtc' device is found on the ISA bus and the EBus. The ISA version
+ * always is a MC146818 compatible clock while the EBus variant either is the
+ * MC146818 compatible Real-Time Clock function of a National Semiconductor
+ * PC87317/PC97317 which also provides Advanced Power Control functionality
+ * or a Texas Instruments bq4802.
*/
#include "opt_isa.h"
@@ -130,6 +131,10 @@ rtc_ebus_probe(device_t dev)
{
if (strcmp(ofw_bus_get_name(dev), "rtc") == 0) {
+ /* The bq4802 is not supported, yet. */
+ if (ofw_bus_get_compat(dev) != NULL &&
+ strcmp(ofw_bus_get_compat(dev), "bq4802") == 0)
+ return (ENXIO);
device_set_desc(dev, RTC_DESC);
return (0);
}