24 #include <asm/machdep.h>
34 static void __init km82xx_pic_init(
void)
115 #if defined(CONFIG_I2C_CPM)
138 static void __init init_ioports(
void)
142 for (i = 0; i <
ARRAY_SIZE(km82xx_pins); i++) {
160 setbits32(&
cpm2_immr->im_ioport.iop_pdata, 1 << (31 - 10));
162 clrbits32(&
cpm2_immr->im_ioport.iop_pdata, 1 << (31 - 11));
165 static void __init km82xx_setup_arch(
void)
168 ppc_md.progress(
"km82xx_setup_arch()", 0);
175 clrbits32(&
cpm2_immr->im_siu_conf.siu_82xx.sc_bcr, MPC82XX_BCR_PLDP);
180 ppc_md.progress(
"km82xx_setup_arch(), finish", 0);
184 { .compatible =
"simple-bus", },
188 static int __init declare_of_platform_devices(
void)
190 of_platform_bus_probe(
NULL, of_bus_ids,
NULL);
199 static int __init km82xx_probe(
void)
201 unsigned long root = of_get_flat_dt_root();
202 return of_flat_dt_is_compatible(root,
"keymile,km82xx");
207 .name =
"Keymile km82xx",
208 .probe = km82xx_probe,
209 .setup_arch = km82xx_setup_arch,
210 .init_IRQ = km82xx_pic_init,