Lines Matching defs:mpc52xx_cdm
50 static struct mpc52xx_cdm __iomem *mpc52xx_cdm;
155 mpc52xx_cdm = of_iomap(np, 0);
183 if (!mpc52xx_cdm)
188 case 1: reg = &mpc52xx_cdm->mclken_div_psc1; mask = 0x20; break;
189 case 2: reg = &mpc52xx_cdm->mclken_div_psc2; mask = 0x40; break;
190 case 3: reg = &mpc52xx_cdm->mclken_div_psc3; mask = 0x80; break;
191 case 6: reg = &mpc52xx_cdm->mclken_div_psc6; mask = 0x10; break;
199 val = in_be32(&mpc52xx_cdm->clk_enables);
200 out_be32(&mpc52xx_cdm->clk_enables, val | mask);
220 if (!mpc52xx_cdm)
227 if (in_8(&mpc52xx_cdm->ipb_clk_sel) & 0x1)
230 val = in_be32(&mpc52xx_cdm->rstcfg);