serw13: Hook up USB-PD
Signed-off-by: Tim Crawford <tcrawford@system76.com>
This commit is contained in:
committed by
Jeremy Soller
parent
cd0321bfbb
commit
d0596100bd
@ -27,6 +27,9 @@ CFLAGS+=-DI2C_SMBUS=I2C_4
|
|||||||
# Set touchpad PS2 bus
|
# Set touchpad PS2 bus
|
||||||
CFLAGS+=-DPS2_TOUCHPAD=PS2_3
|
CFLAGS+=-DPS2_TOUCHPAD=PS2_3
|
||||||
|
|
||||||
|
# Set USB-PD I2C bus
|
||||||
|
CFLAGS+=-DI2C_USBPD=I2C_1
|
||||||
|
|
||||||
# Set smart charger parameters
|
# Set smart charger parameters
|
||||||
# TODO: actually bq24800
|
# TODO: actually bq24800
|
||||||
# XXX: What is PRS3?
|
# XXX: What is PRS3?
|
||||||
@ -37,6 +40,9 @@ CFLAGS+=\
|
|||||||
-DCHARGER_CHARGE_VOLTAGE=13050 \
|
-DCHARGER_CHARGE_VOLTAGE=13050 \
|
||||||
-DCHARGER_INPUT_CURRENT=14000
|
-DCHARGER_INPUT_CURRENT=14000
|
||||||
|
|
||||||
|
# Set USB-PD parameters
|
||||||
|
USBPD=tps65987
|
||||||
|
|
||||||
# Set CPU power limits in watts
|
# Set CPU power limits in watts
|
||||||
CFLAGS+=\
|
CFLAGS+=\
|
||||||
-DPOWER_LIMIT_AC=280 \
|
-DPOWER_LIMIT_AC=280 \
|
||||||
|
@ -15,6 +15,7 @@ struct Gpio __code DGPU_PWR_EN = GPIO(H, 4);
|
|||||||
struct Gpio __code EC_EN = GPIO(B, 6); // renamed to SUSBC_EC#
|
struct Gpio __code EC_EN = GPIO(B, 6); // renamed to SUSBC_EC#
|
||||||
struct Gpio __code EC_RSMRST_N = GPIO(E, 5);
|
struct Gpio __code EC_RSMRST_N = GPIO(E, 5);
|
||||||
struct Gpio __code GC6_FB_EN = GPIO(D, 3);
|
struct Gpio __code GC6_FB_EN = GPIO(D, 3);
|
||||||
|
struct Gpio __code JACK_IN_N = GPIO(E, 6);
|
||||||
struct Gpio __code LAN_WAKEUP_N = GPIO(B, 2);
|
struct Gpio __code LAN_WAKEUP_N = GPIO(B, 2);
|
||||||
struct Gpio __code LED_ACIN = GPIO(H, 2);
|
struct Gpio __code LED_ACIN = GPIO(H, 2);
|
||||||
struct Gpio __code LED_BAT_CHG = GPIO(H, 5);
|
struct Gpio __code LED_BAT_CHG = GPIO(H, 5);
|
||||||
@ -26,6 +27,7 @@ struct Gpio __code PCH_DPWROK_EC = GPIO(F, 3);
|
|||||||
struct Gpio __code PCH_PWROK_EC = GPIO(C, 6);
|
struct Gpio __code PCH_PWROK_EC = GPIO(C, 6);
|
||||||
struct Gpio __code PWR_BTN_N = GPIO(D, 5);
|
struct Gpio __code PWR_BTN_N = GPIO(D, 5);
|
||||||
struct Gpio __code PWR_SW_N = GPIO(B, 3);
|
struct Gpio __code PWR_SW_N = GPIO(B, 3);
|
||||||
|
struct Gpio __code SINK_CTRL = GPIO(F, 7);
|
||||||
struct Gpio __code SLP_SUS_N = GPIO(H, 7);
|
struct Gpio __code SLP_SUS_N = GPIO(H, 7);
|
||||||
struct Gpio __code SWI_N = GPIO(B, 5);
|
struct Gpio __code SWI_N = GPIO(B, 5);
|
||||||
struct Gpio __code USB_PWR_EN_N = GPIO(E, 3);
|
struct Gpio __code USB_PWR_EN_N = GPIO(E, 3);
|
||||||
|
@ -20,6 +20,7 @@ extern struct Gpio __code DGPU_PWR_EN;
|
|||||||
extern struct Gpio __code EC_EN;
|
extern struct Gpio __code EC_EN;
|
||||||
extern struct Gpio __code EC_RSMRST_N;
|
extern struct Gpio __code EC_RSMRST_N;
|
||||||
extern struct Gpio __code GC6_FB_EN;
|
extern struct Gpio __code GC6_FB_EN;
|
||||||
|
extern struct Gpio __code JACK_IN_N;
|
||||||
extern struct Gpio __code LAN_WAKEUP_N;
|
extern struct Gpio __code LAN_WAKEUP_N;
|
||||||
extern struct Gpio __code LED_ACIN;
|
extern struct Gpio __code LED_ACIN;
|
||||||
#define HAVE_LED_AIRPLANE_N 0
|
#define HAVE_LED_AIRPLANE_N 0
|
||||||
@ -33,6 +34,7 @@ extern struct Gpio __code PCH_PWROK_EC;
|
|||||||
#define HAVE_PM_PWROK 0
|
#define HAVE_PM_PWROK 0
|
||||||
extern struct Gpio __code PWR_BTN_N;
|
extern struct Gpio __code PWR_BTN_N;
|
||||||
extern struct Gpio __code PWR_SW_N;
|
extern struct Gpio __code PWR_SW_N;
|
||||||
|
extern struct Gpio __code SINK_CTRL;
|
||||||
extern struct Gpio __code SLP_SUS_N;
|
extern struct Gpio __code SLP_SUS_N;
|
||||||
#define HAVE_SUSWARN_N 0
|
#define HAVE_SUSWARN_N 0
|
||||||
#define HAVE_SUS_PWR_ACK 0
|
#define HAVE_SUS_PWR_ACK 0
|
||||||
|
Reference in New Issue
Block a user