Skip to content

Commit 7289550

Browse files
RuibinChangaescolar
authored andcommitted
soc: it8xxx2: kconfig: define CONFIG for variant chip
Variant chip has different USBPD HW PHY, so FW needs to apply different downstream CONFIG settings based on the PHY version. Signed-off-by: Ruibin Chang <[email protected]>
1 parent 57ed0a7 commit 7289550

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

soc/ite/ec/it8xxx2/Kconfig

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,29 +31,48 @@ config SOC_IT8XXX2_REG_SET_V2
3131
This option is selected by a variable of which soc, and will
3232
determine the register for the IT82xx2 specification.
3333

34+
config SOC_IT8XXX2_USBPD_PHY_V1
35+
bool
36+
help
37+
This option is automatically selected by variant soc and sets
38+
the USBPD PHY version.
39+
40+
config SOC_IT8XXX2_USBPD_PHY_V2
41+
bool
42+
help
43+
This option is automatically selected by variant soc and sets
44+
the USBPD PHY version.
45+
3446
config SOC_IT81302_BX
3547
select SOC_IT8XXX2_REG_SET_V1
48+
select SOC_IT8XXX2_USBPD_PHY_V1
3649

3750
config SOC_IT81202_BX
3851
select SOC_IT8XXX2_REG_SET_V1
52+
select SOC_IT8XXX2_USBPD_PHY_V1
3953

4054
config SOC_IT81302_CX
4155
select SOC_IT8XXX2_REG_SET_V1
56+
select SOC_IT8XXX2_USBPD_PHY_V2
4257

4358
config SOC_IT81202_CX
4459
select SOC_IT8XXX2_REG_SET_V1
60+
select SOC_IT8XXX2_USBPD_PHY_V2
4561

4662
config SOC_IT82202_AX
4763
select SOC_IT8XXX2_REG_SET_V2
4864
select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED
65+
select SOC_IT8XXX2_USBPD_PHY_V2
4966

5067
config SOC_IT82302_AX
5168
select SOC_IT8XXX2_REG_SET_V2
5269
select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED
70+
select SOC_IT8XXX2_USBPD_PHY_V2
5371

5472
config SOC_IT82002_AW
5573
select SOC_IT8XXX2_REG_SET_V2
5674
select SOC_IT8XXX2_EC_BUS_24MHZ if !DT_HAS_ITE_IT82XX2_USB_ENABLED
75+
select SOC_IT8XXX2_USBPD_PHY_V2
5776

5877
config SOC_IT8XXX2_PLL_FLASH_48M
5978
bool "Flash frequency is 48MHz"

0 commit comments

Comments
 (0)