From 63d8e5932146410f4cac691d32808a7302ea04ea Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 11 Dec 2013 11:56:37 +0100 Subject: Update legacy MCF548X FEC interface driver --- rtemsbsd/bsp/bsp-bsd-nexus-devices.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'rtemsbsd/bsp/bsp-bsd-nexus-devices.c') 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 #if defined(LIBBSP_ARM_REALVIEW_PBX_A9_BSP_H) + #include 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 = -- cgit v1.2.3