dde_linux: USB networking for rpi

Even though the network adaptor gets initialized, networking is not
functional yet.
This commit is contained in:
Norman Feske 2013-09-15 17:43:26 +02:00
parent c52b7d3076
commit 93c7e852e9
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,3 @@
SRC_C += \
usb/host/dwc_otg/dwc_otg/dwc_otg_adp.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_notifier.c
SRC_C += usbnet.c smsc95xx.c
include $(REP_DIR)/lib/mk/usb.inc
include $(REP_DIR)/lib/mk/arm/usb.inc

View File

@ -17,6 +17,7 @@
/* emulation */
#include <platform/platform.h>
#include <platform.h>
#include <lx_emul.h>
/* dwc-otg */
@ -180,11 +181,17 @@ struct tvec_base boot_tvec_bases;
*******************/
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 *)
void platform_hcd_init(Services *services)
{
/* register network */
if (services->nic) {
module_usbnet_init();
module_smsc95xx_driver_init();
}
/* disable split-enable fix, otherwise, fiq_fix will be implied */
fiq_split_enable = false;