Home
last modified time | relevance | path

Searched refs:gcr_regmap (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/reset/
Dreset-npcm.c154 struct regmap *gcr_regmap; in npcm_usb_reset() local
163 gcr_regmap = syscon_regmap_lookup_by_compatible(gcr_dt); in npcm_usb_reset()
164 if (IS_ERR(gcr_regmap)) { in npcm_usb_reset()
166 return PTR_ERR(gcr_regmap); in npcm_usb_reset()
170 regmap_read(gcr_regmap, NPCM_MDLR_OFFSET, &mdlr); in npcm_usb_reset()
202 regmap_update_bits(gcr_regmap, NPCM_USB1PHYCTL_OFFSET, in npcm_usb_reset()
204 regmap_update_bits(gcr_regmap, NPCM_USB2PHYCTL_OFFSET, in npcm_usb_reset()
214 regmap_update_bits(gcr_regmap, NPCM_USB1PHYCTL_OFFSET, in npcm_usb_reset()
216 regmap_update_bits(gcr_regmap, NPCM_USB2PHYCTL_OFFSET, in npcm_usb_reset()
/linux-5.19.10/drivers/usb/host/
Dehci-npcm7xx.c63 struct regmap *gcr_regmap; in npcm7xx_ehci_hcd_drv_probe() local
71 gcr_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-gcr"); in npcm7xx_ehci_hcd_drv_probe()
72 if (IS_ERR(gcr_regmap)) { in npcm7xx_ehci_hcd_drv_probe()
75 return PTR_ERR(gcr_regmap); in npcm7xx_ehci_hcd_drv_probe()
91 regmap_update_bits(gcr_regmap, USB2PHYCTL_OFFSET, in npcm7xx_ehci_hcd_drv_probe()
102 regmap_update_bits(gcr_regmap, USB2PHYCTL_OFFSET, in npcm7xx_ehci_hcd_drv_probe()
/linux-5.19.10/drivers/pinctrl/nuvoton/
Dpinctrl-npcm7xx.c96 struct regmap *gcr_regmap; member
1412 static void npcm7xx_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in npcm7xx_setfunc() argument
1422 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm7xx_setfunc()
1427 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm7xx_setfunc()
1432 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm7xx_setfunc()
1442 struct regmap *gcr_regmap, unsigned int pin) in npcm7xx_get_slew_rate() argument
1453 regmap_read(gcr_regmap, NPCM7XX_GCR_SRCNT, &val); in npcm7xx_get_slew_rate()
1462 struct regmap *gcr_regmap, unsigned int pin, in npcm7xx_set_slew_rate() argument
1485 regmap_update_bits(gcr_regmap, NPCM7XX_GCR_SRCNT, in npcm7xx_set_slew_rate()
1489 regmap_update_bits(gcr_regmap, NPCM7XX_GCR_SRCNT, in npcm7xx_set_slew_rate()
[all …]
Dpinctrl-wpcm450.c60 struct regmap *gcr_regmap; member
797 static void wpcm450_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in wpcm450_setfunc() argument
807 regmap_update_bits(gcr_regmap, cfg->reg0, in wpcm450_setfunc()
811 regmap_update_bits(gcr_regmap, cfg->reg1, in wpcm450_setfunc()
892 wpcm450_setfunc(pctrl->gcr_regmap, wpcm450_groups[group].pins, in wpcm450_pinmux_set_mux()
1115 pctrl->gcr_regmap = in wpcm450_pinctrl_probe()
1117 if (IS_ERR(pctrl->gcr_regmap)) in wpcm450_pinctrl_probe()
1118 return dev_err_probe(dev, PTR_ERR(pctrl->gcr_regmap), in wpcm450_pinctrl_probe()
/linux-5.19.10/drivers/spi/
Dspi-npcm-fiu.c590 struct regmap *gcr_regmap; in npcm_fiu_dirmap_create() local
618 gcr_regmap = in npcm_fiu_dirmap_create()
620 if (IS_ERR(gcr_regmap)) { in npcm_fiu_dirmap_create()
625 regmap_update_bits(gcr_regmap, NPCM7XX_INTCR3_OFFSET, in npcm_fiu_dirmap_create()
/linux-5.19.10/drivers/i2c/busses/
Di2c-npcm7xx.c2264 static struct regmap *gcr_regmap; in npcm_i2c_probe_bus() local
2284 gcr_regmap = syscon_regmap_lookup_by_phandle(np, "nuvoton,sys-mgr"); in npcm_i2c_probe_bus()
2285 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus()
2286 gcr_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-gcr"); in npcm_i2c_probe_bus()
2288 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus()
2289 return PTR_ERR(gcr_regmap); in npcm_i2c_probe_bus()
2290 regmap_write(gcr_regmap, NPCM_I2CSEGCTL, NPCM_I2CSEGCTL_INIT_VAL); in npcm_i2c_probe_bus()