Lines Matching refs:cinfo
46 struct dra7_atl_clock_info *cinfo; member
66 static inline void atl_write(struct dra7_atl_clock_info *cinfo, u32 reg, in atl_write() argument
69 __raw_writel(val, cinfo->iobase + reg); in atl_write()
72 static inline int atl_read(struct dra7_atl_clock_info *cinfo, u32 reg) in atl_read() argument
74 return __raw_readl(cinfo->iobase + reg); in atl_read()
85 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable()
87 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable()
89 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable()
91 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable()
106 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0); in atl_clk_disable()
107 pm_runtime_put_sync(cdesc->cinfo->dev); in atl_clk_disable()
219 struct dra7_atl_clock_info *cinfo; in of_dra7_atl_clk_probe() local
226 cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL); in of_dra7_atl_clk_probe()
227 if (!cinfo) in of_dra7_atl_clk_probe()
230 cinfo->iobase = of_iomap(node, 0); in of_dra7_atl_clk_probe()
231 cinfo->dev = &pdev->dev; in of_dra7_atl_clk_probe()
232 pm_runtime_enable(cinfo->dev); in of_dra7_atl_clk_probe()
233 pm_runtime_irq_safe(cinfo->dev); in of_dra7_atl_clk_probe()
235 pm_runtime_get_sync(cinfo->dev); in of_dra7_atl_clk_probe()
236 atl_write(cinfo, DRA7_ATL_PCLKMUX_REG(0), DRA7_ATL_PCLKMUX); in of_dra7_atl_clk_probe()
263 cdesc->cinfo = cinfo; in of_dra7_atl_clk_probe()
276 atl_write(cinfo, DRA7_ATL_BWSMUX_REG(i), in of_dra7_atl_clk_probe()
278 atl_write(cinfo, DRA7_ATL_AWSMUX_REG(i), in of_dra7_atl_clk_probe()
291 pm_runtime_put_sync(cinfo->dev); in of_dra7_atl_clk_probe()