diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-11 11:56:37 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-12-16 15:34:46 +0100 |
commit | 63d8e5932146410f4cac691d32808a7302ea04ea (patch) | |
tree | a31fe98e6dce9d706531983e2ec4fd5e311ff45d /rtemsbsd/bsp/bsp-bsd-nexus-devices.c | |
parent | Add legacy MCF548X FEC interface driver (diff) | |
download | rtems-libbsd-63d8e5932146410f4cac691d32808a7302ea04ea.tar.bz2 |
Update legacy MCF548X FEC interface driver
Diffstat (limited to 'rtemsbsd/bsp/bsp-bsd-nexus-devices.c')
-rw-r--r-- | rtemsbsd/bsp/bsp-bsd-nexus-devices.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/rtemsbsd/bsp/bsp-bsd-nexus-devices.c b/rtemsbsd/bsp/bsp-bsd-nexus-devices.c index 4f1e1a1f..bf8aeefc 100644 --- a/rtemsbsd/bsp/bsp-bsd-nexus-devices.c +++ b/rtemsbsd/bsp/bsp-bsd-nexus-devices.c @@ -36,6 +36,7 @@ #include <bsp.h> #if defined(LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H) + #include <bsp/irq.h> static const rtems_bsd_device_resource smc0_res[] = { @@ -60,8 +61,25 @@ const rtems_bsd_device rtems_bsd_nexus_devices[] = { }; SYSINIT_DRIVER_REFERENCE(smc, nexus); + +#elif defined(__GENMCF548X_BSP_H) + +const rtems_bsd_device rtems_bsd_nexus_devices[] = { + { + .name = "fec", + .unit = 0 + }, { + .name = "fec", + .unit = 1 + } +}; + +SYSINIT_DRIVER_REFERENCE(fec, nexus); + #else + const rtems_bsd_device rtems_bsd_nexus_devices[0]; + #endif const size_t rtems_bsd_nexus_device_count = |