dt-bindings: usb: mtk-xhci: add support mt8196
Subsystems (5)
Chunfeng Yun
maintainerPATCH v2 1/4 dt-bindings: usb: mtk-xhci: add support mt8196
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them, and add a new compatilbe for mt8196.
---
v2: no changes
--- .../devicetree/bindings/usb/mediatek,mtk-xhci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtk-xhci.yaml +5 -1
@@ -36,6 +36,7 @@ properties: - mediatek,mt8188-xhci - mediatek,mt8192-xhci - mediatek,mt8195-xhci + - mediatek,mt8196-xhci - mediatek,mt8365-xhci - const: mediatek,mtk-xhci
@@ -164,7 +165,10 @@ properties: 104 - used by mt8195, IP1, specific 1.04; 105 - used by mt8195, IP2, specific 1.05; 106 - used by mt8195, IP3, specific 1.06; - enum: [1, 2, 101, 102, 103, 104, 105, 106] + 107 - used by mt8196, IP0, specific 1.07; + 108 - used by mt8196, IP1, specific 1.08; + 109 - used by mt8196, IP2, specific 1.09; + enum: [1, 2, 101, 102, 103, 104, 105, 106, 107, 108, 109] mediatek,u3p-dis-msk: $ref: /schemas/types.yaml#/definitions/uint32
Signature · 1 line
2.46.0
Chunfeng Yun
maintainerPATCH v2 2/4 dt-bindings: usb: mtu3: add support mt8196
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them, and add compatilbe for mt8196.
---
v2: new patch for dual-role controllers
--- Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/usb/mediatek,mtu3.yaml +4 -1
@@ -28,6 +28,7 @@ properties: - mediatek,mt8188-mtu3 - mediatek,mt8192-mtu3 - mediatek,mt8195-mtu3 + - mediatek,mt8196-mtu3 - mediatek,mt8365-mtu3 - const: mediatek,mtu3
@@ -188,7 +189,9 @@ properties: 103 - used by mt8195, IP0, specific 1.03; 105 - used by mt8195, IP2, specific 1.05; 106 - used by mt8195, IP3, specific 1.06; - enum: [1, 2, 101, 102, 103, 105, 106] + 107 - used by mt8196, IP0, specific 1.07; + 108 - used by mt8196, IP1, specific 1.08; + enum: [1, 2, 101, 102, 103, 105, 106, 107, 108] mediatek,u3p-dis-msk: $ref: /schemas/types.yaml#/definitions/uint32
Signature · 1 line
2.46.0
Chunfeng Yun
maintainerPATCH v2 4/4 usb: mtu3: add support remote wakeup of mt8196
In reply to Chunfeng YunThere are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them. Here add only for dual-role controllers.
---
v2: add wakeup for dual-role controllers
--- drivers/usb/mtu3/mtu3_host.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)
drivers/usb/mtu3/mtu3_host.c +17 -0
@@ -46,6 +46,11 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)
@@ -59,6 +64,8 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_3 ,/* mt8195 IP0 */ SSUSB_UWK_V1_5 =105 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ + SSUSB_UWK_V1_8, /* mt8196 IP1 */ };/*
@@ -100,6 +107,16 @@ static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable) msk =WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x7 ) |WC0_IS_P_95 ; val = enable ? (WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x1 )) :0 ;break ; +case SSUSB_UWK_V1_7 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2 : reg = ssusb->uwk_reg_base +PERI_SSUSB_SPM_CTRL ; msk =SSC_IP_SLEEP_EN |SSC_SPM_INT_EN ;
Signature · 1 line
2.46.0
Chunfeng Yun
maintainerPATCH v2 3/4 usb: mtk-xhci: add support remote wakeup of mt8196
In reply to Chunfeng YunThere are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them.
---
v2: modify marcos name
--- drivers/usb/host/xhci-mtk.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
drivers/usb/host/xhci-mtk.c +26 -0
@@ -113,6 +113,14 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) + +#define PERI_WK_CTRL1_8196 0x10 +#define WC1_IS_EN_P2_96 BIT(0) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)
@@ -129,6 +137,9 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_4 ,/* mt8195 IP1 */ SSUSB_UWK_V1_5 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ +SSUSB_UWK_V1_8 ,/* mt8196 IP1 */ + SSUSB_UWK_V1_9, /* mt8196 IP2 */ };/*
@@ -381,6 +392,21 @@ static void usb_wakeup_ip_sleep_set(struct xhci_hcd_mtk *mtk, bool enable) msk =WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x7 ) |WC0_IS_P_95 ; val = enable ? (WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x1 )) :0 ;break ; +case SSUSB_UWK_V1_7 : + reg = mtk->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = mtk->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_9 : + reg = mtk->uwk_reg_base +PERI_WK_CTRL1_8196 ; + msk =WC1_IS_EN_P2_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2 : reg = mtk->uwk_reg_base +PERI_SSUSB_SPM_CTRL ; msk =SSC_IP_SLEEP_EN |SSC_SPM_INT_EN ;
Signature · 1 line
2.46.0
Re: [PATCH v2 2/4] dt-bindings: usb: mtu3: add support mt8196
In reply to Chunfeng YunQuoted 5 lines · Chunfeng Yun
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them, and add compatilbe for mt8196.
Signed-off-by Chunfeng Yun <[email protected]>
Quoted 5 lines · Chunfeng Yun
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them, and add a new compatilbe for mt8196.
Signed-off-by Chunfeng Yun <[email protected]>
AngeloGioacchino Del Regno
maintainerRe: [PATCH v2 4/4] usb: mtu3: add support remote wakeup of mt8196
In reply to Chunfeng YunIl 21/01/25 15:50, Chunfeng Yun ha scritto:
Quoted 5 lines
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them. Here add only for dual-role controllers.
Signed-off-by Chunfeng Yun <[email protected]>
From the datasheets, I can read the following:
IP0: host -> 0x1670_0000 device(mtu3) -> 0x1670_1000
IP1: host -> 0x1671_0000 device(mtu3) -> 0x1671_1000
IP2: host -> 0x1672_0000 device(mtu3) -> 0x1672_1000
...this means that you're missing the IP2 here, which you did not miss in the commit adding the wakeup control in mtk-xhci instead.
So, since I see that all of the USB IPs are behind MTU3, and that there is no USB IP that does *not* support gadget mode (so, there's no USB IP that does NOT support MTU3), you shall add all three here, and you shall drop the commit that adds the wakeup control in mtk-xhci entirely.
This is because there will be no DT node declaring only XHCI.
Since after the proposed change all controllers will be MTU3 -> XHCI, there's no need to add the same in the mtk-xhci driver.
Cheers,
Angelo
Quoted 48 lines
---
v2: add wakeup for dual-role controllers--- drivers/usb/mtu3/mtu3_host.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)drivers/usb/mtu3/mtu3_host.c +17
-0@@ -46,6 +46,11 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)@@ -59,6 +64,8 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_3 ,/* mt8195 IP0 */ SSUSB_UWK_V1_5 =105 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ + SSUSB_UWK_V1_8, /* mt8196 IP1 */ };/* @@ -100,6 +107,16 @@ static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable) msk =WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x7 ) |WC0_IS_P_95 ; val = enable ? (WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x1 )) :0 ;break ; +case SSUSB_UWK_V1_7 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2 : reg = ssusb->uwk_reg_base +PERI_SSUSB_SPM_CTRL ; msk =SSC_IP_SLEEP_EN |SSC_SPM_INT_EN ;
Chunfeng Yun (云春峰)
maintainerRe: [PATCH v2 4/4] usb: mtu3: add support remote wakeup of mt8196
Quoted 9 lines · AngeloGioacchino Del Regno
External email : Please do not click links or open attachments until you have verified the sender or the content.
Il 21/01/25 15:50, Chunfeng Yun ha scritto:
Quoted 4 lines
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them. Here add only for dual-role controllers.
Quoted 8 lines
Quoted 1 line
Signed-off-by Chunfeng Yun <[email protected]>From the datasheets, I can read the following:
IP0: host -> 0x1670_0000 device(mtu3) -> 0x1670_1000
IP1: host -> 0x1671_0000 device(mtu3) -> 0x1671_1000
IP2: host -> 0x1672_0000 device(mtu3) -> 0x1672_1000
I'll check it.
Quoted 11 lines
...this means that you're missing the IP2 here, which you did not miss in the
commit adding the wakeup control in mtk-xhci instead.So, since I see that all of the USB IPs are behind MTU3, and that there is no
USB IP that does *not* support gadget mode (so, there's no USB IP that does NOT
support MTU3), you shall add all three here, and you shall drop the commit that
adds the wakeup control in mtk-xhci entirely.
No, I'll still add them in mtk-xhci driver as before for the cases that only use xhci only, no need use mtu3 driver.
As I said before, event the controller supports dual-role mode, which don't mean that it can use this upstream mtu3 driver, some SoC have limitation and can't support the dual-role mode switch used in upstream driver. but all SoC can use upstream xhci-mtk driver. that why I add some SoC's wakeup control in xhci-mtk, but not in mtu3 driver.
Quoted 6 lines
This is because there will be no DT node declaring only XHCI.
Since after the proposed change all controllers will be MTU3 -> XHCI, there's
no need to add the same in the mtk-xhci driver.
I think it's better to leave the selection to the customer, for example, on chromebook, we only use xhci driver and do not enable mtu3.
Thanks
Quoted 59 lines
Cheers,
AngeloQuoted 52 lines
---
v2: add wakeup for dual-role controllers--- drivers/usb/mtu3/mtu3_host.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)drivers/usb/mtu3/mtu3_host.c +17
-0@@ -46,6 +46,11 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)@@ -59,6 +64,8 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_3 ,/* mt8195 IP0 */ SSUSB_UWK_V1_5 =105 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ + SSUSB_UWK_V1_8, /* mt8196 IP1 */ };/* @@ -100,6 +107,16 @@ static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable) msk =WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x7 ) |WC0_IS_P_95 ; val = enable ? (WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x1 )) :0 ;break ; +case SSUSB_UWK_V1_7 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2: reg = ssusb->uwk_reg_base + PERI_SSUSB_SPM_CTRL; msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN;
AngeloGioacchino Del Regno
maintainerRe: [PATCH v2 4/4] usb: mtu3: add support remote wakeup of mt8196
Il 09/02/25 04:31, Chunfeng Yun (云春峰) ha scritto:
Quoted 41 lines · AngeloGioacchino Del Regno
Quoted 9 lines
External email : Please do not click links or open attachments until you have verified the sender or the content.
Il 21/01/25 15:50, Chunfeng Yun ha scritto:
Quoted 4 lines
There are three USB controllers on mt8196, each controller's wakeup control is different, add some specific versions for them. Here add only for dual-role controllers.
Quoted 8 lines
Quoted 1 line
Signed-off-by Chunfeng Yun <[email protected]>From the datasheets, I can read the following:
IP0: host -> 0x1670_0000 device(mtu3) -> 0x1670_1000
IP1: host -> 0x1671_0000 device(mtu3) -> 0x1671_1000
IP2: host -> 0x1672_0000 device(mtu3) -> 0x1672_1000I'll check it.
Quoted 11 lines
...this means that you're missing the IP2 here, which you did not miss in the
commit adding the wakeup control in mtk-xhci instead.So, since I see that all of the USB IPs are behind MTU3, and that there is no
USB IP that does *not* support gadget mode (so, there's no USB IP that does NOT
support MTU3), you shall add all three here, and you shall drop the commit that
adds the wakeup control in mtk-xhci entirely.No, I'll still add them in mtk-xhci driver as before for the cases that only use xhci only, no need use mtu3 driver.
As I said before, event the controller supports dual-role mode, which don't mean that it can use this upstream mtu3 driver, some SoC have limitation and can't support the dual-role mode switch used in upstream driver. but all SoC can use upstream xhci-mtk driver. that why I add some SoC's wakeup control in xhci-mtk, but not in mtu3 driver.
Quoted 1 line
Quoted 8 lines
Quoted 5 lines
This is because there will be no DT node declaring only XHCI.
Since after the proposed change all controllers will be MTU3 -> XHCI, there's
no need to add the same in the mtk-xhci driver.I think it's better to leave the selection to the customer, for example, on chromebook, we only use xhci driver and do not enable mtu3.
Chromebooks can use MTU3 and lock it in HOST mode only.
The MTU3 hardware is there - don't hide it.
Regards,
Angelo
Quoted 61 lines
Thanks
Quoted 59 lines
Cheers,
AngeloQuoted 52 lines
---
v2: add wakeup for dual-role controllers--- drivers/usb/mtu3/mtu3_host.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)drivers/usb/mtu3/mtu3_host.c +17
-0@@ -46,6 +46,11 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)@@ -59,6 +64,8 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_3 ,/* mt8195 IP0 */ SSUSB_UWK_V1_5 =105 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ + SSUSB_UWK_V1_8, /* mt8196 IP1 */ };/* @@ -100,6 +107,16 @@ static void ssusb_wakeup_ip_sleep_set(struct ssusb_mtk *ssusb, bool enable) msk =WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x7 ) |WC0_IS_P_95 ; val = enable ? (WC0_IS_EN_P3_95 |WC0_IS_C_95 (0x1 )) :0 ;break ; +case SSUSB_UWK_V1_7 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2: reg = ssusb->uwk_reg_base + PERI_SSUSB_SPM_CTRL; msk = SSC_IP_SLEEP_EN | SSC_SPM_INT_EN;
Chunfeng Yun (云春峰)
maintainerRe: [PATCH v2 4/4] usb: mtu3: add support remote wakeup of mt8196
Quoted 63 lines · AngeloGioacchino Del Regno
External email : Please do not click links or open attachments until you have verified the sender or the content.
Il 09/02/25 04:31, Chunfeng Yun (云春峰) ha scritto:
Quoted 58 lines
Quoted 11 lines · AngeloGioacchino Del Regno
External email : Please do not click links or open attachments until
you have verified the sender or the content.Il 21/01/25 15:50, Chunfeng Yun ha scritto:
Quoted 5 lines
There are three USB controllers on mt8196, each controller's wakeup
control is different, add some specific versions for them. Here add only for dual-role controllers.Quoted 8 lines
Quoted 1 line
Signed-off-by Chunfeng Yun <[email protected]>From the datasheets, I can read the following:
IP0: host -> 0x1670_0000 device(mtu3) -> 0x1670_1000
IP1: host -> 0x1671_0000 device(mtu3) -> 0x1671_1000
IP2: host -> 0x1672_0000 device(mtu3) -> 0x1672_1000I'll check it.
Quoted 4 lines
...this means that you're missing the IP2 here, which you did not miss in the
commit adding the wakeup control in mtk-xhci instead.Quoted 8 lines
So, since I see that all of the USB IPs are behind MTU3, and that there is no
USB IP that does *not* support gadget mode (so, there's no USB IP that does NOT
support MTU3), you shall add all three here, and you shall drop the
commit that
adds the wakeup control in mtk-xhci entirely.No, I'll still add them in mtk-xhci driver as before for the cases that
only use xhci only, no need use mtu3 driver.As I said before, event the controller supports dual-role mode, which
don't mean that it can use this upstream mtu3 driver, some SoC have limitation and can't support the dual-role mode switch used in upstream
driver. but all SoC can use upstream xhci-mtk driver. that why I add
some SoC's wakeup control in xhci-mtk, but not in mtu3 driver.Quoted 7 lines
This is because there will be no DT node declaring only XHCI.
Since after the proposed change all controllers will be MTU3 -> XHCI,
there's
no need to add the same in the mtk-xhci driver.
Quoted 8 lines
Quoted 4 lines
I think it's better to leave the selection to the customer, for example, on chromebook, we only use xhci driver and do not enable mtu3.
Chromebooks can use MTU3 and lock it in HOST mode only.
The MTU3 hardware is there - don't hide it.
I don't want to hide it, the dts binding support two ways to use xhci- mtk driver. And we can't force customers to use the module he don't need it, right? that will be easier to encounter more problems.
On more MediaTek SoCs, we support dual-role controller and host only controller at the same, then we will add the wakeup function on both mtu3 and xhci-mtk drivers. So for the SoCs that only supports dual-role controller, we also want to add them as the same way. This can be treated as a common practice.
Thanks
Quoted 69 lines
Regards,
AngeloQuoted 63 lines
Thanks
Quoted 61 lines
Cheers,
AngeloQuoted 54 lines
---
v2: add wakeup for dual-role controllers--- drivers/usb/mtu3/mtu3_host.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+)drivers/usb/mtu3/mtu3_host.c +7
-0@@ -46,6 +46,11 @@#define WC1_IS_P_95 BIT(12)#define WC1_IS_EN_P0_95 BIT(6) +/* mt8196 */ +#define PERI_WK_CTRL0_8196 0x08 +#define WC0_IS_EN_P0_96 BIT(0) +#define WC0_IS_EN_P1_96 BIT(7) +/* mt2712 etc */ #define PERI_SSUSB_SPM_CTRL 0x0#define SSC_IP_SLEEP_EN BIT(4)@@ -59,6 +64,8 @@ enum ssusb_uwk_vers {SSUSB_UWK_V1_3 ,/* mt8195 IP0 */ SSUSB_UWK_V1_5 =105 ,/* mt8195 IP2 */ SSUSB_UWK_V1_6 ,/* mt8195 IP3 */ +SSUSB_UWK_V1_7 ,/* mt8196 IP0 */ + SSUSB_UWK_V1_8, /* mt8196 IP1 */ };/* @@ -100,6 +107,16 @@ static voidssusb_wakeup_ip_sleep_set(struct
ssusb_mtk*ssusb, bool enable)msk = WC0_IS_EN_P3_95 | WC0_IS_C_95(0x7) | WC0_IS_P_95; val = enable ? (WC0_IS_EN_P3_95 | WC0_IS_C_95(0x1)) : 0; break;drivers/usb/mtu3/mtu3_host.c +10
-0+case SSUSB_UWK_V1_7 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P0_96 ; + val = enable ? msk :0 ; +break ; +case SSUSB_UWK_V1_8 : + reg = ssusb->uwk_reg_base +PERI_WK_CTRL0_8196 ; + msk =WC0_IS_EN_P1_96 ; + val = enable ? msk :0 ; +break ;case SSUSB_UWK_V2 : reg = ssusb->uwk_reg_base +PERI_SSUSB_SPM_CTRL ; msk =SSC_IP_SLEEP_EN |SSC_SPM_INT_EN ;