Lines Matching refs:cinfo
45 struct dra7_atl_clock_info *cinfo; member
65 static inline void atl_write(struct dra7_atl_clock_info *cinfo, u32 reg, in atl_write() argument
68 __raw_writel(val, cinfo->iobase + reg); in atl_write()
71 static inline int atl_read(struct dra7_atl_clock_info *cinfo, u32 reg) in atl_read() argument
73 return __raw_readl(cinfo->iobase + reg); in atl_read()
84 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable()
86 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable()
88 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable()
90 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable()
105 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0); in atl_clk_disable()
106 pm_runtime_put_sync(cdesc->cinfo->dev); in atl_clk_disable()
218 struct dra7_atl_clock_info *cinfo; in of_dra7_atl_clk_probe() local
225 cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL); in of_dra7_atl_clk_probe()
226 if (!cinfo) in of_dra7_atl_clk_probe()
229 cinfo->iobase = of_iomap(node, 0); in of_dra7_atl_clk_probe()
230 cinfo->dev = &pdev->dev; in of_dra7_atl_clk_probe()
231 pm_runtime_enable(cinfo->dev); in of_dra7_atl_clk_probe()
232 pm_runtime_irq_safe(cinfo->dev); in of_dra7_atl_clk_probe()
234 pm_runtime_get_sync(cinfo->dev); in of_dra7_atl_clk_probe()
235 atl_write(cinfo, DRA7_ATL_PCLKMUX_REG(0), DRA7_ATL_PCLKMUX); in of_dra7_atl_clk_probe()
262 cdesc->cinfo = cinfo; in of_dra7_atl_clk_probe()
275 atl_write(cinfo, DRA7_ATL_BWSMUX_REG(i), in of_dra7_atl_clk_probe()
277 atl_write(cinfo, DRA7_ATL_AWSMUX_REG(i), in of_dra7_atl_clk_probe()
290 pm_runtime_put_sync(cinfo->dev); in of_dra7_atl_clk_probe()