Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F103030695
D23004.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
946 B
Referenced Files
None
Subscribers
None
D23004.diff
View Options
Index: head/sys/arm64/rockchip/rk805.c
===================================================================
--- head/sys/arm64/rockchip/rk805.c
+++ head/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,
},
};
@@ -449,6 +454,11 @@
uint8_t val;
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
Thu, Nov 21, 1:11 AM (21 h, 25 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14751212
Default Alt Text
D23004.diff (946 B)
Attached To
Mode
D23004: rk808: Add min/max for the switch regulators
Attached
Detach File
Event Timeline
Log In to Comment