sp810              24 drivers/clk/versatile/clk-sp810.c 	struct clk_sp810 *sp810;
sp810              38 drivers/clk/versatile/clk-sp810.c 	u32 val = readl(timerclken->sp810->base + SCCTRL);
sp810              46 drivers/clk/versatile/clk-sp810.c 	struct clk_sp810 *sp810 = timerclken->sp810;
sp810              53 drivers/clk/versatile/clk-sp810.c 	spin_lock_irqsave(&sp810->lock, flags);
sp810              55 drivers/clk/versatile/clk-sp810.c 	val = readl(sp810->base + SCCTRL);
sp810              58 drivers/clk/versatile/clk-sp810.c 	writel(val, sp810->base + SCCTRL);
sp810              60 drivers/clk/versatile/clk-sp810.c 	spin_unlock_irqrestore(&sp810->lock, flags);
sp810              73 drivers/clk/versatile/clk-sp810.c 	struct clk_sp810 *sp810 = data;
sp810              76 drivers/clk/versatile/clk-sp810.c 		    clkspec->args[0] >=	ARRAY_SIZE(sp810->timerclken)))
sp810              79 drivers/clk/versatile/clk-sp810.c 	return sp810->timerclken[clkspec->args[0]].clk;
sp810              84 drivers/clk/versatile/clk-sp810.c 	struct clk_sp810 *sp810 = kzalloc(sizeof(*sp810), GFP_KERNEL);
sp810              93 drivers/clk/versatile/clk-sp810.c 	if (!sp810)
sp810              98 drivers/clk/versatile/clk-sp810.c 		kfree(sp810);
sp810             102 drivers/clk/versatile/clk-sp810.c 	sp810->node = node;
sp810             103 drivers/clk/versatile/clk-sp810.c 	sp810->base = of_iomap(node, 0);
sp810             104 drivers/clk/versatile/clk-sp810.c 	spin_lock_init(&sp810->lock);
sp810             114 drivers/clk/versatile/clk-sp810.c 	for (i = 0; i < ARRAY_SIZE(sp810->timerclken); i++) {
sp810             117 drivers/clk/versatile/clk-sp810.c 		sp810->timerclken[i].sp810 = sp810;
sp810             118 drivers/clk/versatile/clk-sp810.c 		sp810->timerclken[i].channel = i;
sp810             119 drivers/clk/versatile/clk-sp810.c 		sp810->timerclken[i].hw.init = &init;
sp810             128 drivers/clk/versatile/clk-sp810.c 			init.ops->set_parent(&sp810->timerclken[i].hw, 1);
sp810             130 drivers/clk/versatile/clk-sp810.c 		sp810->timerclken[i].clk = clk_register(NULL,
sp810             131 drivers/clk/versatile/clk-sp810.c 				&sp810->timerclken[i].hw);
sp810             132 drivers/clk/versatile/clk-sp810.c 		WARN_ON(IS_ERR(sp810->timerclken[i].clk));
sp810             135 drivers/clk/versatile/clk-sp810.c 	of_clk_add_provider(node, clk_sp810_timerclken_of_get, sp810);
sp810             138 drivers/clk/versatile/clk-sp810.c CLK_OF_DECLARE(sp810, "arm,sp810", clk_sp810_of_setup);