23 #include <asm/machdep.h>
32 static void __init pq2fads_pic_init(
void)
51 static struct cpm_pin pq2fads_pins[] = {
97 static void __init init_ioports(
void)
101 for (i = 0; i <
ARRAY_SIZE(pq2fads_pins); i++) {
116 static void __init pq2fads_setup_arch(
void)
122 ppc_md.progress(
"pq2fads_setup_arch()", 0);
141 clrbits32(&bcsr[1], BCSR1_RS232_EN1 | BCSR1_RS232_EN2 | BCSR1_FETHIEN);
142 setbits32(&bcsr[1], BCSR1_FETH_RST);
144 clrbits32(&bcsr[3], BCSR3_FETHIEN2);
145 setbits32(&bcsr[3], BCSR3_FETH2_RST);
152 clrbits32(&
cpm2_immr->im_siu_conf.siu_82xx.sc_siumcr, 0x0c000000);
157 ppc_md.progress(
"pq2fads_setup_arch(), finish", 0);
163 static int __init pq2fads_probe(
void)
165 unsigned long root = of_get_flat_dt_root();
166 return of_flat_dt_is_compatible(root,
"fsl,pq2fads");
172 { .name =
"localbus", },
176 static int __init declare_of_platform_devices(
void)
179 of_platform_bus_probe(
NULL, of_bus_ids,
NULL);
186 .name =
"Freescale PQ2FADS",
187 .probe = pq2fads_probe,
188 .setup_arch = pq2fads_setup_arch,
189 .init_IRQ = pq2fads_pic_init,