Home
last modified time | relevance | path

Searched refs:cdm (Results 1 – 8 of 8) sorted by relevance

/arch/powerpc/platforms/52xx/
Dlite5200.c60 struct mpc52xx_cdm __iomem *cdm; in lite5200_fix_clock_config() local
63 cdm = of_iomap(np, 0); in lite5200_fix_clock_config()
65 if (!cdm) { in lite5200_fix_clock_config()
72 out_8(&cdm->ext_48mhz_en, 0x00); in lite5200_fix_clock_config()
73 out_8(&cdm->fd_enable, 0x01); in lite5200_fix_clock_config()
74 if (in_be32(&cdm->rstcfg) & 0x40) /* Assumes 33Mhz clock */ in lite5200_fix_clock_config()
75 out_be16(&cdm->fd_counters, 0x0001); in lite5200_fix_clock_config()
77 out_be16(&cdm->fd_counters, 0x5555); in lite5200_fix_clock_config()
80 iounmap(cdm); in lite5200_fix_clock_config()
Dmpc52xx_pm.c18 static struct mpc52xx_cdm __iomem *cdm; variable
87 cdm = mbar + 0x200; in mpc52xx_pm_prepare()
134 out_8(&cdm->ccs_sleep_enable, 1); in mpc52xx_pm_enter()
135 out_8(&cdm->osc_sleep_enable, 1); in mpc52xx_pm_enter()
136 out_8(&cdm->ccs_qreq_test, 1); in mpc52xx_pm_enter()
139 clk_enables = in_be32(&cdm->clk_enables); in mpc52xx_pm_enter()
140 out_be32(&cdm->clk_enables, clk_enables & 0x00088000); in mpc52xx_pm_enter()
156 mpc52xx_deep_sleep(sram, sdram, cdm, intr); in mpc52xx_pm_enter()
167 out_be32(&cdm->clk_enables, clk_enables); in mpc52xx_pm_enter()
168 out_8(&cdm->ccs_sleep_enable, 0); in mpc52xx_pm_enter()
[all …]
Dlite5200_pm.c11 static struct mpc52xx_cdm __iomem *cdm; variable
77 cdm = mbar + 0x200; in lite5200_pm_prepare()
102 _memcpy_fromio(&scdm, cdm, sizeof(*cdm)); in lite5200_save_regs()
138 out_8(&cdm->ipb_clk_sel, scdm.ipb_clk_sel); in lite5200_restore_regs()
139 out_8(&cdm->pci_clk_sel, scdm.pci_clk_sel); in lite5200_restore_regs()
141 out_8(&cdm->ext_48mhz_en, scdm.ext_48mhz_en); in lite5200_restore_regs()
142 out_8(&cdm->fd_enable, scdm.fd_enable); in lite5200_restore_regs()
143 out_be16(&cdm->fd_counters, scdm.fd_counters); in lite5200_restore_regs()
145 out_be32(&cdm->clk_enables, scdm.clk_enables); in lite5200_restore_regs()
147 out_8(&cdm->osc_disable, scdm.osc_disable); in lite5200_restore_regs()
[all …]
/arch/powerpc/boot/dts/
Dtqm5200.dts53 cdm@200 {
54 compatible = "fsl,mpc5200-cdm";
Dcharon.dts56 cdm@200 {
57 compatible = "fsl,mpc5200-cdm";
Dmpc5200b.dtsi54 cdm@200 {
55 compatible = "fsl,mpc5200b-cdm","fsl,mpc5200-cdm";
Dlite5200.dts53 cdm@200 {
54 compatible = "fsl,mpc5200-cdm";
Da4m072.dts36 cdm@200 {