19 #include <linux/pci.h>
26 #include <asm/machdep.h>
38 { .compatible =
"fsl,mpc5200-cdm", },
39 { .compatible =
"mpc5200-cdm", },
43 static struct of_device_id mpc5200_gpio_ids[] __initdata = {
45 { .compatible =
"mpc5200-gpio", },
57 lite5200_fix_clock_config(
void)
91 lite5200_fix_port_config(
void)
109 port_config &= ~0x00800000;
111 port_config &= ~0x00007000;
112 port_config |= 0x00001000;
114 port_config &= ~0x03000000;
115 port_config |= 0x01000000;
117 pr_debug(
"port_config: old:%x new:%x\n",
126 static void lite5200_suspend_prepare(
void __iomem *mbar)
141 out_be32(mbar + 0x1050, 0x00000001);
144 static void lite5200_resume_finish(
void __iomem *mbar)
147 out_be32(mbar + 0x1050, 0x00010000);
151 static void __init lite5200_setup_arch(
void)
154 ppc_md.progress(
"lite5200_setup_arch()", 0);
163 lite5200_fix_clock_config();
164 lite5200_fix_port_config();
184 static int __init lite5200_probe(
void)
186 return of_flat_dt_match(of_get_flat_dt_root(),
board);
191 .probe = lite5200_probe,
192 .setup_arch = lite5200_setup_arch,