Searched refs:spmx (Results 1 - 1 of 1) sorted by relevance
/linux-4.1.27/drivers/pinctrl/sirf/ |
H A D | pinctrl-sirf.c | 79 struct sirfsoc_pmx *spmx = pinctrl_dev_get_drvdata(pctldev); sirfsoc_dt_node_to_map() local 99 dev_err(spmx->dev, "No child nodes passed via DT\n"); 140 static void sirfsoc_pinmux_endisable(struct sirfsoc_pmx *spmx, sirfsoc_pinmux_endisable() argument 150 muxval = readl(spmx->gpio_virtbase + sirfsoc_pinmux_endisable() 156 writel(muxval, spmx->gpio_virtbase + sirfsoc_pinmux_endisable() 164 readl(spmx->rsc_virtbase + mux->ctrlreg); sirfsoc_pinmux_endisable() 167 writel(func_en_val, spmx->rsc_virtbase + mux->ctrlreg); sirfsoc_pinmux_endisable() 175 struct sirfsoc_pmx *spmx; sirfsoc_pinmux_set_mux() local 177 spmx = pinctrl_dev_get_drvdata(pmxdev); sirfsoc_pinmux_set_mux() 178 sirfsoc_pinmux_endisable(spmx, selector, true); sirfsoc_pinmux_set_mux() 207 struct sirfsoc_pmx *spmx; sirfsoc_pinmux_request_gpio() local 213 spmx = pinctrl_dev_get_drvdata(pmxdev); sirfsoc_pinmux_request_gpio() 215 muxval = readl(spmx->gpio_virtbase + sirfsoc_pinmux_request_gpio() 218 writel(muxval, spmx->gpio_virtbase + sirfsoc_pinmux_request_gpio() 276 struct sirfsoc_pmx *spmx; sirfsoc_pinmux_probe() local 281 spmx = devm_kzalloc(&pdev->dev, sizeof(*spmx), GFP_KERNEL); sirfsoc_pinmux_probe() 282 if (!spmx) sirfsoc_pinmux_probe() 285 spmx->dev = &pdev->dev; sirfsoc_pinmux_probe() 287 platform_set_drvdata(pdev, spmx); sirfsoc_pinmux_probe() 289 spmx->gpio_virtbase = of_iomap(np, 0); sirfsoc_pinmux_probe() 290 if (!spmx->gpio_virtbase) { sirfsoc_pinmux_probe() 295 spmx->rsc_virtbase = sirfsoc_rsc_of_iomap(); sirfsoc_pinmux_probe() 296 if (!spmx->rsc_virtbase) { sirfsoc_pinmux_probe() 312 spmx->pmx = pinctrl_register(&sirfsoc_pinmux_desc, &pdev->dev, spmx); sirfsoc_pinmux_probe() 313 if (!spmx->pmx) { sirfsoc_pinmux_probe() 324 iounmap(spmx->rsc_virtbase); sirfsoc_pinmux_probe() 326 iounmap(spmx->gpio_virtbase); sirfsoc_pinmux_probe() 334 struct sirfsoc_pmx *spmx = dev_get_drvdata(dev); sirfsoc_pinmux_suspend_noirq() local 338 spmx->gpio_regs[i][j] = readl(spmx->gpio_virtbase + sirfsoc_pinmux_suspend_noirq() 341 spmx->ints_regs[i] = readl(spmx->gpio_virtbase + sirfsoc_pinmux_suspend_noirq() 343 spmx->paden_regs[i] = readl(spmx->gpio_virtbase + sirfsoc_pinmux_suspend_noirq() 346 spmx->dspen_regs = readl(spmx->gpio_virtbase + SIRFSOC_GPIO_DSP_EN0); sirfsoc_pinmux_suspend_noirq() 349 spmx->rsc_regs[i] = readl(spmx->rsc_virtbase + 4 * i); sirfsoc_pinmux_suspend_noirq() 357 struct sirfsoc_pmx *spmx = dev_get_drvdata(dev); sirfsoc_pinmux_resume_noirq() local 361 writel(spmx->gpio_regs[i][j], spmx->gpio_virtbase + sirfsoc_pinmux_resume_noirq() 364 writel(spmx->ints_regs[i], spmx->gpio_virtbase + sirfsoc_pinmux_resume_noirq() 366 writel(spmx->paden_regs[i], spmx->gpio_virtbase + sirfsoc_pinmux_resume_noirq() 369 writel(spmx->dspen_regs, spmx->gpio_virtbase + SIRFSOC_GPIO_DSP_EN0); sirfsoc_pinmux_resume_noirq() 372 writel(spmx->rsc_regs[i], spmx->rsc_virtbase + 4 * i); sirfsoc_pinmux_resume_noirq()
|
Completed in 59 milliseconds