From 79e1389160618d7f6e5a53d369d1ce2118b0f144 Mon Sep 17 00:00:00 2001 From: Tim Crawford Date: Fri, 19 Jul 2024 14:11:35 -0600 Subject: [PATCH] Set USB-PD values for all boards - Use `I2C_1` interface for all boards - Enable USB charging on bonw15, oryp11 Signed-off-by: Tim Crawford --- src/board/system76/addw1/board.mk | 5 +++++ src/board/system76/addw2/board.mk | 5 +++++ src/board/system76/addw3/board.mk | 5 +++++ src/board/system76/addw4/board.mk | 5 +++++ src/board/system76/bonw14/board.mk | 5 +++++ src/board/system76/bonw15/board.mk | 3 ++- src/board/system76/darp10-b/board.mk | 7 ++++++- src/board/system76/darp10/board.mk | 6 ++++++ src/board/system76/darp5/board.mk | 5 +++++ src/board/system76/darp6/board.mk | 5 +++++ src/board/system76/darp7/board.mk | 6 ++++++ src/board/system76/darp8/board.mk | 6 ++++++ src/board/system76/darp9/board.mk | 6 ++++++ src/board/system76/galp3-c/board.mk | 5 +++++ src/board/system76/galp4/board.mk | 5 +++++ src/board/system76/galp5/board.mk | 6 ++++++ src/board/system76/galp6/board.mk | 6 ++++++ src/board/system76/galp7/board.mk | 6 ++++++ src/board/system76/gaze17-3060-b/board.mk | 6 ++++++ src/board/system76/gaze17-3060/board.mk | 6 ++++++ src/board/system76/lemp10/board.mk | 6 ++++++ src/board/system76/lemp11/board.mk | 6 ++++++ src/board/system76/lemp12/board.mk | 6 ++++++ src/board/system76/lemp13-b/board.mk | 5 +++++ src/board/system76/lemp13/board.mk | 5 +++++ src/board/system76/oryp10/board.mk | 5 +++++ src/board/system76/oryp11/board.mk | 3 ++- src/board/system76/oryp6/board.mk | 5 +++++ src/board/system76/oryp7/board.mk | 5 +++++ src/board/system76/oryp8/board.mk | 5 +++++ src/board/system76/oryp9/board.mk | 5 +++++ src/board/system76/serw13/board.mk | 1 - 32 files changed, 162 insertions(+), 4 deletions(-) diff --git a/src/board/system76/addw1/board.mk b/src/board/system76/addw1/board.mk index f337d40f5..6745131f2 100644 --- a/src/board/system76/addw1/board.mk +++ b/src/board/system76/addw1/board.mk @@ -28,6 +28,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=12600 \ -DCHARGER_INPUT_CURRENT=11800 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/addw2/board.mk b/src/board/system76/addw2/board.mk index 98b41ff3a..8924872e5 100644 --- a/src/board/system76/addw2/board.mk +++ b/src/board/system76/addw2/board.mk @@ -28,6 +28,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=12600 \ -DCHARGER_INPUT_CURRENT=11800 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/addw3/board.mk b/src/board/system76/addw3/board.mk index 264499ec7..f9f82aac0 100644 --- a/src/board/system76/addw3/board.mk +++ b/src/board/system76/addw3/board.mk @@ -37,6 +37,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=14000 +# Set USB-PD parameters +# XXX: Actually TPS65993 +USBPD = tps65987 +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=280 \ diff --git a/src/board/system76/addw4/board.mk b/src/board/system76/addw4/board.mk index 897624536..4414bbdaa 100644 --- a/src/board/system76/addw4/board.mk +++ b/src/board/system76/addw4/board.mk @@ -33,6 +33,11 @@ CFLAGS += \ -DCHARGER_CHARGE_VOLTAGE=17400 \ -DCHARGER_INPUT_CURRENT=11500 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS += \ -DPOWER_LIMIT_AC=230 \ diff --git a/src/board/system76/bonw14/board.mk b/src/board/system76/bonw14/board.mk index dadf0066a..09ff1f91f 100644 --- a/src/board/system76/bonw14/board.mk +++ b/src/board/system76/bonw14/board.mk @@ -28,6 +28,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=16800 \ -DCHARGER_INPUT_CURRENT=14000 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/bonw15/board.mk b/src/board/system76/bonw15/board.mk index 6ef4b761a..a2b342c16 100644 --- a/src/board/system76/bonw15/board.mk +++ b/src/board/system76/bonw15/board.mk @@ -26,7 +26,6 @@ CFLAGS+=-DI2C_SMBUS=I2C_4 # Set touchpad PS2 bus CFLAGS+=-DPS2_TOUCHPAD=PS2_3 - # Set smart charger parameters # XXX: PRS1 and PRS2 are in parallel for adapter Rsense? CHARGER=oz26786 @@ -38,9 +37,11 @@ CFLAGS+=\ -DCHARGER_INPUT_CURRENT=16920 # Set USB-PD parameters +# XXX: Actually TPS65994 CONFIG_HAVE_USBPD = y CONFIG_USBPD_TPS65987 = y CFLAGS += -DI2C_USBPD=I2C_1 +CFLAGS += -DHAVE_USBPD_CHARGING=1 # Set CPU power limits in watts CFLAGS+=\ diff --git a/src/board/system76/darp10-b/board.mk b/src/board/system76/darp10-b/board.mk index efeb06255..0840de611 100644 --- a/src/board/system76/darp10-b/board.mk +++ b/src/board/system76/darp10-b/board.mk @@ -20,7 +20,6 @@ CONFIG_HAVE_KBLED = y KBLED = white_dac CFLAGS += -DKBLED_DAC=2 - # Set battery I2C bus CFLAGS += -DI2C_SMBUS=I2C_4 @@ -36,6 +35,12 @@ CFLAGS += \ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65994BH +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS += \ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp10/board.mk b/src/board/system76/darp10/board.mk index 4af71f1af..402401419 100644 --- a/src/board/system76/darp10/board.mk +++ b/src/board/system76/darp10/board.mk @@ -34,6 +34,12 @@ CFLAGS += \ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65994BH +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS += \ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp5/board.mk b/src/board/system76/darp5/board.mk index a53a2adab..2663ade54 100644 --- a/src/board/system76/darp5/board.mk +++ b/src/board/system76/darp5/board.mk @@ -29,6 +29,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp6/board.mk b/src/board/system76/darp6/board.mk index f68b5f55d..187e41dc6 100644 --- a/src/board/system76/darp6/board.mk +++ b/src/board/system76/darp6/board.mk @@ -32,6 +32,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp7/board.mk b/src/board/system76/darp7/board.mk index 41d3ca8de..0bb220624 100644 --- a/src/board/system76/darp7/board.mk +++ b/src/board/system76/darp7/board.mk @@ -31,6 +31,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=8800 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp8/board.mk b/src/board/system76/darp8/board.mk index a23351ce8..7873d1065 100644 --- a/src/board/system76/darp8/board.mk +++ b/src/board/system76/darp8/board.mk @@ -32,6 +32,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=8800 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/darp9/board.mk b/src/board/system76/darp9/board.mk index bf1da6e9d..d3e587f49 100644 --- a/src/board/system76/darp9/board.mk +++ b/src/board/system76/darp9/board.mk @@ -34,6 +34,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=8800 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/galp3-c/board.mk b/src/board/system76/galp3-c/board.mk index 2ab9d5769..72eeb291a 100644 --- a/src/board/system76/galp3-c/board.mk +++ b/src/board/system76/galp3-c/board.mk @@ -30,6 +30,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13056 \ -DCHARGER_INPUT_CURRENT=2100 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=40 \ diff --git a/src/board/system76/galp4/board.mk b/src/board/system76/galp4/board.mk index 67dda9b41..c51b62036 100644 --- a/src/board/system76/galp4/board.mk +++ b/src/board/system76/galp4/board.mk @@ -33,6 +33,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13056 \ -DCHARGER_INPUT_CURRENT=2100 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=40 \ diff --git a/src/board/system76/galp5/board.mk b/src/board/system76/galp5/board.mk index 9fc38b6a5..b85704180 100644 --- a/src/board/system76/galp5/board.mk +++ b/src/board/system76/galp5/board.mk @@ -34,6 +34,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17400 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/galp6/board.mk b/src/board/system76/galp6/board.mk index 4fdf5de53..49b88f8e7 100644 --- a/src/board/system76/galp6/board.mk +++ b/src/board/system76/galp6/board.mk @@ -37,6 +37,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17400 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/galp7/board.mk b/src/board/system76/galp7/board.mk index 074bbcf0b..4e6d388f4 100644 --- a/src/board/system76/galp7/board.mk +++ b/src/board/system76/galp7/board.mk @@ -40,6 +40,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17400 \ -DCHARGER_INPUT_CURRENT=4740 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/gaze17-3060-b/board.mk b/src/board/system76/gaze17-3060-b/board.mk index 5bab43714..f9ced5a74 100644 --- a/src/board/system76/gaze17-3060-b/board.mk +++ b/src/board/system76/gaze17-3060-b/board.mk @@ -37,6 +37,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=7500 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/gaze17-3060/board.mk b/src/board/system76/gaze17-3060/board.mk index 05b4df52e..e066c273e 100644 --- a/src/board/system76/gaze17-3060/board.mk +++ b/src/board/system76/gaze17-3060/board.mk @@ -34,6 +34,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=7500 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/lemp10/board.mk b/src/board/system76/lemp10/board.mk index 1ad67c98f..db11954ec 100644 --- a/src/board/system76/lemp10/board.mk +++ b/src/board/system76/lemp10/board.mk @@ -32,6 +32,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=8800 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/lemp11/board.mk b/src/board/system76/lemp11/board.mk index 63525e4c8..774f52664 100644 --- a/src/board/system76/lemp11/board.mk +++ b/src/board/system76/lemp11/board.mk @@ -33,6 +33,12 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=8800 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/lemp12/board.mk b/src/board/system76/lemp12/board.mk index b60c25af3..b706713b6 100644 --- a/src/board/system76/lemp12/board.mk +++ b/src/board/system76/lemp12/board.mk @@ -38,6 +38,12 @@ CFLAGS+=\ -DCHARGER_INPUT_CURRENT=3420 \ -DCHARGER_PSYS_GAIN=500 +# Set USB-PD parameters +# XXX: Actually TPS65993 +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/lemp13-b/board.mk b/src/board/system76/lemp13-b/board.mk index a4a46f461..eac1dbdc7 100644 --- a/src/board/system76/lemp13-b/board.mk +++ b/src/board/system76/lemp13-b/board.mk @@ -36,6 +36,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/lemp13/board.mk b/src/board/system76/lemp13/board.mk index b571acb4e..dc046b616 100644 --- a/src/board/system76/lemp13/board.mk +++ b/src/board/system76/lemp13/board.mk @@ -35,6 +35,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=17600 \ -DCHARGER_INPUT_CURRENT=3420 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=65 \ diff --git a/src/board/system76/oryp10/board.mk b/src/board/system76/oryp10/board.mk index 06e98e608..554876151 100644 --- a/src/board/system76/oryp10/board.mk +++ b/src/board/system76/oryp10/board.mk @@ -39,6 +39,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=11500 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/oryp11/board.mk b/src/board/system76/oryp11/board.mk index 065fda221..4265a6fd5 100644 --- a/src/board/system76/oryp11/board.mk +++ b/src/board/system76/oryp11/board.mk @@ -28,7 +28,6 @@ CFLAGS+=-DI2C_SMBUS=I2C_4 # Set touchpad PS2 bus CFLAGS+=-DPS2_TOUCHPAD=PS2_3 - # Set smart charger parameters # TODO: actually bq24800 CHARGER=bq24780s @@ -40,9 +39,11 @@ CFLAGS+=\ -DCHARGER_INPUT_CURRENT=11500 # Set USB-PD parameters +# XXX: Actually TPS65993 CONFIG_HAVE_USBPD = y CONFIG_USBPD_TPS65987 = y CFLAGS += -DI2C_USBPD=I2C_1 +CFLAGS += -DHAVE_USBPD_CHARGING=1 # Set CPU power limits in watts CFLAGS+=\ diff --git a/src/board/system76/oryp6/board.mk b/src/board/system76/oryp6/board.mk index 8461a415f..df417f83c 100644 --- a/src/board/system76/oryp6/board.mk +++ b/src/board/system76/oryp6/board.mk @@ -28,6 +28,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=9230 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/oryp7/board.mk b/src/board/system76/oryp7/board.mk index 8461a415f..df417f83c 100644 --- a/src/board/system76/oryp7/board.mk +++ b/src/board/system76/oryp7/board.mk @@ -28,6 +28,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=9230 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/oryp8/board.mk b/src/board/system76/oryp8/board.mk index 7df7931d0..e6fd99e75 100644 --- a/src/board/system76/oryp8/board.mk +++ b/src/board/system76/oryp8/board.mk @@ -31,6 +31,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=9230 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/oryp9/board.mk b/src/board/system76/oryp9/board.mk index 8287f6b15..473391c11 100644 --- a/src/board/system76/oryp9/board.mk +++ b/src/board/system76/oryp9/board.mk @@ -36,6 +36,11 @@ CFLAGS+=\ -DCHARGER_CHARGE_VOLTAGE=13050 \ -DCHARGER_INPUT_CURRENT=11500 +# Set USB-PD parameters +CONFIG_HAVE_USBPD = y +CONFIG_USBPD_TPS65987 = y +CFLAGS += -DI2C_USBPD=I2C_1 + # Set CPU power limits in watts CFLAGS+=\ -DPOWER_LIMIT_AC=180 \ diff --git a/src/board/system76/serw13/board.mk b/src/board/system76/serw13/board.mk index 149a97d25..eb8f025c0 100644 --- a/src/board/system76/serw13/board.mk +++ b/src/board/system76/serw13/board.mk @@ -26,7 +26,6 @@ CFLAGS+=-DI2C_SMBUS=I2C_4 # Set touchpad PS2 bus CFLAGS+=-DPS2_TOUCHPAD=PS2_3 - # Set smart charger parameters # TODO: actually bq24800 CFLAGS+=\