[rtems-libbsd commit] nexus-devices: Fix for QorIQ T variants

Sebastian Huber sebh at rtems.org
Thu Mar 26 13:05:46 UTC 2015


Module:    rtems-libbsd
Branch:    master
Commit:    024e064449ed7d80a96fd40c91a9ab1f555ef079
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=024e064449ed7d80a96fd40c91a9ab1f555ef079

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Mar 17 08:55:47 2015 +0100

nexus-devices: Fix for QorIQ T variants

---

 rtemsbsd/include/bsp/nexus-devices.h | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/rtemsbsd/include/bsp/nexus-devices.h b/rtemsbsd/include/bsp/nexus-devices.h
index 9cd1da7..4d6e767 100644
--- a/rtemsbsd/include/bsp/nexus-devices.h
+++ b/rtemsbsd/include/bsp/nexus-devices.h
@@ -50,7 +50,7 @@ static const rtems_bsd_device_resource smc0_res[] = {
 };
 
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(smc, 0, RTEMS_ARRAY_SIZE(smc0_res),
-   &smc0_res[0]);
+    &smc0_res[0]);
 
 #elif defined(__GENMCF548X_BSP_H)
 
@@ -69,7 +69,7 @@ static const rtems_bsd_device_resource zy7_slcr0_res[] = {
 };
 
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(zy7_slcr, 0, RTEMS_ARRAY_SIZE(zy7_slcr0_res),
-   &zy7_slcr0_res[0]);
+    &zy7_slcr0_res[0]);
 
 static const rtems_bsd_device_resource cgem0_res[] = {
 	{
@@ -84,12 +84,14 @@ static const rtems_bsd_device_resource cgem0_res[] = {
 };
 
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(cgem, 0, RTEMS_ARRAY_SIZE(cgem0_res),
-   &cgem0_res[0]);
+    &cgem0_res[0]);
 
 SYSINIT_DRIVER_REFERENCE(e1000phy, miibus);
 
 #elif defined(LIBBSP_POWERPC_QORIQ_BSP_H)
 
+#if !QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT)
+
 #include <bsp/irq.h>
 
 static const rtems_bsd_device_resource tsec0_res[] = {
@@ -113,6 +115,8 @@ static const rtems_bsd_device_resource tsec0_res[] = {
 };
 
 RTEMS_BSD_DEFINE_NEXUS_DEVICE(tsec, 0, RTEMS_ARRAY_SIZE(tsec0_res),
-   &tsec0_res[0]);
+    &tsec0_res[0]);
+
+#endif /* !QORIQ_CHIP_IS_T_VARIANT(QORIQ_CHIP_VARIANT) */
 
 #endif




More information about the vc mailing list