Home
last modified time | relevance | path

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

123

/drivers/mfd/
Dsyscon.c31 struct syscon { struct
43 static struct syscon *of_syscon_register(struct device_node *np, bool check_clk) in of_syscon_register() argument
46 struct syscon *syscon; in of_syscon_register() local
54 syscon = kzalloc(sizeof(*syscon), GFP_KERNEL); in of_syscon_register()
55 if (!syscon) in of_syscon_register()
136 syscon->regmap = regmap; in of_syscon_register()
137 syscon->np = np; in of_syscon_register()
140 list_add_tail(&syscon->list, &syscon_list); in of_syscon_register()
143 return syscon; in of_syscon_register()
153 kfree(syscon); in of_syscon_register()
[all …]
/drivers/net/ethernet/ti/
Dcpsw-common.c20 struct regmap *syscon; in davinci_emac_3517_get_macid() local
22 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in davinci_emac_3517_get_macid()
23 if (IS_ERR(syscon)) { in davinci_emac_3517_get_macid()
24 if (PTR_ERR(syscon) == -ENODEV) in davinci_emac_3517_get_macid()
26 return PTR_ERR(syscon); in davinci_emac_3517_get_macid()
29 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb); in davinci_emac_3517_get_macid()
30 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb); in davinci_emac_3517_get_macid()
47 struct regmap *syscon; in cpsw_am33xx_cm_get_macid() local
49 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in cpsw_am33xx_cm_get_macid()
50 if (IS_ERR(syscon)) { in cpsw_am33xx_cm_get_macid()
[all …]
/drivers/thermal/
Darmada_thermal.c70 struct regmap *syscon; member
144 regmap_read(priv->syscon, data->syscon_control1_off, &reg); in armadaxp_init()
154 regmap_write(priv->syscon, data->syscon_control1_off, reg); in armadaxp_init()
157 regmap_write(priv->syscon, data->syscon_control1_off, reg); in armadaxp_init()
160 regmap_read(priv->syscon, data->syscon_status_off, &reg); in armadaxp_init()
162 regmap_write(priv->syscon, data->syscon_status_off, reg); in armadaxp_init()
171 regmap_read(priv->syscon, data->syscon_control1_off, &reg); in armada370_init()
181 regmap_write(priv->syscon, data->syscon_control1_off, reg); in armada370_init()
192 regmap_read(priv->syscon, data->syscon_control1_off, &reg); in armada375_init()
196 regmap_write(priv->syscon, data->syscon_control1_off, reg); in armada375_init()
[all …]
/drivers/gpio/
Dgpio-syscon.c52 struct regmap *syscon; member
66 ret = regmap_read(priv->syscon, in syscon_gpio_get()
81 regmap_update_bits(priv->syscon, in syscon_gpio_set()
97 regmap_update_bits(priv->syscon, in syscon_gpio_dir_in()
115 regmap_update_bits(priv->syscon, in syscon_gpio_dir_out()
146 ret = regmap_write(priv->syscon, in rockchip_gpio_set()
175 priv->syscon, in keystone_gpio_set()
223 priv->syscon = syscon_regmap_lookup_by_compatible( in syscon_gpio_probe()
225 if (IS_ERR(priv->syscon)) in syscon_gpio_probe()
226 return PTR_ERR(priv->syscon); in syscon_gpio_probe()
[all …]
/drivers/power/reset/
Daxxia-reset.c29 static struct regmap *syscon; variable
35 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab); in axxia_restart_handler()
37 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040); in axxia_restart_handler()
39 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE); in axxia_restart_handler()
41 regmap_update_bits(syscon, SC_RESET_CONTROL, in axxia_restart_handler()
57 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon"); in axxia_reset_probe()
58 if (IS_ERR(syscon)) { in axxia_reset_probe()
60 return PTR_ERR(syscon); in axxia_reset_probe()
Docelot-reset.c19 const char *syscon; member
84 ctx->cpu_ctrl = syscon_regmap_lookup_by_compatible(ctx->props->syscon); in ocelot_reset_probe()
86 dev_err(dev, "No syscon map: %s\n", ctx->props->syscon); in ocelot_reset_probe()
100 .syscon = "mscc,ocelot-cpu-syscon",
107 .syscon = "microchip,sparx5-cpu-syscon",
DMakefile28 obj-$(CONFIG_POWER_RESET_SYSCON) += syscon-reboot.o
29 obj-$(CONFIG_POWER_RESET_SYSCON_POWEROFF) += syscon-poweroff.o
33 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/tty/serial/
Dclps711x.c58 struct regmap *syscon; member
101 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_int_rx()
172 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_int_tx()
188 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_tx_empty()
226 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON1_SIREN, in uart_clps711x_set_ldisc()
240 return regmap_update_bits(s->syscon, SYSCON_OFFSET, in uart_clps711x_startup()
249 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON_UARTEN, 0); in uart_clps711x_shutdown()
358 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_console_putchar()
375 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg); in uart_clps711x_console_write()
398 u32 syscon = 0; in uart_clps711x_console_setup() local
[all …]
/drivers/spi/
Dspi-dw-mmio.c52 struct regmap *syscon; member
98 dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon); in dw_spi_mscc_init()
99 if (IS_ERR(dwsmscc->syscon)) in dw_spi_mscc_init()
100 return PTR_ERR(dwsmscc->syscon); in dw_spi_mscc_init()
106 regmap_update_bits(dwsmscc->syscon, MSCC_CPU_SYSTEM_CTRL_GENERAL_CTRL, in dw_spi_mscc_init()
145 regmap_write(dwsmscc->syscon, SPARX5_FORCE_ENA, 1); in dw_spi_sparx5_set_cs()
147 regmap_write(dwsmscc->syscon, SPARX5_FORCE_VAL, ~BIT(cs)); in dw_spi_sparx5_set_cs()
152 regmap_write(dwsmscc->syscon, SPARX5_FORCE_VAL, ~0); in dw_spi_sparx5_set_cs()
156 regmap_write(dwsmscc->syscon, SPARX5_FORCE_ENA, 0); in dw_spi_sparx5_set_cs()
178 dwsmscc->syscon = in dw_spi_mscc_sparx5_init()
[all …]
Dspi-clps711x.c26 struct regmap *syscon; member
42 return regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCKNSEN, in spi_clps711x_prepare_message()
120 hw->syscon = in spi_clps711x_probe()
122 if (IS_ERR(hw->syscon)) { in spi_clps711x_probe()
123 ret = PTR_ERR(hw->syscon); in spi_clps711x_probe()
134 regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCON, 0); in spi_clps711x_probe()
/drivers/phy/ti/
Dphy-dm816x-usb.c53 struct regmap *syscon; member
90 regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_init()
95 regmap_read(phy->syscon, phy->usb_ctrl, &val); in dm816x_usb_phy_init()
106 regmap_read(phy->syscon, phy->usbphy_ctrl, &val); in dm816x_usb_phy_init()
110 regmap_write(phy->syscon, phy->usbphy_ctrl, val); in dm816x_usb_phy_init()
128 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_runtime_suspend()
156 error = regmap_update_bits(phy->syscon, phy->usb_ctrl, in dm816x_usb_phy_runtime_resume()
206 phy->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in dm816x_usb_phy_probe()
208 if (IS_ERR(phy->syscon)) in dm816x_usb_phy_probe()
209 return PTR_ERR(phy->syscon); in dm816x_usb_phy_probe()
/drivers/pci/controller/cadence/
Dpci-j721e.c162 static int j721e_pcie_set_mode(struct j721e_pcie *pcie, struct regmap *syscon) in j721e_pcie_set_mode() argument
173 ret = regmap_update_bits(syscon, 0, mask, val); in j721e_pcie_set_mode()
181 struct regmap *syscon) in j721e_pcie_set_link_speed() argument
194 ret = regmap_update_bits(syscon, 0, GENERATION_SEL_MASK, val); in j721e_pcie_set_link_speed()
202 struct regmap *syscon) in j721e_pcie_set_lane_count() argument
210 ret = regmap_update_bits(syscon, 0, LANE_COUNT_MASK, val); in j721e_pcie_set_lane_count()
221 struct regmap *syscon; in j721e_pcie_ctrl_init() local
224 syscon = syscon_regmap_lookup_by_phandle(node, "ti,syscon-pcie-ctrl"); in j721e_pcie_ctrl_init()
225 if (IS_ERR(syscon)) { in j721e_pcie_ctrl_init()
227 return PTR_ERR(syscon); in j721e_pcie_ctrl_init()
[all …]
/drivers/input/keyboard/
Dclps711x-keypad.c26 struct regmap *syscon; member
41 regmap_update_bits(priv->syscon, SYSCON_OFFSET, in clps711x_keypad_poll()
77 regmap_update_bits(priv->syscon, SYSCON_OFFSET, in clps711x_keypad_poll()
98 priv->syscon = in clps711x_keypad_probe()
100 if (IS_ERR(priv->syscon)) in clps711x_keypad_probe()
101 return PTR_ERR(priv->syscon); in clps711x_keypad_probe()
151 regmap_update_bits(priv->syscon, SYSCON_OFFSET, SYSCON1_KBDSCAN_MASK, in clps711x_keypad_probe()
/drivers/soc/samsung/
Dexynos-chipid.c53 struct device_node *syscon; in exynos_chipid_early_init() local
59 syscon = of_find_compatible_node(NULL, NULL, in exynos_chipid_early_init()
61 if (!syscon) in exynos_chipid_early_init()
64 regmap = device_node_to_regmap(syscon); in exynos_chipid_early_init()
65 of_node_put(syscon); in exynos_chipid_early_init()
/drivers/irqchip/
Dirq-ls-extirq.c19 struct regmap *syscon; member
54 regmap_update_bits(priv->syscon, priv->intpcr, mask, value); in ls_extirq_set_type()
161 priv->syscon = syscon_node_to_regmap(node->parent); in ls_extirq_of_init()
162 if (IS_ERR(priv->syscon)) { in ls_extirq_of_init()
163 ret = PTR_ERR(priv->syscon); in ls_extirq_of_init()
180 ret = regmap_read(priv->syscon, LS1021A_SCFGREVCR, &revcr); in ls_extirq_of_init()
/drivers/video/fbdev/
Dclps711x-fb.c36 struct regmap *syscon; member
142 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_set_par()
144 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, in clps711x_fb_set_par()
271 cfb->syscon = in clps711x_fb_probe()
273 if (IS_ERR(cfb->syscon)) { in clps711x_fb_probe()
274 ret = PTR_ERR(cfb->syscon); in clps711x_fb_probe()
302 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, in clps711x_fb_probe()
305 ret = regmap_read(cfb->syscon, SYSCON_OFFSET, &val); in clps711x_fb_probe()
354 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_probe()
368 regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0); in clps711x_fb_remove()
/drivers/phy/hisilicon/
Dphy-histb-combphy.c45 struct regmap *syscon; member
81 struct regmap *syscon = priv->syscon; in histb_combphy_set_mode() local
101 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode()
211 priv->syscon = syscon_node_to_regmap(np->parent); in histb_combphy_probe()
212 if (IS_ERR(priv->syscon)) { in histb_combphy_probe()
214 return PTR_ERR(priv->syscon); in histb_combphy_probe()
/drivers/bus/
Darm-integrator-lm.c73 struct device_node *syscon; in integrator_ap_lm_probe() local
80 syscon = of_find_matching_node(NULL, integrator_ap_syscon_match); in integrator_ap_lm_probe()
81 if (!syscon) { in integrator_ap_lm_probe()
86 map = syscon_node_to_regmap(syscon); in integrator_ap_lm_probe()
/drivers/hwspinlock/
Dqcom_hwspinlock.c76 struct device_node *syscon; in qcom_hwspinlock_probe_syscon() local
80 syscon = of_parse_phandle(pdev->dev.of_node, "syscon", 0); in qcom_hwspinlock_probe_syscon()
81 if (!syscon) in qcom_hwspinlock_probe_syscon()
84 regmap = syscon_node_to_regmap(syscon); in qcom_hwspinlock_probe_syscon()
85 of_node_put(syscon); in qcom_hwspinlock_probe_syscon()
/drivers/regulator/
Dpbias-regulator.c155 struct regmap *syscon; in pbias_regulator_probe() local
170 syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); in pbias_regulator_probe()
171 if (IS_ERR(syscon)) in pbias_regulator_probe()
172 return PTR_ERR(syscon); in pbias_regulator_probe()
187 cfg.regmap = syscon; in pbias_regulator_probe()
/drivers/cpufreq/
Dti-cpufreq.c61 struct regmap *syscon; member
217 ret = regmap_read(opp_data->syscon, opp_data->soc_data->efuse_offset, in ti_cpufreq_get_efuse()
258 ret = regmap_read(opp_data->syscon, opp_data->soc_data->rev_offset, in ti_cpufreq_get_rev()
287 opp_data->syscon = syscon_regmap_lookup_by_phandle(np, in ti_cpufreq_setup_syscon_register()
289 if (IS_ERR(opp_data->syscon)) { in ti_cpufreq_setup_syscon_register()
292 return PTR_ERR(opp_data->syscon); in ti_cpufreq_setup_syscon_register()
/drivers/net/can/c_can/
Dc_can_platform.c89 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_wait_syscon()
106 regmap_read(raminit->syscon, raminit->reg, &ctrl); in c_can_hw_raminit_syscon()
116 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
128 regmap_update_bits(raminit->syscon, raminit->reg, mask, ctrl); in c_can_hw_raminit_syscon()
134 regmap_update_bits(raminit->syscon, raminit->reg, in c_can_hw_raminit_syscon()
338 raminit->syscon = syscon_regmap_lookup_by_phandle(np, in c_can_plat_probe()
340 if (IS_ERR(raminit->syscon)) { in c_can_plat_probe()
342 ret = PTR_ERR(raminit->syscon); in c_can_plat_probe()
/drivers/pinctrl/
Dpinctrl-zynq.c42 struct regmap *syscon; member
906 ret = regmap_read(pctrl->syscon, in zynq_pinmux_set_mux()
913 ret = regmap_write(pctrl->syscon, in zynq_pinmux_set_mux()
922 ret = regmap_read(pctrl->syscon, addr, &reg); in zynq_pinmux_set_mux()
928 ret = regmap_write(pctrl->syscon, addr, reg); in zynq_pinmux_set_mux()
997 ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), &reg); in zynq_pinconf_cfg_get()
1055 ret = regmap_read(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), &reg); in zynq_pinconf_cfg_set()
1110 ret = regmap_write(pctrl->syscon, pctrl->pctrl_offset + (4 * pin), reg); in zynq_pinconf_cfg_set()
1168 pctrl->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node, in zynq_pinctrl_probe()
1170 if (IS_ERR(pctrl->syscon)) { in zynq_pinctrl_probe()
[all …]
/drivers/media/platform/ti-vpe/
Dcal.c690 struct regmap *syscon; in cal_init_camerarx_regmap() local
695 syscon = syscon_regmap_lookup_by_phandle_args(np, "ti,camerrx-control", in cal_init_camerarx_regmap()
697 if (!IS_ERR(syscon)) { in cal_init_camerarx_regmap()
698 cal->syscon_camerrx = syscon; in cal_init_camerarx_regmap()
704 PTR_ERR(syscon)); in cal_init_camerarx_regmap()
726 syscon = regmap_init_mmio(NULL, base, &config); in cal_init_camerarx_regmap()
727 if (IS_ERR(syscon)) { in cal_init_camerarx_regmap()
729 return PTR_ERR(syscon); in cal_init_camerarx_regmap()
736 cal->syscon_camerrx = syscon; in cal_init_camerarx_regmap()

123