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 @@ -14,9 +14,6 @@ KEYBOARD=15in_102
14
14
CONFIG_HAVE_KBLED = y
15
15
KBLED =rgb_pwm
16
16
17
- # Set USB-PD I2C bus
18
- CFLAGS+=-DI2C_USBPD =I2C_1
19
-
20
17
# Set discrete GPU I2C bus
21
18
CFLAGS+=-DI2C_DGPU =I2C_1
22
19
@@ -35,8 +32,8 @@ CFLAGS+=\
35
32
-DCHARGER_INPUT_CURRENT=11800
36
33
37
34
# Set USB-PD parameters
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+ =\
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ KEYBOARD=15in_102
14
14
CONFIG_HAVE_KBLED = y
15
15
KBLED =rgb_pwm
16
16
17
- # Set USB-PD I2C bus
18
- CFLAGS+=-DI2C_USBPD =I2C_1
19
-
20
17
# Set discrete GPU I2C bus
21
18
CFLAGS+=-DI2C_DGPU =I2C_1
22
19
@@ -35,8 +32,8 @@ CFLAGS+=\
35
32
-DCHARGER_INPUT_CURRENT=11800
36
33
37
34
# Set USB-PD parameters
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+ =\
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ KEYBOARD=15in_102
20
20
CONFIG_HAVE_KBLED = y
21
21
KBLED =rgb_pwm
22
22
23
- # Set USB-PD I2C bus
24
- CFLAGS+=-DI2C_USBPD =I2C_1
25
-
26
23
# Set discrete GPU I2C bus
27
24
CFLAGS+=-DI2C_DGPU =I2C_1
28
25
@@ -45,8 +42,8 @@ CFLAGS+=\
45
42
46
43
# Set USB-PD parameters
47
44
# XXX: Actually TPS65993
48
- USBPD = tps65987
49
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
45
+ USBPD = tps65987
46
+ CFLAGS += -DI2C_USBPD=I2C_1
50
47
51
48
# Set CPU power limits in watts
52
49
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -14,9 +14,6 @@ KEYBOARD=15in_102_nkey
14
14
CONFIG_HAVE_KBLED = y
15
15
KBLED =bonw14
16
16
17
- # Set USB-PD I2C bus
18
- CFLAGS+=-DI2C_USBPD =I2C_1
19
-
20
17
# Set discrete GPU I2C bus
21
18
CFLAGS+=-DI2C_DGPU =I2C_1
22
19
@@ -35,8 +32,8 @@ CFLAGS+=\
35
32
-DCHARGER_INPUT_CURRENT=14000
36
33
37
34
# Set USB-PD parameters
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+ =\
Original file line number Diff line number Diff line change @@ -20,9 +20,6 @@ KEYBOARD=15in_102
20
20
CONFIG_HAVE_KBLED = y
21
21
KBLED =bonw14
22
22
23
- # Set USB-PD I2C bus
24
- CFLAGS+=-DI2C_USBPD =I2C_1
25
-
26
23
# Set discrete GPU I2C bus
27
24
CFLAGS+=-DI2C_DGPU =I2C_1
28
25
@@ -32,9 +29,6 @@ CFLAGS+=-DI2C_SMBUS=I2C_4
32
29
# Set touchpad PS2 bus
33
30
CFLAGS+=-DPS2_TOUCHPAD =PS2_3
34
31
35
- # Set USB-PD I2C bus
36
- CFLAGS+=-DI2C_USBPD =I2C_1
37
-
38
32
# Set smart charger parameters
39
33
# XXX: PRS1 and PRS2 are in parallel for adapter Rsense?
40
34
CHARGER =oz26786
@@ -47,7 +41,9 @@ CFLAGS+=\
47
41
48
42
# Set USB-PD parameters
49
43
# XXX: Actually TPS65994
50
- USBPD =tps65987
44
+ USBPD = tps65987
45
+ CFLAGS += -DI2C_USBPD=I2C_1
46
+ CFLAGS += -DHAVE_USBPD_CHARGING=1
51
47
52
48
# Set CPU power limits in watts
53
49
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 @@ -15,9 +15,6 @@ CONFIG_HAVE_KBLED = y
15
15
KBLED =darp5
16
16
CFLAGS+=-DI2C_KBLED =I2C_1
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_0
23
20
@@ -33,8 +30,8 @@ CFLAGS+=\
33
30
-DCHARGER_INPUT_CURRENT=3420
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 @@ CONFIG_HAVE_KBLED = y
18
18
KBLED =darp5
19
19
CFLAGS+=-DI2C_KBLED =I2C_1
20
20
21
- # Set USB-PD I2C bus
22
- CFLAGS+=-DI2C_USBPD =I2C_1
23
-
24
21
# Set battery I2C bus
25
22
CFLAGS+=-DI2C_SMBUS =I2C_0
26
23
@@ -36,8 +33,8 @@ CFLAGS+=\
36
33
-DCHARGER_INPUT_CURRENT=3420
37
34
38
35
# Set USB-PD parameters
39
- USBPD = tps65987
40
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
36
+ USBPD = tps65987
37
+ CFLAGS += -DI2C_USBPD=I2C_1
41
38
42
39
# Set CPU power limits in watts
43
40
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ KEYBOARD=15in_102
17
17
CONFIG_HAVE_KBLED = y
18
18
KBLED =rgb_pwm
19
19
20
- # Set USB-PD I2C bus
21
- CFLAGS+=-DI2C_USBPD =I2C_1
22
-
23
20
# Set battery I2C bus
24
21
CFLAGS+=-DI2C_SMBUS =I2C_4
25
22
@@ -36,8 +33,8 @@ CFLAGS+=\
36
33
37
34
# Set USB-PD parameters
38
35
# XXX: Actually TPS65993
39
- USBPD = tps65987
40
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
36
+ USBPD = tps65987
37
+ CFLAGS += -DI2C_USBPD=I2C_1
41
38
42
39
# Set CPU power limits in watts
43
40
CFLAGS+ =\
Original file line number Diff line number Diff line change @@ -17,9 +17,6 @@ KEYBOARD=15in_102
17
17
CONFIG_HAVE_KBLED = y
18
18
KBLED =rgb_pwm
19
19
20
- # Set USB-PD I2C bus
21
- CFLAGS+=-DI2C_USBPD =I2C_1
22
-
23
20
# Set battery I2C bus
24
21
CFLAGS+=-DI2C_SMBUS =I2C_4
25
22
@@ -37,8 +34,8 @@ CFLAGS+=\
37
34
38
35
# Set USB-PD parameters
39
36
# XXX: Actually TPS65993
40
- USBPD = tps65987
41
- CFLAGS+=-DHAVE_USBPD_CHARGING =0
37
+ USBPD = tps65987
38
+ CFLAGS += -DI2C_USBPD=I2C_1
42
39
43
40
# Set CPU power limits in watts
44
41
CFLAGS+ =\
You can’t perform that action at this time.
0 commit comments