14 #include <linux/pci.h>
26 #define BCSR12_USB_SER_MASK 0x8a
27 #define BCSR12_USB_SER_PIN 0x80
28 #define BCSR12_USB_SER_DEVICE 0x02
30 static int mpc837xmds_usb_cfg(
void)
33 const void *phy_type, *
mode;
56 if (phy_type && !
strcmp(phy_type,
"ulpi")) {
58 }
else if (phy_type && !
strcmp(phy_type,
"serial")) {
62 if (mode && !
strcmp(mode,
"peripheral"))
64 out_8(bcsr_regs + 12, bcsr12);
80 static void __init mpc837x_mds_setup_arch(
void)
83 ppc_md.progress(
"mpc837x_mds_setup_arch()", 0);
94 static int __init mpc837x_mds_probe(
void)
96 unsigned long root = of_get_flat_dt_root();
98 return of_flat_dt_is_compatible(root,
"fsl,mpc837xmds");
102 .name =
"MPC837x MDS",
103 .probe = mpc837x_mds_probe,
104 .setup_arch = mpc837x_mds_setup_arch,