Lines Matching refs:sci
978 struct s3c64xx_spi_info *sci = sdd->cntrlr_info; in s3c64xx_spi_hwinit() local
984 if (sci->no_cs) in s3c64xx_spi_hwinit()
993 writel(sci->src_clk_nr << S3C64XX_SPI_CLKSEL_SRCSHFT, in s3c64xx_spi_hwinit()
1020 struct s3c64xx_spi_info *sci; in s3c64xx_spi_parse_dt() local
1023 sci = devm_kzalloc(dev, sizeof(*sci), GFP_KERNEL); in s3c64xx_spi_parse_dt()
1024 if (!sci) in s3c64xx_spi_parse_dt()
1029 sci->src_clk_nr = 0; in s3c64xx_spi_parse_dt()
1031 sci->src_clk_nr = temp; in s3c64xx_spi_parse_dt()
1036 sci->num_cs = 1; in s3c64xx_spi_parse_dt()
1038 sci->num_cs = temp; in s3c64xx_spi_parse_dt()
1041 sci->no_cs = of_property_read_bool(dev->of_node, "no-cs-readback"); in s3c64xx_spi_parse_dt()
1043 return sci; in s3c64xx_spi_parse_dt()
1066 struct s3c64xx_spi_info *sci = dev_get_platdata(&pdev->dev); in s3c64xx_spi_probe() local
1071 if (!sci && pdev->dev.of_node) { in s3c64xx_spi_probe()
1072 sci = s3c64xx_spi_parse_dt(&pdev->dev); in s3c64xx_spi_probe()
1073 if (IS_ERR(sci)) in s3c64xx_spi_probe()
1074 return PTR_ERR(sci); in s3c64xx_spi_probe()
1077 if (!sci) { in s3c64xx_spi_probe()
1106 sdd->cntrlr_info = sci; in s3c64xx_spi_probe()
1133 master->num_chipselect = sci->num_cs; in s3c64xx_spi_probe()
1149 if (sci->cfg_gpio && sci->cfg_gpio()) { in s3c64xx_spi_probe()
1169 sprintf(clk_name, "spi_busclk%d", sci->src_clk_nr); in s3c64xx_spi_probe()
1327 struct s3c64xx_spi_info *sci = sdd->cntrlr_info; in s3c64xx_spi_resume() local
1330 if (sci->cfg_gpio) in s3c64xx_spi_resume()
1331 sci->cfg_gpio(); in s3c64xx_spi_resume()