Home
last modified time | relevance | path

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

/linux/drivers/reset/
H A Dreset-npcm.c94 struct regmap *gcr_regmap; member
202 regmap_read(rc->gcr_regmap, NPCM_MDLR_OFFSET, &mdlr); in npcm_usb_reset_npcm7xx()
234 regmap_update_bits(rc->gcr_regmap, NPCM_USB1PHYCTL_OFFSET, in npcm_usb_reset_npcm7xx()
236 regmap_update_bits(rc->gcr_regmap, NPCM_USB2PHYCTL_OFFSET, in npcm_usb_reset_npcm7xx()
246 regmap_update_bits(rc->gcr_regmap, NPCM_USB1PHYCTL_OFFSET, in npcm_usb_reset_npcm7xx()
248 regmap_update_bits(rc->gcr_regmap, NPCM_USB2PHYCTL_OFFSET, in npcm_usb_reset_npcm7xx()
270 regmap_read(rc->gcr_regmap, NPCM_MDLR_OFFSET, &mdlr); in npcm_usb_reset_npcm8xx()
307 regmap_update_bits(rc->gcr_regmap, NPCM_USB1PHYCTL_OFFSET, in npcm_usb_reset_npcm8xx()
309 regmap_update_bits(rc->gcr_regmap, NPCM_USB2PHYCTL_OFFSET, in npcm_usb_reset_npcm8xx()
311 regmap_update_bits(rc->gcr_regmap, NPCM_USB3PHYCTL_OFFSET, in npcm_usb_reset_npcm8xx()
[all …]
/linux/drivers/pinctrl/nuvoton/
H A Dpinctrl-wpcm450.c59 struct regmap *gcr_regmap; member
806 static void wpcm450_update_mfsel(struct regmap *gcr_regmap, int reg, int bit, int fn, int fn_select… in wpcm450_update_mfsel() argument
815 regmap_update_bits(gcr_regmap, reg, BIT(bit), value ? BIT(bit) : 0); in wpcm450_update_mfsel()
819 static void wpcm450_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in wpcm450_setfunc() argument
829 wpcm450_update_mfsel(gcr_regmap, cfg->reg0, in wpcm450_setfunc()
832 wpcm450_update_mfsel(gcr_regmap, cfg->reg1, in wpcm450_setfunc()
902 wpcm450_setfunc(pctrl->gcr_regmap, wpcm450_groups[group].pins, in wpcm450_pinmux_set_mux()
1127 pctrl->gcr_regmap = in wpcm450_pinctrl_probe()
1129 if (IS_ERR(pctrl->gcr_regmap)) in wpcm450_pinctrl_probe()
1130 return dev_err_probe(dev, PTR_ERR(pctrl->gcr_regmap), in wpcm450_pinctrl_probe()
H A Dpinctrl-npcm7xx.c98 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 …]
H A Dpinctrl-npcm8xx.c112 struct regmap *gcr_regmap; member
1818 static void npcm8xx_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in npcm8xx_setfunc() argument
1829 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm8xx_setfunc()
1834 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm8xx_setfunc()
1839 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm8xx_setfunc()
1844 regmap_update_bits(gcr_regmap, cfg->reg3, in npcm8xx_setfunc()
1849 regmap_update_bits(gcr_regmap, cfg->reg4, in npcm8xx_setfunc()
1858 struct regmap *gcr_regmap, unsigned int pin) in npcm8xx_get_slew_rate() argument
1868 regmap_read(gcr_regmap, NPCM8XX_GCR_SRCNT, &val); in npcm8xx_get_slew_rate()
1876 struct regmap *gcr_regmap, unsigned int pin, in npcm8xx_set_slew_rate() argument
[all …]
/linux/drivers/i2c/busses/
H A Di2c-npcm7xx.c2495 static struct regmap *gcr_regmap; in npcm_i2c_probe_bus() local
2522 gcr_regmap = syscon_regmap_lookup_by_phandle(np, "nuvoton,sys-mgr"); in npcm_i2c_probe_bus()
2523 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus()
2524 gcr_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-gcr"); in npcm_i2c_probe_bus()
2526 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus()
2527 return PTR_ERR(gcr_regmap); in npcm_i2c_probe_bus()
2528 regmap_write(gcr_regmap, NPCM_I2CSEGCTL, bus->data->segctl_init_val); in npcm_i2c_probe_bus()