Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F167288527
D30361.id89539.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D30361.id89539.diff
View Options
Index: sys/arm64/rockchip/rk805.c
===================================================================
--- sys/arm64/rockchip/rk805.c
+++ sys/arm64/rockchip/rk805.c
@@ -35,6 +35,7 @@
#include <sys/module.h>
#include <sys/mutex.h>
#include <sys/rman.h>
+#include <sys/sysctl.h>
#include <machine/bus.h>
#include <dev/iicbus/iiconf.h>
@@ -53,6 +54,10 @@
MALLOC_DEFINE(M_RK805_REG, "RK805 regulator", "RK805 power regulator");
+static bool rtc_logging;
+SYSCTL_BOOL(_debug, OID_AUTO, rk805_rtc_logging, CTLFLAG_RWTUN, &rtc_logging, 0,
+ "Enable RK805 RTC read/set logging");
+
/* #define dprintf(sc, format, arg...) device_printf(sc->base_dev, "%s: " format, __func__, arg) */
#define dprintf(sc, format, arg...)
@@ -798,7 +803,7 @@
bct.dow = 0;
bct.ispm = 0;
- if (bootverbose)
+ if (rtc_logging)
device_printf(dev, "Read RTC: %02x-%02x-%02x %02x:%02x:%02x\n",
bct.year, bct.mon, bct.day, bct.hour, bct.min, bct.sec);
@@ -841,7 +846,7 @@
ctrl &= ~RK805_RTC_CTRL_STOP;
rk805_write(dev, RK805_RTC_CTRL, &ctrl, 1);
- if (bootverbose)
+ if (rtc_logging)
device_printf(dev,
"Set RTC at %04x-%02x-%02x %02x:%02x:%02x[.%09ld]\n",
bct.year, bct.mon, bct.day, bct.hour, bct.min, bct.sec,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Aug 21, 4:37 PM (14 h, 19 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
37041841
Default Alt Text
D30361.id89539.diff (1 KB)
Attached To
Mode
D30361: arm64/rk805: hide RTC logging behind sysctl not bootverbose
Attached
Detach File
Event Timeline
Log In to Comment