File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -257,6 +257,11 @@ struct rzg2l_pinctrl_data {
257
257
const struct rzg2l_hwcfg * hwcfg ;
258
258
const u64 * variable_pin_cfg ;
259
259
unsigned int n_variable_pin_cfg ;
260
+ unsigned int num_custom_params ;
261
+ const struct pinconf_generic_params * custom_params ;
262
+ #ifdef CONFIG_DEBUG_FS
263
+ const struct pin_config_item * custom_conf_items ;
264
+ #endif
260
265
void (* pwpr_pfc_lock_unlock )(struct rzg2l_pinctrl * pctrl , bool lock );
261
266
void (* pmc_writeb )(struct rzg2l_pinctrl * pctrl , u8 val , u16 offset );
262
267
u32 (* oen_read )(struct rzg2l_pinctrl * pctrl , u32 caps , u32 offset , u8 pin );
@@ -2290,6 +2295,13 @@ static int rzg2l_pinctrl_register(struct rzg2l_pinctrl *pctrl)
2290
2295
pctrl -> desc .pmxops = & rzg2l_pinctrl_pmxops ;
2291
2296
pctrl -> desc .confops = & rzg2l_pinctrl_confops ;
2292
2297
pctrl -> desc .owner = THIS_MODULE ;
2298
+ if (pctrl -> data -> num_custom_params ) {
2299
+ pctrl -> desc .num_custom_params = pctrl -> data -> num_custom_params ;
2300
+ pctrl -> desc .custom_params = pctrl -> data -> custom_params ;
2301
+ #ifdef CONFIG_DEBUG_FS
2302
+ pctrl -> desc .custom_conf_items = pctrl -> data -> custom_conf_items ;
2303
+ #endif
2304
+ }
2293
2305
2294
2306
pins = devm_kcalloc (pctrl -> dev , pctrl -> desc .npins , sizeof (* pins ), GFP_KERNEL );
2295
2307
if (!pins )
You can’t perform that action at this time.
0 commit comments