15 #include <linux/kernel.h>
17 #include <linux/errno.h>
18 #include <linux/pci.h>
20 #include <linux/module.h>
26 #include <asm/machdep.h>
27 #include <asm/pci-bridge.h>
44 static void __init mpc85xx_rds_setup_arch(
void)
49 ppc_md.progress(
"p1023_rds_setup_arch()", 0);
61 "BCSR: Failed to map bcsr register space\n");
64 #define BCSR15_I2C_BUS0_SEG_CLR 0x07
65 #define BCSR15_I2C_BUS0_SEG2 0x02
73 #ifdef CONFIG_RTC_CLASS
75 clrbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG_CLR);
76 setbits8(&bcsr_regs[15], BCSR15_I2C_BUS0_SEG2);
85 fsl_pci_assign_primary();
90 static void __init mpc85xx_rds_pic_init(
void)
101 static int __init p1023_rds_probe(
void)
103 unsigned long root = of_get_flat_dt_root();
105 return of_flat_dt_is_compatible(root,
"fsl,P1023RDS");
111 .probe = p1023_rds_probe,
112 .setup_arch = mpc85xx_rds_setup_arch,
113 .init_IRQ = mpc85xx_rds_pic_init,
115 .restart = fsl_rstcr_restart,
119 .pcibios_fixup_bus = fsl_pcibios_fixup_bus,