Lines Matching refs:sci
1120 struct s3c64xx_spi_info *sci = sdd->cntrlr_info; in s3c64xx_spi_hwinit() local
1126 if (sci->no_cs) in s3c64xx_spi_hwinit()
1135 writel(sci->src_clk_nr << S3C64XX_SPI_CLKSEL_SRCSHFT, in s3c64xx_spi_hwinit()
1161 struct s3c64xx_spi_info *sci; in s3c64xx_spi_parse_dt() local
1164 sci = devm_kzalloc(dev, sizeof(*sci), GFP_KERNEL); in s3c64xx_spi_parse_dt()
1165 if (!sci) in s3c64xx_spi_parse_dt()
1170 sci->src_clk_nr = 0; in s3c64xx_spi_parse_dt()
1172 sci->src_clk_nr = temp; in s3c64xx_spi_parse_dt()
1177 sci->num_cs = 1; in s3c64xx_spi_parse_dt()
1179 sci->num_cs = temp; in s3c64xx_spi_parse_dt()
1182 sci->no_cs = of_property_read_bool(dev->of_node, "no-cs-readback"); in s3c64xx_spi_parse_dt()
1183 sci->polling = !of_property_present(dev->of_node, "dmas"); in s3c64xx_spi_parse_dt()
1185 return sci; in s3c64xx_spi_parse_dt()
1250 struct s3c64xx_spi_info *sci = dev_get_platdata(&pdev->dev); in s3c64xx_spi_probe() local
1255 if (!sci && pdev->dev.of_node) { in s3c64xx_spi_probe()
1256 sci = s3c64xx_spi_parse_dt(&pdev->dev); in s3c64xx_spi_probe()
1257 if (IS_ERR(sci)) in s3c64xx_spi_probe()
1258 return PTR_ERR(sci); in s3c64xx_spi_probe()
1261 if (!sci) in s3c64xx_spi_probe()
1279 sdd->cntrlr_info = sci; in s3c64xx_spi_probe()
1308 host->num_chipselect = sci->num_cs; in s3c64xx_spi_probe()
1326 if (sci->cfg_gpio && sci->cfg_gpio()) in s3c64xx_spi_probe()
1336 sprintf(clk_name, "spi_busclk%d", sci->src_clk_nr); in s3c64xx_spi_probe()
1440 struct s3c64xx_spi_info *sci = sdd->cntrlr_info; in s3c64xx_spi_resume() local
1443 if (sci->cfg_gpio) in s3c64xx_spi_resume()
1444 sci->cfg_gpio(); in s3c64xx_spi_resume()