Searched refs:syscon (Results 1 - 25 of 582) sorted by relevance

1234567891011>>

/linux-master/drivers/power/reset/
H A Daxxia-reset.c11 #include <linux/mfd/syscon.h>
31 struct regmap *syscon = data->cb_data; local
34 regmap_write(syscon, SC_CRIT_WRITE_KEY, 0xab);
36 regmap_write(syscon, SC_LATCH_ON_RESET, 0x00000040);
38 regmap_write(syscon, SC_EFUSE_INT_STATUS, EFUSE_READ_DONE);
40 regmap_update_bits(syscon, SC_RESET_CONTROL,
49 struct regmap *syscon; local
52 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
53 if (IS_ERR(syscon)) {
[all...]
H A Docelot-reset.c12 #include <linux/mfd/syscon.h>
19 const char *syscon; member in struct:reset_props
85 ctx->cpu_ctrl = syscon_regmap_lookup_by_compatible(ctx->props->syscon);
87 dev_err(dev, "No syscon map: %s\n", ctx->props->syscon);
101 .syscon = "mscc,ocelot-cpu-syscon",
108 .syscon = "mscc,ocelot-cpu-syscon",
115 .syscon
[all...]
/linux-master/drivers/net/ethernet/ti/
H A Dcpsw-common.c7 #include <linux/mfd/syscon.h>
19 struct regmap *syscon; local
21 syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
22 if (IS_ERR(syscon)) {
23 if (PTR_ERR(syscon) == -ENODEV)
25 return PTR_ERR(syscon);
28 regmap_read(syscon, CTRL_MAC_LO_REG(offset, slave), &macid_lsb);
29 regmap_read(syscon, CTRL_MAC_HI_REG(offset, slave), &macid_msb);
46 struct regmap *syscon; local
[all...]
/linux-master/drivers/clk/keystone/
H A DMakefile4 obj-$(CONFIG_TI_SYSCON_CLK) += syscon-clk.o
/linux-master/arch/arm/mach-axxia/
H A Dplatsmp.c34 void __iomem *syscon; local
37 syscon_np = of_find_compatible_node(NULL, NULL, "lsi,axxia-syscon");
41 syscon = of_iomap(syscon_np, 0);
43 if (!syscon)
46 tmp = readl(syscon + SC_RST_CPU_HOLD);
47 writel(0xab, syscon + SC_CRIT_WRITE_KEY);
49 writel(tmp, syscon + SC_RST_CPU_HOLD);
87 CPU_METHOD_OF_DECLARE(axxia_smp, "lsi,syscon-release", &axxia_smp_ops);
/linux-master/drivers/mfd/
H A Dsyscon.c20 #include <linux/platform_data/syscon.h>
24 #include <linux/mfd/syscon.h>
32 struct syscon { struct
45 static struct syscon *of_syscon_register(struct device_node *np, bool check_res)
48 struct syscon *syscon; local
57 syscon = kzalloc(sizeof(*syscon), GFP_KERNEL);
58 if (!syscon)
148 syscon
174 struct syscon *entry, *syscon = NULL; local
300 struct syscon *syscon; local
[all...]
/linux-master/drivers/spi/
H A Dspi-dw-mmio.c15 #include <linux/mfd/syscon.h>
52 struct regmap *syscon; member in struct:dw_spi_mscc
112 dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon);
113 if (IS_ERR(dwsmscc->syscon))
114 return PTR_ERR(dwsmscc->syscon);
120 regmap_update_bits(dwsmscc->syscon, MSCC_CPU_SYSTEM_CTRL_GENERAL_CTRL,
133 return dw_spi_mscc_init(pdev, dwsmmio, "mscc,ocelot-cpu-syscon",
140 return dw_spi_mscc_init(pdev, dwsmmio, "mscc,jaguar2-cpu-syscon",
159 regmap_write(dwsmscc->syscon, SPARX5_FORCE_ENA, 1);
161 regmap_write(dwsmscc->syscon, SPARX5_FORCE_VA
272 dw_spi_elba_override_cs(struct regmap *syscon, int cs, int enable) argument
282 struct regmap *syscon = dwsmmio->priv; local
301 struct regmap *syscon; local
[all...]
H A Dspi-clps711x.c16 #include <linux/mfd/syscon.h>
17 #include <linux/mfd/syscon/clps711x.h>
27 struct regmap *syscon; member in struct:spi_clps711x_data
43 return regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCKNSEN,
122 hw->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
123 if (IS_ERR(hw->syscon)) {
124 ret = PTR_ERR(hw->syscon);
135 regmap_update_bits(hw->syscon, SYSCON_OFFSET, SYSCON3_ADCCON, 0);
/linux-master/drivers/bus/
H A Darm-integrator-lm.c21 #include <linux/mfd/syscon.h>
50 /* First populate the syscon then any devices */
67 { .compatible = "arm,integrator-ap-syscon"},
74 struct device_node *syscon; local
81 syscon = of_find_matching_node(NULL, integrator_ap_syscon_match);
82 if (!syscon) {
87 map = syscon_node_to_regmap(syscon);
96 dev_err(dev, "could not read from Integrator/AP syscon\n");
/linux-master/drivers/input/keyboard/
H A Dclps711x-keypad.c17 #include <linux/mfd/syscon.h>
18 #include <linux/mfd/syscon/clps711x.h>
28 struct regmap *syscon; member in struct:clps711x_keypad_data
43 regmap_update_bits(priv->syscon, SYSCON_OFFSET,
79 regmap_update_bits(priv->syscon, SYSCON_OFFSET,
99 priv->syscon = syscon_regmap_lookup_by_phandle(dev->of_node, "syscon");
100 if (IS_ERR(priv->syscon))
101 return PTR_ERR(priv->syscon);
151 regmap_update_bits(priv->syscon, SYSCON_OFFSE
[all...]
/linux-master/drivers/gpio/
H A Dgpio-syscon.c14 #include <linux/mfd/syscon.h>
50 struct regmap *syscon; member in struct:syscon_gpio_priv
64 ret = regmap_read(priv->syscon,
79 regmap_update_bits(priv->syscon,
95 regmap_update_bits(priv->syscon,
113 regmap_update_bits(priv->syscon,
143 ret = regmap_write(priv->syscon,
172 priv->syscon,
218 priv->syscon = syscon_regmap_lookup_by_phandle(np, "gpio,syscon
[all...]
/linux-master/drivers/gpu/drm/pl111/
H A Dpl111_nomadik.c4 #include <linux/mfd/syscon.h>
/linux-master/drivers/clk/nxp/
H A Dclk-lpc18xx-creg.c11 #include <linux/mfd/syscon.h>
139 struct regmap *syscon)
149 creg_clk->reg = syscon;
167 struct regmap *syscon; local
169 syscon = syscon_node_to_regmap(np->parent);
170 if (IS_ERR(syscon)) {
171 pr_err("%s: syscon lookup failed\n", __func__);
179 &clk_32khz_parent, syscon);
196 struct regmap *syscon; local
198 syscon
136 clk_register_creg_clk(struct device *dev, struct clk_creg_data *creg_clk, const char **parent_name, struct regmap *syscon) argument
[all...]
/linux-master/arch/arm/mach-versatile/
H A Dintegrator_ap.c16 #include <linux/mfd/syscon.h>
165 { .compatible = "arm,integrator-ap-syscon"},
171 struct device_node *syscon; local
175 syscon = of_find_matching_node(NULL, ap_syscon_match);
176 if (!syscon)
178 ap_syscon_map = syscon_node_to_regmap(syscon);
/linux-master/drivers/thermal/
H A Darmada_thermal.c18 #include <linux/mfd/syscon.h>
68 struct regmap *syscon; member in struct:armada_thermal_priv
142 regmap_read(priv->syscon, data->syscon_control1_off, &reg);
152 regmap_write(priv->syscon, data->syscon_control1_off, reg);
155 regmap_write(priv->syscon, data->syscon_control1_off, reg);
158 regmap_read(priv->syscon, data->syscon_status_off, &reg);
160 regmap_write(priv->syscon, data->syscon_status_off, reg);
169 regmap_read(priv->syscon, data->syscon_control1_off, &reg);
179 regmap_write(priv->syscon, data->syscon_control1_off, reg);
190 regmap_read(priv->syscon, dat
[all...]
/linux-master/drivers/phy/ti/
H A Dphy-dm816x-usb.c17 #include <linux/mfd/syscon.h>
43 struct regmap *syscon; member in struct:dm816x_usb_phy
80 regmap_update_bits(phy->syscon, phy->usb_ctrl,
85 regmap_read(phy->syscon, phy->usb_ctrl, &val);
96 regmap_read(phy->syscon, phy->usbphy_ctrl, &val);
100 regmap_write(phy->syscon, phy->usbphy_ctrl, val);
118 error = regmap_update_bits(phy->syscon, phy->usb_ctrl,
146 error = regmap_update_bits(phy->syscon, phy->usb_ctrl,
188 phy->syscon = syscon_regmap_lookup_by_phandle(pdev->dev.of_node,
189 "syscon");
[all...]
/linux-master/arch/arm/mach-omap1/
H A Dusb.c53 u32 syscon; local
59 syscon = omap_readl(OTG_SYSCON_1) & 0xffff;
60 if (!(syscon & OTG_RESET_DONE))
68 syscon |= config->usb0_init(config->pins[0], is_usb0_device(config));
69 syscon |= config->usb1_init(config->pins[1]);
70 syscon |= config->usb2_init(config->pins[2], alt_pingroup);
72 omap_writel(syscon, OTG_SYSCON_1);
74 syscon = config->hmc_mode;
75 syscon |= USBX_SYNCHRO | (4 << 16) /* B_ASE0_BRST */;
78 syscon |
[all...]
/linux-master/drivers/phy/marvell/
H A Dphy-mvebu-cp110-utmi.c13 #include <linux/mfd/syscon.h>
85 * @syscon: Regmap with system controller registers
91 struct regmap *syscon; member in struct:mvebu_cp110_utmi
171 regmap_clear_bits(utmi->syscon, SYSCON_UTMI_CFG_REG(port->id),
175 int test = regmap_test_bits(utmi->syscon,
184 regmap_clear_bits(utmi->syscon, SYSCON_USB_CFG_REG, USB_CFG_PLL_MASK);
211 regmap_update_bits(utmi->syscon, SYSCON_USB_CFG_REG,
229 regmap_set_bits(utmi->syscon, SYSCON_UTMI_CFG_REG(port->id),
265 regmap_set_bits(utmi->syscon, SYSCON_USB_CFG_REG, USB_CFG_PLL_MASK);
297 utmi->syscon
[all...]
/linux-master/arch/arm/mach-imx/
H A Dmach-imx6sl.c8 #include <linux/mfd/syscon.h>
9 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
H A Dmach-imx6sx.c9 #include <linux/mfd/syscon.h>
10 #include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
H A Dmach-imx7d.c6 #include <linux/mfd/syscon.h>
7 #include <linux/mfd/syscon/imx7-iomuxc-gpr.h>
/linux-master/drivers/phy/hisilicon/
H A Dphy-histb-combphy.c14 #include <linux/mfd/syscon.h>
46 struct regmap *syscon; member in struct:histb_combphy_priv
82 struct regmap *syscon = priv->syscon; local
102 return regmap_update_bits(syscon, mode->reg, mode->mask,
212 priv->syscon = syscon_node_to_regmap(np->parent);
213 if (IS_ERR(priv->syscon)) {
214 dev_err(dev, "failed to find peri_ctrl syscon regmap\n");
215 return PTR_ERR(priv->syscon);
/linux-master/drivers/pci/controller/cadence/
H A Dpci-j721e.c15 #include <linux/mfd/syscon.h>
163 static int j721e_pcie_set_mode(struct j721e_pcie *pcie, struct regmap *syscon, argument
175 ret = regmap_update_bits(syscon, offset, mask, val);
183 struct regmap *syscon, unsigned int offset)
196 ret = regmap_update_bits(syscon, offset, GENERATION_SEL_MASK, val);
204 struct regmap *syscon, unsigned int offset)
216 ret = regmap_update_bits(syscon, offset, mask, val);
229 struct regmap *syscon; local
232 syscon = syscon_regmap_lookup_by_phandle(node, "ti,syscon
182 j721e_pcie_set_link_speed(struct j721e_pcie *pcie, struct regmap *syscon, unsigned int offset) argument
203 j721e_pcie_set_lane_count(struct j721e_pcie *pcie, struct regmap *syscon, unsigned int offset) argument
[all...]
/linux-master/drivers/tty/serial/
H A Dclps711x.c25 #include <linux/mfd/syscon.h>
26 #include <linux/mfd/syscon/clps711x.h>
58 struct regmap *syscon; member in struct:clps711x_port
102 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg);
172 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg);
188 regmap_read(s->syscon, SYSFLG_OFFSET, &sysflg);
226 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON1_SIREN,
240 return regmap_update_bits(s->syscon, SYSCON_OFFSET,
249 regmap_update_bits(s->syscon, SYSCON_OFFSET, SYSCON_UARTEN, 0);
358 regmap_read(s->syscon, SYSFLG_OFFSE
398 u32 syscon = 0; local
[all...]
/linux-master/drivers/usb/dwc3/
H A Ddwc3-am62.c12 #include <linux/mfd/syscon.h>
116 struct regmap *syscon; member in struct:dwc3_am62
153 struct regmap *syscon; local
156 syscon = syscon_regmap_lookup_by_phandle(node, "ti,syscon-phy-pll-refclk");
157 if (IS_ERR(syscon)) {
158 dev_err(dev, "unable to get ti,syscon-phy-pll-refclk regmap\n");
159 return PTR_ERR(syscon);
162 am62->syscon = syscon;
[all...]

Completed in 201 milliseconds

1234567891011>>