Lines Matching refs:tim2
135 u32 cpl, tim2; in pl111_display_enable() local
172 tim2 = readl(priv->regs + CLCD_TIM2); in pl111_display_enable()
173 tim2 &= (TIM2_BCD | TIM2_PCD_LO_MASK | TIM2_PCD_HI_MASK); in pl111_display_enable()
176 tim2 |= TIM2_BCD; in pl111_display_enable()
179 tim2 |= TIM2_IHS; in pl111_display_enable()
182 tim2 |= TIM2_IVS; in pl111_display_enable()
186 tim2 |= TIM2_IOE; in pl111_display_enable()
190 tim2 |= TIM2_IPC; in pl111_display_enable()
204 tim2 |= TIM2_ACB_MASK; in pl111_display_enable()
227 tim2 ^= TIM2_IPC; in pl111_display_enable()
230 tim2 |= cpl << 16; in pl111_display_enable()
231 writel(tim2, priv->regs + CLCD_TIM2); in pl111_display_enable()
489 u32 tim2 = readl(priv->regs + CLCD_TIM2); in pl111_clk_div_recalc_rate() local
492 if (tim2 & TIM2_BCD) in pl111_clk_div_recalc_rate()
495 div = tim2 & TIM2_PCD_LO_MASK; in pl111_clk_div_recalc_rate()
496 div |= (tim2 & TIM2_PCD_HI_MASK) >> in pl111_clk_div_recalc_rate()
509 u32 tim2; in pl111_clk_div_set_rate() local
512 tim2 = readl(priv->regs + CLCD_TIM2); in pl111_clk_div_set_rate()
513 tim2 &= ~(TIM2_BCD | TIM2_PCD_LO_MASK | TIM2_PCD_HI_MASK); in pl111_clk_div_set_rate()
516 tim2 |= TIM2_BCD; in pl111_clk_div_set_rate()
519 tim2 |= div & TIM2_PCD_LO_MASK; in pl111_clk_div_set_rate()
520 tim2 |= (div >> TIM2_PCD_LO_BITS) << TIM2_PCD_HI_SHIFT; in pl111_clk_div_set_rate()
523 writel(tim2, priv->regs + CLCD_TIM2); in pl111_clk_div_set_rate()