14 #include <linux/stddef.h>
15 #include <linux/kernel.h>
17 #include <linux/errno.h>
18 #include <linux/reboot.h>
19 #include <linux/pci.h>
20 #include <linux/kdev_t.h>
33 #include <asm/machdep.h>
45 #define SVR_REV(svr) (((svr) >> 0) & 0xFFFF)
51 static void __init mpc83xx_km_setup_arch(
void)
53 #ifdef CONFIG_QUICC_ENGINE
58 ppc_md.progress(
"kmpbec83xx_setup_arch()", 0);
62 #ifdef CONFIG_QUICC_ENGINE
70 for_each_node_by_name(np,
"spi")
73 for_each_node_by_name(np,
"ucc")
113 clrsetbits_be32((base + 0xa8), 0x0c00f000, 0x04005000);
123 clrsetbits_be32((base + 0xac), 0x0000cff0, 0x00004550);
130 clrsetbits_be32((base + 0xac), 0x000000f0, 0x000000a0);
131 }
else if (
SVR_REV(svid) == 0x0020) {
136 setbits32((base + 0xa8), 0x00003000);
142 setbits32((base + 0xa8), 0x0c000000);
148 setbits32((base + 0xac), 0x0000c000);
162 "Keymile,kmpbec8321",
169 static int __init mpc83xx_km_probe(
void)
171 unsigned long node = of_get_flat_dt_root();
175 if (of_flat_dt_is_compatible(node,
board[i]))
183 .name =
"mpc83xx-km-platform",
184 .probe = mpc83xx_km_probe,
185 .setup_arch = mpc83xx_km_setup_arch,