/openbmc/linux/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() 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 …]
|
/openbmc/linux/drivers/pinctrl/nuvoton/ |
H A D | pinctrl-wpcm450.c | 59 struct regmap *gcr_regmap; member 807 static void wpcm450_update_mfsel(struct regmap *gcr_regmap, int reg, int bit, int fn, int fn_select… in wpcm450_update_mfsel() argument 816 regmap_update_bits(gcr_regmap, reg, BIT(bit), value ? BIT(bit) : 0); in wpcm450_update_mfsel() 820 static void wpcm450_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in wpcm450_setfunc() argument 830 wpcm450_update_mfsel(gcr_regmap, cfg->reg0, in wpcm450_setfunc() 833 wpcm450_update_mfsel(gcr_regmap, cfg->reg1, in wpcm450_setfunc() 913 wpcm450_setfunc(pctrl->gcr_regmap, wpcm450_groups[group].pins, in wpcm450_pinmux_set_mux() 1138 pctrl->gcr_regmap = in wpcm450_pinctrl_probe() 1140 if (IS_ERR(pctrl->gcr_regmap)) in wpcm450_pinctrl_probe() 1141 return dev_err_probe(dev, PTR_ERR(pctrl->gcr_regmap), in wpcm450_pinctrl_probe()
|
H A D | pinctrl-npcm7xx.c | 98 struct regmap *gcr_regmap; member 1418 static void npcm7xx_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in npcm7xx_setfunc() argument 1428 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm7xx_setfunc() 1433 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm7xx_setfunc() 1438 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm7xx_setfunc() 1448 struct regmap *gcr_regmap, unsigned int pin) in npcm7xx_get_slew_rate() argument 1459 regmap_read(gcr_regmap, NPCM7XX_GCR_SRCNT, &val); in npcm7xx_get_slew_rate() 1468 struct regmap *gcr_regmap, unsigned int pin, in npcm7xx_set_slew_rate() argument 1491 regmap_update_bits(gcr_regmap, NPCM7XX_GCR_SRCNT, in npcm7xx_set_slew_rate() 1495 regmap_update_bits(gcr_regmap, NPCM7XX_GCR_SRCNT, in npcm7xx_set_slew_rate() [all …]
|
H A D | pinctrl-npcm8xx.c | 112 struct regmap *gcr_regmap; member 1823 static void npcm8xx_setfunc(struct regmap *gcr_regmap, const unsigned int *pin, in npcm8xx_setfunc() argument 1834 regmap_update_bits(gcr_regmap, cfg->reg0, in npcm8xx_setfunc() 1839 regmap_update_bits(gcr_regmap, cfg->reg1, in npcm8xx_setfunc() 1844 regmap_update_bits(gcr_regmap, cfg->reg2, in npcm8xx_setfunc() 1849 regmap_update_bits(gcr_regmap, cfg->reg3, in npcm8xx_setfunc() 1854 regmap_update_bits(gcr_regmap, cfg->reg4, in npcm8xx_setfunc() 1863 struct regmap *gcr_regmap, unsigned int pin) in npcm8xx_get_slew_rate() argument 1873 regmap_read(gcr_regmap, NPCM8XX_GCR_SRCNT, &val); in npcm8xx_get_slew_rate() 1881 struct regmap *gcr_regmap, unsigned int pin, in npcm8xx_set_slew_rate() argument [all …]
|
/openbmc/linux/drivers/spi/ |
H A D | spi-npcm-fiu.c | 610 struct regmap *gcr_regmap; in npcm_fiu_dirmap_create() local 638 gcr_regmap = in npcm_fiu_dirmap_create() 640 if (IS_ERR(gcr_regmap)) { in npcm_fiu_dirmap_create() 645 regmap_update_bits(gcr_regmap, NPCM7XX_INTCR3_OFFSET, in npcm_fiu_dirmap_create()
|
/openbmc/linux/drivers/media/platform/nuvoton/ |
H A D | npcm-video.c | 106 struct regmap *gcr_regmap; member 652 struct regmap *gcr = video->gcr_regmap; in npcm_video_gfx_reset() 753 struct regmap *gcr = video->gcr_regmap, *vcd = video->vcd_regmap; in npcm_video_init_reg() 1770 video->gcr_regmap = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in npcm_video_probe() 1772 if (IS_ERR(video->gcr_regmap)) in npcm_video_probe() 1773 return PTR_ERR(video->gcr_regmap); in npcm_video_probe()
|
/openbmc/linux/drivers/i2c/busses/ |
H A D | i2c-npcm7xx.c | 2508 static struct regmap *gcr_regmap; in npcm_i2c_probe_bus() local 2535 gcr_regmap = syscon_regmap_lookup_by_phandle(np, "nuvoton,sys-mgr"); in npcm_i2c_probe_bus() 2536 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus() 2537 gcr_regmap = syscon_regmap_lookup_by_compatible("nuvoton,npcm750-gcr"); in npcm_i2c_probe_bus() 2539 if (IS_ERR(gcr_regmap)) in npcm_i2c_probe_bus() 2540 return PTR_ERR(gcr_regmap); in npcm_i2c_probe_bus() 2541 regmap_write(gcr_regmap, NPCM_I2CSEGCTL, bus->data->segctl_init_val); in npcm_i2c_probe_bus()
|