Lines Matching full:syscon

15 #include <linux/mfd/syscon.h>
52 struct regmap *syscon; member
112 dwsmscc->syscon = syscon_regmap_lookup_by_compatible(cpu_syscon); in dw_spi_mscc_init()
113 if (IS_ERR(dwsmscc->syscon)) in dw_spi_mscc_init()
114 return PTR_ERR(dwsmscc->syscon); in dw_spi_mscc_init()
120 regmap_update_bits(dwsmscc->syscon, MSCC_CPU_SYSTEM_CTRL_GENERAL_CTRL, in dw_spi_mscc_init()
133 return dw_spi_mscc_init(pdev, dwsmmio, "mscc,ocelot-cpu-syscon", in dw_spi_mscc_ocelot_init()
140 return dw_spi_mscc_init(pdev, dwsmmio, "mscc,jaguar2-cpu-syscon", in dw_spi_mscc_jaguar2_init()
159 regmap_write(dwsmscc->syscon, SPARX5_FORCE_ENA, 1); in dw_spi_sparx5_set_cs()
161 regmap_write(dwsmscc->syscon, SPARX5_FORCE_VAL, ~BIT(cs)); in dw_spi_sparx5_set_cs()
166 regmap_write(dwsmscc->syscon, SPARX5_FORCE_VAL, ~0); in dw_spi_sparx5_set_cs()
170 regmap_write(dwsmscc->syscon, SPARX5_FORCE_ENA, 0); in dw_spi_sparx5_set_cs()
179 const char *syscon_name = "microchip,sparx5-cpu-syscon"; in dw_spi_mscc_sparx5_init()
192 dwsmscc->syscon = in dw_spi_mscc_sparx5_init()
194 if (IS_ERR(dwsmscc->syscon)) { in dw_spi_mscc_sparx5_init()
195 dev_err(dev, "No syscon map %s\n", syscon_name); in dw_spi_mscc_sparx5_init()
196 return PTR_ERR(dwsmscc->syscon); in dw_spi_mscc_sparx5_init()
272 static void dw_spi_elba_override_cs(struct regmap *syscon, int cs, int enable) in dw_spi_elba_override_cs() argument
274 regmap_update_bits(syscon, ELBA_SPICS_REG, ELBA_SPICS_MASK(cs), in dw_spi_elba_override_cs()
282 struct regmap *syscon = dwsmmio->priv; in dw_spi_elba_set_cs() local
287 dw_spi_elba_override_cs(syscon, spi_get_chipselect(spi, 0), enable); in dw_spi_elba_set_cs()
301 struct regmap *syscon; in dw_spi_elba_init() local
303 syscon = syscon_regmap_lookup_by_phandle(dev_of_node(&pdev->dev), in dw_spi_elba_init()
304 "amd,pensando-elba-syscon"); in dw_spi_elba_init()
305 if (IS_ERR(syscon)) in dw_spi_elba_init()
306 return dev_err_probe(&pdev->dev, PTR_ERR(syscon), in dw_spi_elba_init()
307 "syscon regmap lookup failed\n"); in dw_spi_elba_init()
309 dwsmmio->priv = syscon; in dw_spi_elba_init()