| /linux-6.15/drivers/reset/ |
| H A D | reset-npcm.c | 94 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() 349 if (IS_ERR(rc->gcr_regmap)) { in npcm_usb_reset() 353 if (IS_ERR(rc->gcr_regmap)) { in npcm_usb_reset() [all …]
|
| /linux-6.15/drivers/pinctrl/nuvoton/ |
| H A D | pinctrl-wpcm450.c | 59 struct regmap *gcr_regmap; member 801 static void wpcm450_update_mfsel(struct regmap *gcr_regmap, int reg, int bit, int fn, int fn_select… in wpcm450_update_mfsel() argument 810 regmap_update_bits(gcr_regmap, reg, BIT(bit), value ? BIT(bit) : 0); in wpcm450_update_mfsel() 814 static void wpcm450_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in wpcm450_setfunc() argument 824 wpcm450_update_mfsel(gcr_regmap, cfg->reg0, in wpcm450_setfunc() 827 wpcm450_update_mfsel(gcr_regmap, cfg->reg1, in wpcm450_setfunc() 897 wpcm450_setfunc(pctrl->gcr_regmap, wpcm450_groups[group].pins, in wpcm450_pinmux_set_mux() 1119 pctrl->gcr_regmap = in wpcm450_pinctrl_probe() 1121 if (IS_ERR(pctrl->gcr_regmap)) in wpcm450_pinctrl_probe() 1122 return dev_err_probe(dev, PTR_ERR(pctrl->gcr_regmap), in wpcm450_pinctrl_probe()
|
| H A D | pinctrl-npcm7xx.c | 96 struct regmap *gcr_regmap; member 1403 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm7xx_setfunc() 1408 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm7xx_setfunc() 1413 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm7xx_setfunc() 1423 struct regmap *gcr_regmap, unsigned int pin) in npcm7xx_get_slew_rate() argument 1434 regmap_read(gcr_regmap, NPCM7XX_GCR_SRCNT, &val); in npcm7xx_get_slew_rate() 1443 struct regmap *gcr_regmap, unsigned int pin, in npcm7xx_set_slew_rate() argument 1466 regmap_update_bits(gcr_regmap, NPCM7XX_GCR_SRCNT, in npcm7xx_set_slew_rate() 1955 pctrl->gcr_regmap = in npcm7xx_pinctrl_probe() 1957 if (IS_ERR(pctrl->gcr_regmap)) { in npcm7xx_pinctrl_probe() [all …]
|
| H A D | pinctrl-npcm8xx.c | 112 struct regmap *gcr_regmap; member 1814 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm8xx_setfunc() 1819 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm8xx_setfunc() 1824 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm8xx_setfunc() 1829 regmap_update_bits(gcr_regmap, cfg->reg3, in npcm8xx_setfunc() 1834 regmap_update_bits(gcr_regmap, cfg->reg4, in npcm8xx_setfunc() 1843 struct regmap *gcr_regmap, unsigned int pin) in npcm8xx_get_slew_rate() argument 1853 regmap_read(gcr_regmap, NPCM8XX_GCR_SRCNT, &val); in npcm8xx_get_slew_rate() 1861 struct regmap *gcr_regmap, unsigned int pin, in npcm8xx_set_slew_rate() argument 2426 pctrl->gcr_regmap = in npcm8xx_pinctrl_probe() [all …]
|
| /linux-6.15/drivers/spi/ |
| H A D | spi-npcm-fiu.c | 605 struct regmap *gcr_regmap; in npcm_fiu_dirmap_create() local 633 gcr_regmap = in npcm_fiu_dirmap_create() 635 if (IS_ERR(gcr_regmap)) { in npcm_fiu_dirmap_create() 640 regmap_update_bits(gcr_regmap, NPCM7XX_INTCR3_OFFSET, in npcm_fiu_dirmap_create()
|
| /linux-6.15/drivers/media/platform/nuvoton/ |
| H A D | npcm-video.c | 105 struct regmap *gcr_regmap; member 651 struct regmap *gcr = video->gcr_regmap; in npcm_video_gfx_reset() 752 struct regmap *gcr = video->gcr_regmap, *vcd = video->vcd_regmap; in npcm_video_init_reg() 1764 video->gcr_regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in npcm_video_probe() 1766 if (IS_ERR(video->gcr_regmap)) in npcm_video_probe() 1767 return PTR_ERR(video->gcr_regmap); in npcm_video_probe()
|
| /linux-6.15/drivers/i2c/busses/ |
| H A D | i2c-npcm7xx.c | 2495 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()
|