Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153157816
D23004.id66248.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
918 B
Referenced Files
None
Subscribers
None
D23004.id66248.diff
View Options
Index: sys/arm64/rockchip/rk805.c
===================================================================
--- sys/arm64/rockchip/rk805.c
+++ sys/arm64/rockchip/rk805.c
@@ -204,6 +204,7 @@
.voltage_nstep = 64,
},
{
+ /* BUCK3 voltage is calculated based on external resistor */
.id = RK805_DCDC3,
.name = "DCDC_REG3",
.enable_reg = RK805_DCDC_EN,
@@ -322,12 +323,16 @@
.name = "SWITCH_REG1",
.enable_reg = RK805_DCDC_EN,
.enable_mask = 0x20,
+ .voltage_min = 3000000,
+ .voltage_max = 3000000,
},
{
.id = RK808_SWITCH2,
.name = "SWITCH_REG2",
.enable_reg = RK805_DCDC_EN,
.enable_mask = 0x40,
+ .voltage_min = 3000000,
+ .voltage_max = 3000000,
},
};
@@ -450,6 +455,11 @@
sc = regnode_get_softc(regnode);
+ if (sc->def->voltage_min == sc->def->voltage_max) {
+ *uvolt = sc->def->voltage_min;
+ return (0);
+ }
+
if (!sc->def->voltage_step)
return (ENXIO);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 12:53 PM (10 h, 58 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31840673
Default Alt Text
D23004.id66248.diff (918 B)
Attached To
Mode
D23004: rk808: Add min/max for the switch regulators
Attached
Detach File
Event Timeline
Log In to Comment