Lines Matching refs:sdc
36 static void aspeed_sdc_configure_8bit_mode(struct aspeed_sdc *sdc, in aspeed_sdc_configure_8bit_mode() argument
43 spin_lock(&sdc->lock); in aspeed_sdc_configure_8bit_mode()
44 info = readl(sdc->regs + ASPEED_SDC_INFO); in aspeed_sdc_configure_8bit_mode()
49 writel(info, sdc->regs + ASPEED_SDC_INFO); in aspeed_sdc_configure_8bit_mode()
50 spin_unlock(&sdc->lock); in aspeed_sdc_configure_8bit_mode()
241 struct aspeed_sdc *sdc; in aspeed_sdc_probe() local
244 sdc = devm_kzalloc(&pdev->dev, sizeof(*sdc), GFP_KERNEL); in aspeed_sdc_probe()
245 if (!sdc) in aspeed_sdc_probe()
248 spin_lock_init(&sdc->lock); in aspeed_sdc_probe()
250 sdc->clk = devm_clk_get(&pdev->dev, NULL); in aspeed_sdc_probe()
251 if (IS_ERR(sdc->clk)) in aspeed_sdc_probe()
252 return PTR_ERR(sdc->clk); in aspeed_sdc_probe()
254 ret = clk_prepare_enable(sdc->clk); in aspeed_sdc_probe()
260 sdc->res = platform_get_resource(pdev, IORESOURCE_MEM, 0); in aspeed_sdc_probe()
261 sdc->regs = devm_ioremap_resource(&pdev->dev, sdc->res); in aspeed_sdc_probe()
262 if (IS_ERR(sdc->regs)) { in aspeed_sdc_probe()
263 ret = PTR_ERR(sdc->regs); in aspeed_sdc_probe()
267 dev_set_drvdata(&pdev->dev, sdc); in aspeed_sdc_probe()
284 clk_disable_unprepare(sdc->clk); in aspeed_sdc_probe()
290 struct aspeed_sdc *sdc = dev_get_drvdata(&pdev->dev); in aspeed_sdc_remove() local
292 clk_disable_unprepare(sdc->clk); in aspeed_sdc_remove()