Lines Matching refs:cinfo

41 	struct dra7_atl_clock_info *cinfo;  member
61 static inline void atl_write(struct dra7_atl_clock_info *cinfo, u32 reg, in atl_write() argument
64 __raw_writel(val, cinfo->iobase + reg); in atl_write()
67 static inline int atl_read(struct dra7_atl_clock_info *cinfo, u32 reg) in atl_read() argument
69 return __raw_readl(cinfo->iobase + reg); in atl_read()
80 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable()
82 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable()
84 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable()
86 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable()
101 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0); in atl_clk_disable()
102 pm_runtime_put_sync(cdesc->cinfo->dev); in atl_clk_disable()
206 struct dra7_atl_clock_info *cinfo; in of_dra7_atl_clk_probe() local
213 cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL); in of_dra7_atl_clk_probe()
214 if (!cinfo) in of_dra7_atl_clk_probe()
217 cinfo->iobase = of_iomap(node, 0); in of_dra7_atl_clk_probe()
218 cinfo->dev = &pdev->dev; in of_dra7_atl_clk_probe()
219 pm_runtime_enable(cinfo->dev); in of_dra7_atl_clk_probe()
221 pm_runtime_get_sync(cinfo->dev); in of_dra7_atl_clk_probe()
222 atl_write(cinfo, DRA7_ATL_PCLKMUX_REG(0), DRA7_ATL_PCLKMUX); in of_dra7_atl_clk_probe()
251 cdesc->cinfo = cinfo; in of_dra7_atl_clk_probe()
264 atl_write(cinfo, DRA7_ATL_BWSMUX_REG(i), in of_dra7_atl_clk_probe()
266 atl_write(cinfo, DRA7_ATL_AWSMUX_REG(i), in of_dra7_atl_clk_probe()
282 pm_runtime_put_sync(cinfo->dev); in of_dra7_atl_clk_probe()