Lines Matching refs:falcon_info
404 static struct ltq_pinmux_info falcon_info = { variable
420 if ((id >= PORTS) || (!falcon_info.membase[id])) in pinctrl_falcon_get_range_size()
423 avail = pad_r32(falcon_info.membase[id], LTQ_PADC_AVAIL); in pinctrl_falcon_get_range_size()
430 pinctrl_add_gpio_range(falcon_info.pctrl, range); in pinctrl_falcon_add_gpio_range()
458 falcon_info.clk[*bank] = clk_get(&ppdev->dev, NULL); in pinctrl_falcon_probe()
459 if (IS_ERR(falcon_info.clk[*bank])) { in pinctrl_falcon_probe()
461 return PTR_ERR(falcon_info.clk[*bank]); in pinctrl_falcon_probe()
463 falcon_info.membase[*bank] = devm_ioremap_resource(&pdev->dev, in pinctrl_falcon_probe()
465 if (IS_ERR(falcon_info.membase[*bank])) in pinctrl_falcon_probe()
466 return PTR_ERR(falcon_info.membase[*bank]); in pinctrl_falcon_probe()
468 avail = pad_r32(falcon_info.membase[*bank], in pinctrl_falcon_probe()
473 clk_enable(falcon_info.clk[*bank]); in pinctrl_falcon_probe()
481 falcon_info.mfp = falcon_mfp; in pinctrl_falcon_probe()
482 falcon_info.num_mfp = ARRAY_SIZE(falcon_mfp); in pinctrl_falcon_probe()
483 falcon_info.grps = falcon_grps; in pinctrl_falcon_probe()
484 falcon_info.num_grps = ARRAY_SIZE(falcon_grps); in pinctrl_falcon_probe()
485 falcon_info.funcs = falcon_funcs; in pinctrl_falcon_probe()
486 falcon_info.num_funcs = ARRAY_SIZE(falcon_funcs); in pinctrl_falcon_probe()
488 ret = ltq_pinctrl_register(pdev, &falcon_info); in pinctrl_falcon_probe()