@@ -88,13 +88,26 @@ static const u32 pm8550b_init_tbl[NUM_TUNE_FIELDS] = {
88
88
[TUNE_USB2_PREEM ] = 0x5 ,
89
89
};
90
90
91
+ static const u32 smb2360_init_tbl [NUM_TUNE_FIELDS ] = {
92
+ [TUNE_IUSB2 ] = 0x5 ,
93
+ [TUNE_SQUELCH_U ] = 0x3 ,
94
+ [TUNE_USB2_PREEM ] = 0x2 ,
95
+ };
96
+
91
97
static const struct eusb2_repeater_cfg pm8550b_eusb2_cfg = {
92
98
.init_tbl = pm8550b_init_tbl ,
93
99
.init_tbl_num = ARRAY_SIZE (pm8550b_init_tbl ),
94
100
.vreg_list = pm8550b_vreg_l ,
95
101
.num_vregs = ARRAY_SIZE (pm8550b_vreg_l ),
96
102
};
97
103
104
+ static const struct eusb2_repeater_cfg smb2360_eusb2_cfg = {
105
+ .init_tbl = smb2360_init_tbl ,
106
+ .init_tbl_num = ARRAY_SIZE (smb2360_init_tbl ),
107
+ .vreg_list = pm8550b_vreg_l ,
108
+ .num_vregs = ARRAY_SIZE (pm8550b_vreg_l ),
109
+ };
110
+
98
111
static int eusb2_repeater_init_vregs (struct eusb2_repeater * rptr )
99
112
{
100
113
int num = rptr -> cfg -> num_vregs ;
@@ -271,6 +284,10 @@ static const struct of_device_id eusb2_repeater_of_match_table[] = {
271
284
.compatible = "qcom,pm8550b-eusb2-repeater" ,
272
285
.data = & pm8550b_eusb2_cfg ,
273
286
},
287
+ {
288
+ .compatible = "qcom,smb2360-eusb2-repeater" ,
289
+ .data = & smb2360_eusb2_cfg ,
290
+ },
274
291
{ },
275
292
};
276
293
MODULE_DEVICE_TABLE (of , eusb2_repeater_of_match_table );
0 commit comments