Hook the ISP/SAF1761 driver into MIPS kernel builds.
- Update FDT file for BERI DE4 boards. - Add needed kernel configuration keywords. - Rename module to saf1761otg so that the device unit number does not interfere with the hardware ID in dmesg. Sponsored by: DARPA, AFRL
This commit is contained in:
parent
580bc2220a
commit
0b4dc07df8
@ -222,7 +222,7 @@
|
||||
};
|
||||
|
||||
usb@0x7f100000 {
|
||||
compatible = "philips,isp1761";
|
||||
compatible = "nxp,usb-isp1761";
|
||||
reg = <0x7f100000 0x40000
|
||||
0x7f140000 0x4>;
|
||||
// IRQ 4 is DC, IRQ 5 is HC.
|
||||
@ -253,14 +253,5 @@
|
||||
sri-cambridge,fileio = "rw";
|
||||
sri-cambridge,devname = "de4tempfan";
|
||||
};
|
||||
|
||||
avgen@0x7f100000 {
|
||||
compatible = "sri-cambridge,avgen";
|
||||
reg = <0x7f100000 0x40000>;
|
||||
sri-cambridge,width = <4>;
|
||||
sri-cambridge,fileio = "r";
|
||||
sri-cambridge,devname = "usbmem";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
|
@ -2314,6 +2314,8 @@ dev/usb/controller/uhci.c optional uhci
|
||||
dev/usb/controller/uhci_pci.c optional uhci pci
|
||||
dev/usb/controller/xhci.c optional xhci
|
||||
dev/usb/controller/xhci_pci.c optional xhci pci
|
||||
dev/usb/controller/saf1761_otg.c optional saf1761otg
|
||||
dev/usb/controller/saf1761_otg_fdt.c optional saf1761otg fdt
|
||||
dev/usb/controller/uss820dci.c optional uss820dci
|
||||
dev/usb/controller/uss820dci_atmelarm.c optional uss820dci at91rm9200
|
||||
dev/usb/controller/usb_controller.c optional usb
|
||||
|
@ -93,15 +93,15 @@ static device_method_t saf1761_otg_methods[] = {
|
||||
};
|
||||
|
||||
static driver_t saf1761_otg_driver = {
|
||||
.name = "saf1761",
|
||||
.name = "saf1761otg",
|
||||
.methods = saf1761_otg_methods,
|
||||
.size = sizeof(struct saf1761_otg_softc),
|
||||
};
|
||||
|
||||
static devclass_t saf1761_otg_devclass;
|
||||
|
||||
DRIVER_MODULE(saf1761, simplebus, saf1761_otg_driver, saf1761_otg_devclass, 0, 0);
|
||||
MODULE_DEPEND(saf1761, usb, 1, 1, 1);
|
||||
DRIVER_MODULE(saf1761otg, simplebus, saf1761_otg_driver, saf1761_otg_devclass, 0, 0);
|
||||
MODULE_DEPEND(saf1761otg, usb, 1, 1, 1);
|
||||
|
||||
static int
|
||||
saf1761_otg_fdt_probe(device_t dev)
|
||||
|
@ -138,7 +138,7 @@ DRIVER_MODULE(usbus, octusb, usb_driver, usb_devclass, 0, 0);
|
||||
|
||||
/* Dual Mode Drivers */
|
||||
DRIVER_MODULE(usbus, dwcotg, usb_driver, usb_devclass, 0, 0);
|
||||
DRIVER_MODULE(usbus, saf1761, usb_driver, usb_devclass, 0, 0);
|
||||
DRIVER_MODULE(usbus, saf1761otg, usb_driver, usb_devclass, 0, 0);
|
||||
|
||||
/*------------------------------------------------------------------------*
|
||||
* usb_probe
|
||||
|
@ -40,3 +40,12 @@ device uart
|
||||
device miibus
|
||||
options DEVICE_POLLING
|
||||
|
||||
#
|
||||
# USB support
|
||||
#
|
||||
#options USB_DEBUG
|
||||
#options USB_REQ_DEBUG
|
||||
#options USB_VERBOSE
|
||||
device usb
|
||||
device saf1761otg
|
||||
|
||||
|
@ -44,7 +44,7 @@ MAKE+=" DEBUG_FLAGS+=-DUSB_REQ_DEBUG"
|
||||
|
||||
SUBDIR = usb
|
||||
SUBDIR += ${_dwc_otg} ehci ${_musb} ohci uhci xhci ${_uss820dci} ${_at91dci} \
|
||||
${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw}
|
||||
${_atmegadci} ${_avr32dci} ${_rsu} ${_rsufw} ${_saf1761otg}
|
||||
SUBDIR += ${_rum} ${_run} ${_runfw} ${_uath} upgt usie ural ${_zyd} ${_urtw}
|
||||
SUBDIR += ${_urtwn} ${_urtwnfw}
|
||||
SUBDIR += atp uhid ukbd ums udbp ufm uep wsp
|
||||
@ -96,4 +96,8 @@ _urtw= urtw
|
||||
_avr32dci= avr32dci
|
||||
.endif
|
||||
|
||||
.if ${MACHINE_CPUARCH} == "mips"
|
||||
_saf1761otg= saf1761otg
|
||||
.endif
|
||||
|
||||
.include <bsd.subdir.mk>
|
||||
|
@ -33,7 +33,7 @@ S= ${.CURDIR}/../../..
|
||||
|
||||
.PATH: $S/dev/usb/controller
|
||||
|
||||
KMOD= saf1761
|
||||
KMOD= saf1761otg
|
||||
SRCS= bus_if.h device_if.h usb_if.h \
|
||||
opt_bus.h opt_usb.h ofw_bus_if.h \
|
||||
saf1761_otg.c saf1761_otg_fdt.c \
|
Loading…
x
Reference in New Issue
Block a user