Lines Matching refs:bcm4908_pinctrl

27 struct bcm4908_pinctrl {  struct
421 struct bcm4908_pinctrl *bcm4908_pinctrl = pinctrl_dev_get_drvdata(pctrl_dev); in bcm4908_pinctrl_set_mux() local
431 mutex_lock(&bcm4908_pinctrl->mutex); in bcm4908_pinctrl_set_mux()
438 writel(0x0, bcm4908_pinctrl->base + BCM4908_TEST_PORT_BLOCK_DATA_MSB); in bcm4908_pinctrl_set_mux()
439 writel(lsb, bcm4908_pinctrl->base + BCM4908_TEST_PORT_BLOCK_DATA_LSB); in bcm4908_pinctrl_set_mux()
441 bcm4908_pinctrl->base + BCM4908_TEST_PORT_COMMAND); in bcm4908_pinctrl_set_mux()
443 mutex_unlock(&bcm4908_pinctrl->mutex); in bcm4908_pinctrl_set_mux()
473 struct bcm4908_pinctrl *bcm4908_pinctrl; in bcm4908_pinctrl_probe() local
479 bcm4908_pinctrl = devm_kzalloc(dev, sizeof(*bcm4908_pinctrl), GFP_KERNEL); in bcm4908_pinctrl_probe()
480 if (!bcm4908_pinctrl) in bcm4908_pinctrl_probe()
482 pctldesc = &bcm4908_pinctrl->pctldesc; in bcm4908_pinctrl_probe()
483 platform_set_drvdata(pdev, bcm4908_pinctrl); in bcm4908_pinctrl_probe()
487 bcm4908_pinctrl->dev = dev; in bcm4908_pinctrl_probe()
489 bcm4908_pinctrl->base = devm_platform_ioremap_resource(pdev, 0); in bcm4908_pinctrl_probe()
490 if (IS_ERR(bcm4908_pinctrl->base)) in bcm4908_pinctrl_probe()
491 return PTR_ERR(bcm4908_pinctrl->base); in bcm4908_pinctrl_probe()
493 mutex_init(&bcm4908_pinctrl->mutex); in bcm4908_pinctrl_probe()
515 bcm4908_pinctrl->pctldev = devm_pinctrl_register(dev, pctldesc, bcm4908_pinctrl); in bcm4908_pinctrl_probe()
516 if (IS_ERR(bcm4908_pinctrl->pctldev)) in bcm4908_pinctrl_probe()
517 return dev_err_probe(dev, PTR_ERR(bcm4908_pinctrl->pctldev), in bcm4908_pinctrl_probe()
533 pinctrl_generic_add_group(bcm4908_pinctrl->pctldev, group->name, in bcm4908_pinctrl_probe()
542 pinmux_generic_add_function(bcm4908_pinctrl->pctldev, in bcm4908_pinctrl_probe()