[rtems commit] bsp/mpc55xx: Limit flash support to MPC55[56]X

Sebastian Huber sebh at rtems.org
Mon Aug 25 07:02:40 UTC 2014


Module:    rtems
Branch:    master
Commit:    0a314839012ab765a70df05eaadc4dba7440223b
Changeset: http://git.rtems.org/rtems/commit/?id=0a314839012ab765a70df05eaadc4dba7440223b

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Aug 25 09:09:45 2014 +0200

bsp/mpc55xx: Limit flash support to MPC55[56]X

---

 .../libcpu/powerpc/mpc55xx/misc/flash_support.c    |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c b/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
index b286b51..74bbd39 100644
--- a/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
+++ b/c/src/lib/libcpu/powerpc/mpc55xx/misc/flash_support.c
@@ -38,7 +38,7 @@
 #include <libcpu/powerpc-utility.h>
 #include <rtems/powerpc/registers.h>
 
-#if MPC55XX_CHIP_TYPE / 100 == 55
+#if MPC55XX_CHIP_FAMILY == 555 || MPC55XX_CHIP_FAMILY == 556
 
 /* Set up the memory ranges for the flash on
  * the MPC5553, MPC5554, MPC5566 and MPC5567.



More information about the vc mailing list