File tree Expand file tree Collapse file tree 27 files changed +55
-132
lines changed Expand file tree Collapse file tree 27 files changed +55
-132
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ KEYBOARD=15in_102
12
12
# Set keyboard LED mechanism
13
13
KBLED =rgb_pwm
14
14
15
- # Set USB-PD I2C bus
16
- CFLAGS+=-DI2C_USBPD =I2C_1
17
-
18
15
# Set discrete GPU I2C bus
19
16
CFLAGS+=-DI2C_DGPU =I2C_1
20
17
@@ -33,8 +30,8 @@ CFLAGS+=\
33
30
-DCHARGER_INPUT_CURRENT=11800
34
31
35
32
# Set USB-PD parameters
36
- USBPD = tps65987
37
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
33
+ USBPD = tps65987
34
+ CFLAGS += -DI2C_USBPD=I2C_1
38
35
39
36
# Set CPU power limits in watts
40
37
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ KEYBOARD=15in_102
12
12
# Set keyboard LED mechanism
13
13
KBLED =rgb_pwm
14
14
15
- # Set USB-PD I2C bus
16
- CFLAGS+=-DI2C_USBPD =I2C_1
17
-
18
15
# Set discrete GPU I2C bus
19
16
CFLAGS+=-DI2C_DGPU =I2C_1
20
17
@@ -33,8 +30,8 @@ CFLAGS+=\
33
30
-DCHARGER_INPUT_CURRENT=11800
34
31
35
32
# Set USB-PD parameters
36
- USBPD = tps65987
37
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
33
+ USBPD = tps65987
34
+ CFLAGS += -DI2C_USBPD=I2C_1
38
35
39
36
# Set CPU power limits in watts
40
37
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ KEYBOARD=15in_102
18
18
# Set keyboard LED mechanism
19
19
KBLED =rgb_pwm
20
20
21
- # Set USB-PD I2C bus
22
- CFLAGS+=-DI2C_USBPD =I2C_1
23
-
24
21
# Set discrete GPU I2C bus
25
22
CFLAGS+=-DI2C_DGPU =I2C_1
26
23
@@ -43,8 +40,8 @@ CFLAGS+=\
43
40
44
41
# Set USB-PD parameters
45
42
# XXX: Actually TPS65993
46
- USBPD = tps65987
47
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
43
+ USBPD = tps65987
44
+ CFLAGS += -DI2C_USBPD=I2C_1
48
45
49
46
# Set CPU power limits in watts
50
47
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -12,9 +12,6 @@ KEYBOARD=15in_102_nkey
12
12
# Set keyboard LED mechanism
13
13
KBLED =bonw14
14
14
15
- # Set USB-PD I2C bus
16
- CFLAGS+=-DI2C_USBPD =I2C_1
17
-
18
15
# Set discrete GPU I2C bus
19
16
CFLAGS+=-DI2C_DGPU =I2C_1
20
17
@@ -33,8 +30,8 @@ CFLAGS+=\
33
30
-DCHARGER_INPUT_CURRENT=14000
34
31
35
32
# Set USB-PD parameters
36
- USBPD = tps65987
37
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
33
+ USBPD = tps65987
34
+ CFLAGS += -DI2C_USBPD=I2C_1
38
35
39
36
# Set CPU power limits in watts
40
37
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ KEYBOARD=15in_102
18
18
# Set keyboard LED mechanism
19
19
KBLED =bonw14
20
20
21
- # Set USB-PD I2C bus
22
- CFLAGS+=-DI2C_USBPD =I2C_1
23
-
24
21
# Set discrete GPU I2C bus
25
22
CFLAGS+=-DI2C_DGPU =I2C_1
26
23
@@ -30,9 +27,6 @@ CFLAGS+=-DI2C_SMBUS=I2C_4
30
27
# Set touchpad PS2 bus
31
28
CFLAGS+=-DPS2_TOUCHPAD =PS2_3
32
29
33
- # Set USB-PD I2C bus
34
- CFLAGS+=-DI2C_USBPD =I2C_1
35
-
36
30
# Set smart charger parameters
37
31
# XXX: PRS1 and PRS2 are in parallel for adapter Rsense?
38
32
CHARGER =oz26786
@@ -45,7 +39,9 @@ CFLAGS+=\
45
39
46
40
# Set USB-PD parameters
47
41
# XXX: Actually TPS65994
48
- USBPD =tps65987
42
+ USBPD = tps65987
43
+ CFLAGS += -DI2C_USBPD=I2C_1
44
+ CFLAGS += -DHAVE_USBPD_CHARGING=1
49
45
50
46
# Set CPU power limits in watts
51
47
CFLAGS+ =\
Original file line number Diff line number Diff line change 33
33
// clang-format on
34
34
35
35
#ifndef HAVE_USBPD_CHARGING
36
- #define HAVE_USBPD_CHARGING 1
36
+ #define HAVE_USBPD_CHARGING 0
37
37
#endif // HAVE_USBPD_CHARGING
38
38
39
39
void usbpd_init (void ) {
Original file line number Diff line number Diff line change @@ -13,9 +13,6 @@ KEYBOARD=15in_102
13
13
KBLED =darp5
14
14
CFLAGS+=-DI2C_KBLED =I2C_1
15
15
16
- # Set USB-PD I2C bus
17
- CFLAGS+=-DI2C_USBPD =I2C_1
18
-
19
16
# Set battery I2C bus
20
17
CFLAGS+=-DI2C_SMBUS =I2C_0
21
18
@@ -31,8 +28,8 @@ CFLAGS+=\
31
28
-DCHARGER_INPUT_CURRENT=3420
32
29
33
30
# Set USB-PD parameters
34
- USBPD = tps65987
35
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
31
+ USBPD = tps65987
32
+ CFLAGS += -DI2C_USBPD=I2C_1
36
33
37
34
# Set CPU power limits in watts
38
35
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -16,9 +16,6 @@ KEYBOARD=15in_102
16
16
KBLED =darp5
17
17
CFLAGS+=-DI2C_KBLED =I2C_1
18
18
19
- # Set USB-PD I2C bus
20
- CFLAGS+=-DI2C_USBPD =I2C_1
21
-
22
19
# Set battery I2C bus
23
20
CFLAGS+=-DI2C_SMBUS =I2C_0
24
21
@@ -34,8 +31,8 @@ CFLAGS+=\
34
31
-DCHARGER_INPUT_CURRENT=3420
35
32
36
33
# Set USB-PD parameters
37
- USBPD = tps65987
38
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
34
+ USBPD = tps65987
35
+ CFLAGS += -DI2C_USBPD=I2C_1
39
36
40
37
# Set CPU power limits in watts
41
38
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ KEYBOARD=15in_102
15
15
# Set keyboard LED mechanism
16
16
KBLED =rgb_pwm
17
17
18
- # Set USB-PD I2C bus
19
- CFLAGS+=-DI2C_USBPD =I2C_1
20
-
21
18
# Set battery I2C bus
22
19
CFLAGS+=-DI2C_SMBUS =I2C_4
23
20
@@ -34,8 +31,8 @@ CFLAGS+=\
34
31
35
32
# Set USB-PD parameters
36
33
# XXX: Actually TPS65993
37
- USBPD = tps65987
38
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
34
+ USBPD = tps65987
35
+ CFLAGS += -DI2C_USBPD=I2C_1
39
36
40
37
# Set CPU power limits in watts
41
38
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -15,9 +15,6 @@ KEYBOARD=15in_102
15
15
# Set keyboard LED mechanism
16
16
KBLED =rgb_pwm
17
17
18
- # Set USB-PD I2C bus
19
- CFLAGS+=-DI2C_USBPD =I2C_1
20
-
21
18
# Set battery I2C bus
22
19
CFLAGS+=-DI2C_SMBUS =I2C_4
23
20
@@ -35,8 +32,8 @@ CFLAGS+=\
35
32
36
33
# Set USB-PD parameters
37
34
# XXX: Actually TPS65993
38
- USBPD = tps65987
39
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
35
+ USBPD = tps65987
36
+ CFLAGS += -DI2C_USBPD=I2C_1
40
37
41
38
# Set CPU power limits in watts
42
39
CFLAGS+ =\
You can’t perform that action at this time.
0 commit comments