aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/dts-5.10
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-02-20 17:17:17 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-02-20 16:23:58 +0000
commit9db651f4a2b724a18d4b3551b6b35fbcc911a05d (patch)
tree7db69dadad14d82f314058531e9876404222d2fa /target/linux/realtek/dts-5.10
parent71810eb068d06adf9efc14bc7dd6359c4bda711c (diff)
downloadupstream-9db651f4a2b724a18d4b3551b6b35fbcc911a05d.tar.gz
upstream-9db651f4a2b724a18d4b3551b6b35fbcc911a05d.tar.bz2
upstream-9db651f4a2b724a18d4b3551b6b35fbcc911a05d.zip
realtek: use DT provided address for timers
The I/O base address for the timers was hardcoded into the driver, or derived from the HW IRQ number as an even more horrible hack. All supported SoC families have these timers, but with hardcoded addresses the code cannot be reused right now. Request the timer's base address from the DT specification, and store it in a private struct for future reference. Matching the second interrupt specifier, the address range for the second timer is added to the DT specification. Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target/linux/realtek/dts-5.10')
-rw-r--r--target/linux/realtek/dts-5.10/rtl930x.dtsi2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/realtek/dts-5.10/rtl930x.dtsi b/target/linux/realtek/dts-5.10/rtl930x.dtsi
index 0ac613454f..bfde5e6ff6 100644
--- a/target/linux/realtek/dts-5.10/rtl930x.dtsi
+++ b/target/linux/realtek/dts-5.10/rtl930x.dtsi
@@ -59,7 +59,7 @@
rtl9300clock: rtl9300clock@3200 {
compatible = "realtek,rtl9300clock";
- reg = <0x3200 0x10>;
+ reg = <0x3200 0x10>, <0x3210 0x10>;
interrupt-parent = <&intc>;
interrupts = <7 5>, <8 5>;