Lines Matching refs:hsmc
24 struct hsmc { struct
30 static struct hsmc *hsmc; variable
57 mul = (clk_get_rate(hsmc->mck) / 10000) << 16; in smc_set_timing()
143 if (!hsmc) in smc_set_configuration()
207 hsmc_writel(hsmc, SETUP0 + offset, setup); in smc_set_configuration()
208 hsmc_writel(hsmc, PULSE0 + offset, pulse); in smc_set_configuration()
209 hsmc_writel(hsmc, CYCLE0 + offset, cycle); in smc_set_configuration()
210 hsmc_writel(hsmc, MODE0 + offset, mode); in smc_set_configuration()
211 hsmc_readl(hsmc, MODE0); /* I/O barrier */ in smc_set_configuration()
223 if (hsmc) in hsmc_probe()
239 hsmc = kzalloc(sizeof(struct hsmc), GFP_KERNEL); in hsmc_probe()
240 if (!hsmc) in hsmc_probe()
246 hsmc->pclk = pclk; in hsmc_probe()
247 hsmc->mck = mck; in hsmc_probe()
248 hsmc->regs = ioremap(regs->start, resource_size(regs)); in hsmc_probe()
249 if (!hsmc->regs) in hsmc_probe()
255 platform_set_drvdata(pdev, hsmc); in hsmc_probe()
262 kfree(hsmc); in hsmc_probe()
267 hsmc = NULL; in hsmc_probe()