• Home
  • Raw
  • Download

Lines Matching refs:cinfo

49 	struct dra7_atl_clock_info *cinfo;  member
69 static inline void atl_write(struct dra7_atl_clock_info *cinfo, u32 reg, in atl_write() argument
72 __raw_writel(val, cinfo->iobase + reg); in atl_write()
75 static inline int atl_read(struct dra7_atl_clock_info *cinfo, u32 reg) in atl_read() argument
77 return __raw_readl(cinfo->iobase + reg); in atl_read()
88 dev_warn(cdesc->cinfo->dev, "atl%d has not been configured\n", in atl_clk_enable()
90 pm_runtime_get_sync(cdesc->cinfo->dev); in atl_clk_enable()
92 atl_write(cdesc->cinfo, DRA7_ATL_ATLCR_REG(cdesc->id), in atl_clk_enable()
94 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), DRA7_ATL_SWEN); in atl_clk_enable()
109 atl_write(cdesc->cinfo, DRA7_ATL_SWEN_REG(cdesc->id), 0); in atl_clk_disable()
110 pm_runtime_put_sync(cdesc->cinfo->dev); in atl_clk_disable()
222 struct dra7_atl_clock_info *cinfo; in of_dra7_atl_clk_probe() local
229 cinfo = devm_kzalloc(&pdev->dev, sizeof(*cinfo), GFP_KERNEL); in of_dra7_atl_clk_probe()
230 if (!cinfo) in of_dra7_atl_clk_probe()
233 cinfo->iobase = of_iomap(node, 0); in of_dra7_atl_clk_probe()
234 cinfo->dev = &pdev->dev; in of_dra7_atl_clk_probe()
235 pm_runtime_enable(cinfo->dev); in of_dra7_atl_clk_probe()
236 pm_runtime_irq_safe(cinfo->dev); in of_dra7_atl_clk_probe()
238 pm_runtime_get_sync(cinfo->dev); in of_dra7_atl_clk_probe()
239 atl_write(cinfo, DRA7_ATL_PCLKMUX_REG(0), DRA7_ATL_PCLKMUX); in of_dra7_atl_clk_probe()
266 cdesc->cinfo = cinfo; in of_dra7_atl_clk_probe()
279 atl_write(cinfo, DRA7_ATL_BWSMUX_REG(i), in of_dra7_atl_clk_probe()
281 atl_write(cinfo, DRA7_ATL_AWSMUX_REG(i), in of_dra7_atl_clk_probe()
295 pm_runtime_put_sync(cinfo->dev); in of_dra7_atl_clk_probe()