Skip to content

Commit 57b04b6

Browse files
Merge pull request #1052 from FrameworkComputer/marigold.power_0617
Marigold: modify charger and power limit settings
2 parents f6c1e3c + 1ad2204 commit 57b04b6

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

driver/charger/isl9241.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#define RAA489110_CONTROL0_EN_FORCE_BUCK_MODE BIT(10)
5050
#define ISL9241_CONTROL0_EN_BYPASS_GATE BIT(11)
5151
#define ISL9241_CONTROL0_NGATE_OFF BIT(12)
52+
#define ISL9241_CONTROL0_CSIN_SINK_DISCHARGE BIT(15)
5253

5354
#define ISL9241_REG_INFORMATION1 0x3A
5455
#define ISL9241_REG_INFORMATION1_LOW_VSYS_PROCHOT BIT(10)

zephyr/program/framework/marigold/src/charger.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,8 @@ static void charger_chips_init(void)
125125
goto init_fail;
126126

127127
if (i2c_write16(I2C_PORT_CHARGER, ISL9241_ADDR_FLAGS,
128-
ISL9241_REG_CONTROL0, 0x0000))
128+
ISL9241_REG_CONTROL0,
129+
ISL9241_CONTROL0_CSIN_SINK_DISCHARGE))
129130
goto init_fail;
130131

131132
val = ISL9241_CONTROL1_PROCHOT_REF_6800;

zephyr/program/framework/marigold/src/cpu_power.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ void update_soc_power_limit(bool force_update, bool force_no_adapter)
9292
} else {
9393
if (active_power >= 55) {
9494
/* ADP >= 55W */
95-
pl1_watt = 25;
95+
pl1_watt = 30;
9696
pl2_watt = MIN((((active_power * 90) / 100) - 20), 60);
9797
psyspl2_watt = ((active_power * 95) / 100);
9898

@@ -106,7 +106,7 @@ void update_soc_power_limit(bool force_update, bool force_no_adapter)
106106

107107
} else {
108108
/*ADP < 55W*/
109-
pl1_watt = 25;
109+
pl1_watt = 30;
110110
pl2_watt = 30;
111111
psyspl2_watt = ((active_power * 95) / 100);
112112

0 commit comments

Comments
 (0)