summaryrefslogtreecommitdiffstats
path: root/rtemsbsd/include/bsp/nexus-devices.h
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2015-03-26 15:39:18 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-04-01 09:15:30 +0200
commitaee6864330998a6952c4a4dad6a5395089df1613 (patch)
tree9393a51dd919c0ef7be5f9997e04a72262706980 /rtemsbsd/include/bsp/nexus-devices.h
parentif_dwc: Checksum offload (diff)
downloadrtems-libbsd-aee6864330998a6952c4a4dad6a5395089df1613.tar.bz2
if_dwc: Add Altera Cyclone V support
Diffstat (limited to 'rtemsbsd/include/bsp/nexus-devices.h')
-rw-r--r--rtemsbsd/include/bsp/nexus-devices.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index f615e4e4..fcd8775f 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -90,6 +90,26 @@ SYSINIT_DRIVER_REFERENCE(e1000phy, miibus);
#elif defined(LIBBSP_ARM_ALTERA_CYCLONE_V_BSP_H)
+#include <bsp/socal/hps.h>
+#include <bsp/irq.h>
+
+static const rtems_bsd_device_resource dwc0_res[] = {
+ {
+ .type = RTEMS_BSD_RES_MEMORY,
+ .start_request = 0,
+ .start_actual = (unsigned long)ALT_EMAC1_ADDR
+ }, {
+ .type = RTEMS_BSD_RES_IRQ,
+ .start_request = 0,
+ .start_actual = ALT_INT_INTERRUPT_EMAC1_IRQ
+ }
+};
+
+RTEMS_BSD_DEFINE_NEXUS_DEVICE(dwc, 0, RTEMS_ARRAY_SIZE(dwc0_res),
+ &dwc0_res[0]);
+
+SYSINIT_DRIVER_REFERENCE(micphy, miibus);
+
RTEMS_BSD_DEFINE_NEXUS_DEVICE(dw_mmc, 0, 0, NULL);
SYSINIT_DRIVER_REFERENCE(mmc, dw_mmc);