Lines Matching refs:mpc52xx_cdm
51 static struct mpc52xx_cdm __iomem *mpc52xx_cdm; variable
154 mpc52xx_cdm = of_iomap(np, 0); in mpc52xx_map_common_devices()
182 if (!mpc52xx_cdm) in mpc52xx_set_psc_clkdiv()
187 case 1: reg = &mpc52xx_cdm->mclken_div_psc1; mask = 0x20; break; in mpc52xx_set_psc_clkdiv()
188 case 2: reg = &mpc52xx_cdm->mclken_div_psc2; mask = 0x40; break; in mpc52xx_set_psc_clkdiv()
189 case 3: reg = &mpc52xx_cdm->mclken_div_psc3; mask = 0x80; break; in mpc52xx_set_psc_clkdiv()
190 case 6: reg = &mpc52xx_cdm->mclken_div_psc6; mask = 0x10; break; in mpc52xx_set_psc_clkdiv()
198 val = in_be32(&mpc52xx_cdm->clk_enables); in mpc52xx_set_psc_clkdiv()
199 out_be32(&mpc52xx_cdm->clk_enables, val | mask); in mpc52xx_set_psc_clkdiv()
219 if (!mpc52xx_cdm) in mpc52xx_get_xtal_freq()
226 if (in_8(&mpc52xx_cdm->ipb_clk_sel) & 0x1) in mpc52xx_get_xtal_freq()
229 val = in_be32(&mpc52xx_cdm->rstcfg); in mpc52xx_get_xtal_freq()