Lines Matching +full:omap +full:- +full:l138

1 // SPDX-License-Identifier: GPL-2.0-only
3 * Pinconf driver for TI DA850/OMAP-L138/AM18XX pullup/pulldown groups
15 #include <linux/pinctrl/pinconf-generic.h>
73 val = readl(data->base + DA850_PUPD_ENA); in da850_pupd_pin_config_group_get()
86 val = readl(data->base + DA850_PUPD_SEL); in da850_pupd_pin_config_group_get()
92 return -EINVAL; in da850_pupd_pin_config_group_get()
110 ena = readl(data->base + DA850_PUPD_ENA); in da850_pupd_pin_config_group_set()
111 sel = readl(data->base + DA850_PUPD_SEL); in da850_pupd_pin_config_group_set()
129 return -EINVAL; in da850_pupd_pin_config_group_set()
133 writel(sel, data->base + DA850_PUPD_SEL); in da850_pupd_pin_config_group_set()
134 writel(ena, data->base + DA850_PUPD_ENA); in da850_pupd_pin_config_group_set()
147 struct device *dev = &pdev->dev; in da850_pupd_probe()
152 return -ENOMEM; in da850_pupd_probe()
154 data->base = devm_platform_ioremap_resource(pdev, 0); in da850_pupd_probe()
155 if (IS_ERR(data->base)) { in da850_pupd_probe()
157 return PTR_ERR(data->base); in da850_pupd_probe()
160 data->desc.name = dev_name(dev); in da850_pupd_probe()
161 data->desc.pctlops = &da850_pupd_pctlops; in da850_pupd_probe()
162 data->desc.confops = &da850_pupd_confops; in da850_pupd_probe()
163 data->desc.owner = THIS_MODULE; in da850_pupd_probe()
165 data->pinctrl = devm_pinctrl_register(dev, &data->desc, data); in da850_pupd_probe()
166 if (IS_ERR(data->pinctrl)) { in da850_pupd_probe()
168 return PTR_ERR(data->pinctrl); in da850_pupd_probe()
182 { .compatible = "ti,da850-pupd" },
189 .name = "ti-da850-pupd",
198 MODULE_DESCRIPTION("TI DA850/OMAP-L138/AM18XX pullup/pulldown configuration");