dde_linux: USB networking for rpi
Even though the network adaptor gets initialized, networking is not functional yet.
This commit is contained in:
parent
c52b7d3076
commit
93c7e852e9
|
@ -1,4 +1,3 @@
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
usb/host/dwc_otg/dwc_otg/dwc_otg_adp.c \
|
usb/host/dwc_otg/dwc_otg/dwc_otg_adp.c \
|
||||||
usb/host/dwc_otg/dwc_otg/dwc_otg_attr.c \
|
usb/host/dwc_otg/dwc_otg/dwc_otg_attr.c \
|
||||||
|
@ -21,6 +20,8 @@ SRC_C += \
|
||||||
usb/host/dwc_otg/dwc_common_port/dwc_modpow.c \
|
usb/host/dwc_otg/dwc_common_port/dwc_modpow.c \
|
||||||
usb/host/dwc_otg/dwc_common_port/dwc_notifier.c
|
usb/host/dwc_otg/dwc_common_port/dwc_notifier.c
|
||||||
|
|
||||||
|
SRC_C += usbnet.c smsc95xx.c
|
||||||
|
|
||||||
include $(REP_DIR)/lib/mk/usb.inc
|
include $(REP_DIR)/lib/mk/usb.inc
|
||||||
include $(REP_DIR)/lib/mk/arm/usb.inc
|
include $(REP_DIR)/lib/mk/arm/usb.inc
|
||||||
|
|
||||||
|
|
|
@ -17,6 +17,7 @@
|
||||||
|
|
||||||
/* emulation */
|
/* emulation */
|
||||||
#include <platform/platform.h>
|
#include <platform/platform.h>
|
||||||
|
#include <platform.h>
|
||||||
#include <lx_emul.h>
|
#include <lx_emul.h>
|
||||||
|
|
||||||
/* dwc-otg */
|
/* dwc-otg */
|
||||||
|
@ -180,11 +181,17 @@ struct tvec_base boot_tvec_bases;
|
||||||
*******************/
|
*******************/
|
||||||
|
|
||||||
extern "C" void module_dwc_otg_driver_init();
|
extern "C" void module_dwc_otg_driver_init();
|
||||||
|
extern "C" int module_usbnet_init();
|
||||||
|
extern "C" int module_smsc95xx_driver_init();
|
||||||
|
|
||||||
struct Services;
|
void platform_hcd_init(Services *services)
|
||||||
|
|
||||||
void platform_hcd_init(Services *)
|
|
||||||
{
|
{
|
||||||
|
/* register network */
|
||||||
|
if (services->nic) {
|
||||||
|
module_usbnet_init();
|
||||||
|
module_smsc95xx_driver_init();
|
||||||
|
}
|
||||||
|
|
||||||
/* disable split-enable fix, otherwise, fiq_fix will be implied */
|
/* disable split-enable fix, otherwise, fiq_fix will be implied */
|
||||||
fiq_split_enable = false;
|
fiq_split_enable = false;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user