We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a463b00 commit 72ebd04Copy full SHA for 72ebd04
drivers/counter/Kconfig.cmos
@@ -6,4 +6,5 @@
6
config COUNTER_CMOS
7
bool "Counter driver for x86 CMOS/RTC clock"
8
default y if !RTC
9
+ select MFD
10
depends on DT_HAS_MOTOROLA_MC146818_ENABLED
drivers/counter/counter_cmos.c
@@ -19,8 +19,8 @@
19
20
/* The "CMOS" device is accessed via an address latch and data port. */
21
22
-#define X86_CMOS_ADDR (DT_INST_REG_ADDR_BY_IDX(0, 0))
23
-#define X86_CMOS_DATA (DT_INST_REG_ADDR_BY_IDX(0, 1))
+#define X86_CMOS_ADDR (DT_REG_ADDR_BY_IDX(DT_INST_PARENT(0), 0))
+#define X86_CMOS_DATA (DT_REG_ADDR_BY_IDX(DT_INST_PARENT(0), 1))
24
25
/*
26
* A snapshot of the RTC state, or at least the state we're
0 commit comments