Home
last modified time | relevance | path

Searched refs:syscon (Results 1 – 25 of 34) sorted by relevance

12

/drivers/mfd/
Dsyscon.c33 struct syscon { struct
45 static struct syscon *of_syscon_register(struct device_node *np) in of_syscon_register() argument
47 struct syscon *syscon; in of_syscon_register() local
58 syscon = kzalloc(sizeof(*syscon), GFP_KERNEL); in of_syscon_register()
59 if (!syscon) in of_syscon_register()
101 syscon->regmap = regmap; in of_syscon_register()
102 syscon->np = np; in of_syscon_register()
105 list_add_tail(&syscon->list, &syscon_list); in of_syscon_register()
108 return syscon; in of_syscon_register()
113 kfree(syscon); in of_syscon_register()
[all …]
/drivers/net/ethernet/ti/
Dcpsw-common.c30 struct regmap *syscon; in davinci_emac_3517_get_macid() local
32 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid()
33 if (IS_ERR(syscon)) { in davinci_emac_3517_get_macid()
34 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid()
36 return PTR_ERR(syscon); in davinci_emac_3517_get_macid()
39 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
40 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
57 struct regmap *syscon; in cpsw_am33xx_cm_get_macid() local
59 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid()
60 if (IS_ERR(syscon)) { in cpsw_am33xx_cm_get_macid()
[all …]
/drivers/power/reset/
Daxxia-reset.c38 static struct regmap *syscon; variable
44 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab); in axxia_restart_handler()
46 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040); in axxia_restart_handler()
48 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE); in axxia_restart_handler()
50 regmap_update_bits(syscon, SC_RESET_CONTROL, in axxia_restart_handler()
66 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in axxia_reset_probe()
67 if (IS_ERR(syscon)) { in axxia_reset_probe()
69 return PTR_ERR(syscon); in axxia_reset_probe()
DMakefile21 obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o
22 obj-$(CONFIG_POWER_RESET_SYSCON_POWEROFF) += syscon-poweroff.o
26 obj-$(CONFIG_SYSCON_REBOOT_MODE) += syscon-reboot-mode.o
/drivers/clk/nxp/
Dclk-lpc18xx-creg.c142 struct regmap *syscon) in clk_register_creg_clk() argument
152 creg_clk->reg = syscon; in clk_register_creg_clk()
170 struct regmap *syscon; in lpc18xx_creg_clk_init() local
172 syscon = syscon_node_to_regmap(np->parent); in lpc18xx_creg_clk_init()
173 if (IS_ERR(syscon)) { in lpc18xx_creg_clk_init()
182 &clk_32khz_parent, syscon); in lpc18xx_creg_clk_init()
199 struct regmap *syscon; in lpc18xx_creg_clk_probe() local
201 syscon = syscon_node_to_regmap(np->parent); in lpc18xx_creg_clk_probe()
202 if (IS_ERR(syscon)) { in lpc18xx_creg_clk_probe()
204 return PTR_ERR(syscon); in lpc18xx_creg_clk_probe()
[all …]
/drivers/gpio/
Dgpio-syscon.c56 struct regmap *syscon; member
70 ret = regmap_read(priv->syscon, in syscon_gpio_get()
85 regmap_update_bits(priv->syscon, in syscon_gpio_set()
101 regmap_update_bits(priv->syscon, in syscon_gpio_dir_in()
119 regmap_update_bits(priv->syscon, in syscon_gpio_dir_out()
152 priv->syscon, in keystone_gpio_set()
201 priv->syscon = syscon_regmap_lookup_by_compatible( in syscon_gpio_probe()
203 if (IS_ERR(priv->syscon)) in syscon_gpio_probe()
204 return PTR_ERR(priv->syscon); in syscon_gpio_probe()
206 priv->syscon = in syscon_gpio_probe()
[all …]
/drivers/tty/serial/
Dclps711x.c66 struct regmap *syscon; member
109 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_int_rx()
180 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_int_tx()
196 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_tx_empty()
234 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON1_SIREN, in uart_clps711x_set_ldisc()
248 return regmap_update_bits(s->syscon, SYSCON_OFFSET, in uart_clps711x_startup()
257 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON_UARTEN, 0); in uart_clps711x_shutdown()
366 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_console_putchar()
383 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_console_write()
406 u32 syscon = 0; in uart_clps711x_console_setup() local
[all …]
/drivers/phy/
Dphy-dm816x-usb.c53 struct regmap *syscon; member
91 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init()
96 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init()
107 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init()
111 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init()
129 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_runtime_suspend()
157 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_runtime_resume()
208 phy->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in dm816x_usb_phy_probe()
210 if (IS_ERR(phy->syscon)) in dm816x_usb_phy_probe()
211 return PTR_ERR(phy->syscon); in dm816x_usb_phy_probe()
/drivers/input/keyboard/
Dclps711x-keypad.c31 struct regmap *syscon; member
46 regmap_update_bits(priv->syscon, SYSCON_OFFSET, in clps711x_keypad_poll()
82 regmap_update_bits(priv->syscon, SYSCON_OFFSET, in clps711x_keypad_poll()
103 priv->syscon = in clps711x_keypad_probe()
105 if (IS_ERR(priv->syscon)) in clps711x_keypad_probe()
106 return PTR_ERR(priv->syscon); in clps711x_keypad_probe()
159 regmap_update_bits(priv->syscon, SYSCON_OFFSET, SYSCON1_KBDSCAN_MASK, in clps711x_keypad_probe()
/drivers/video/fbdev/
Dclps711xfb.c113 unsigned int lcdcon, syscon, pixclock; in clps7111fb_set_par() local
153 syscon = clps_readl(SYSCON1); in clps7111fb_set_par()
154 clps_writel(syscon & ~SYSCON1_LCDEN, SYSCON1); in clps7111fb_set_par()
156 clps_writel(syscon | SYSCON1_LCDEN, SYSCON1); in clps7111fb_set_par()
184 unsigned int lcdcon, syscon, size; in clps711x_guess_lcd_params() local
200 syscon = clps_readl(SYSCON1); in clps711x_guess_lcd_params()
201 if (syscon & SYSCON1_LCDEN) { in clps711x_guess_lcd_params()
256 if ((syscon & SYSCON1_LCDEN) == 0) { in clps711x_guess_lcd_params()
Dclps711x-fb.c40 struct regmap *syscon; member
146 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_set_par()
148 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, in clps711x_fb_set_par()
275 cfb->syscon = in clps711x_fb_probe()
277 if (IS_ERR(cfb->syscon)) { in clps711x_fb_probe()
278 ret = PTR_ERR(cfb->syscon); in clps711x_fb_probe()
303 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, in clps711x_fb_probe()
306 ret = regmap_read(cfb->syscon, SYSCON_OFFSET, &val); in clps711x_fb_probe()
355 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_probe()
369 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_remove()
/drivers/regulator/
Dpbias-regulator.c43 struct regmap *syscon; member
148 struct regmap *syscon; in pbias_regulator_probe() local
166 syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); in pbias_regulator_probe()
167 if (IS_ERR(syscon)) in pbias_regulator_probe()
168 return PTR_ERR(syscon); in pbias_regulator_probe()
184 cfg.regmap = syscon; in pbias_regulator_probe()
196 drvdata[data_idx].syscon = syscon; in pbias_regulator_probe()
/drivers/spi/
Dspi-clps711x.c30 struct regmap *syscon; member
65 return regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCKNSEN, in spi_clps711x_prepare_message()
144 hw->syscon = in spi_clps711x_probe()
146 if (IS_ERR(hw->syscon)) { in spi_clps711x_probe()
147 ret = PTR_ERR(hw->syscon); in spi_clps711x_probe()
159 regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCON, 0); in spi_clps711x_probe()
/drivers/hwspinlock/
Dqcom_hwspinlock.c85 struct device_node *syscon; in qcom_hwspinlock_probe() local
94 syscon = of_parse_phandle(pdev->dev.of_node, "syscon", 0); in qcom_hwspinlock_probe()
95 if (!syscon) { in qcom_hwspinlock_probe()
100 regmap = syscon_node_to_regmap(syscon); in qcom_hwspinlock_probe()
101 of_node_put(syscon); in qcom_hwspinlock_probe()
/drivers/net/can/c_can/
Dc_can_platform.c87 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_wait_syscon()
104 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_syscon()
114 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
126 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
132 regmap_update_bits(raminit->syscon, raminit->reg, in c_can_hw_raminit_syscon()
336 raminit->syscon = syscon_regmap_lookup_by_phandle(np, in c_can_plat_probe()
338 if (IS_ERR(raminit->syscon)) { in c_can_plat_probe()
340 ret = PTR_ERR(raminit->syscon); in c_can_plat_probe()
Dc_can.h188 struct regmap *syscon; /* for raminit ctrl. reg. access */ member
/drivers/pinctrl/
Dpinctrl-zynq.c54 struct regmap *syscon; member
914 ret = regmap_read(pctrl->syscon, in zynq_pinmux_set_mux()
921 ret = regmap_write(pctrl->syscon, in zynq_pinmux_set_mux()
930 ret = regmap_read(pctrl->syscon, addr, &reg); in zynq_pinmux_set_mux()
936 ret = regmap_write(pctrl->syscon, addr, reg); in zynq_pinmux_set_mux()
1008 ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), &reg); in zynq_pinconf_cfg_get()
1066 ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), &reg); in zynq_pinconf_cfg_set()
1121 ret = regmap_write(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), reg); in zynq_pinconf_cfg_set()
1179 pctrl->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in zynq_pinctrl_probe()
1181 if (IS_ERR(pctrl->syscon)) { in zynq_pinctrl_probe()
[all …]
/drivers/media/platform/omap3isp/
Dispcsiphy.c33 regmap_read(phy->isp->syscon, phy->isp->syscon_offset, &reg); in csiphy_routing_cfg_3630()
68 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, reg); in csiphy_routing_cfg_3630()
82 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, 0); in csiphy_routing_cfg_3430()
89 regmap_write(phy->isp->syscon, phy->isp->syscon_offset, csirxfe); in csiphy_routing_cfg_3430()
/drivers/soc/qcom/
Dsmsm.c353 struct device_node *syscon; in smsm_parse_ipc() local
360 syscon = of_parse_phandle(node, key, 0); in smsm_parse_ipc()
361 if (!syscon) in smsm_parse_ipc()
364 host->ipc_regmap = syscon_node_to_regmap(syscon); in smsm_parse_ipc()
Dsmp2p.c406 struct device_node *syscon; in smp2p_parse_ipc() local
411 syscon = of_parse_phandle(dev->of_node, "qcom,ipc", 0); in smp2p_parse_ipc()
412 if (!syscon) { in smp2p_parse_ipc()
417 smp2p->ipc_regmap = syscon_node_to_regmap(syscon); in smp2p_parse_ipc()
/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_mac.c748 struct regmap *syscon; in hns_mac_get_info() local
811 syscon = syscon_node_to_regmap(np); in hns_mac_get_info()
813 if (IS_ERR_OR_NULL(syscon)) { in hns_mac_get_info()
817 mac_cb->serdes_ctrl = syscon; in hns_mac_get_info()
845 syscon = syscon_node_to_regmap(cpld_args.np); in hns_mac_get_info()
846 if (IS_ERR_OR_NULL(syscon)) { in hns_mac_get_info()
850 mac_cb->cpld_ctrl = syscon; in hns_mac_get_info()
/drivers/staging/media/omap4iss/
Diss_csiphy.c148 regmap_read(iss->syscon, 0x68, &cam_rx_ctrl); in omap4iss_csiphy_config()
172 regmap_write(iss->syscon, 0x68, cam_rx_ctrl); in omap4iss_csiphy_config()
Diss.h101 struct regmap *syscon; member
/drivers/reset/
DMakefile13 obj-$(CONFIG_TI_SYSCON_RESET) += reset-ti-syscon.o
/drivers/clk/ti/
Dclk.c215 struct regmap *syscon, void __iomem *mem) in omap2_clk_provider_init() argument
234 io->regmap = syscon; in omap2_clk_provider_init()

12