[rtems commit] bsp/lpc24xx: Use RAS and CAS of 2 for IS42S32800B

Sebastian Huber sebh at rtems.org
Fri Jun 15 13:58:31 UTC 2012


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Wed Jun 13 13:54:36 2012 +0200

bsp/lpc24xx: Use RAS and CAS of 2 for IS42S32800B

---

 .../arm/lpc24xx/startup/start-config-emc-dynamic.c |   20 ++------------------
 1 files changed, 2 insertions(+), 18 deletions(-)

diff --git a/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-dynamic.c b/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-dynamic.c
index a67f07c..3637a92 100644
--- a/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-dynamic.c
+++ b/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-dynamic.c
@@ -241,7 +241,8 @@ BSP_START_DATA_SECTION const lpc24xx_emc_dynamic_chip_config
     .mode = 0xa0000000 | (0x23 << (1 + 2 + 8))
   }
 #elif defined(LPC24XX_EMC_W9825G2JB75I) \
-  || defined(LPC24XX_EMC_IS42S32800D7)
+  || defined(LPC24XX_EMC_IS42S32800D7) \
+  || defined(LPC24XX_EMC_IS42S32800B)
   {
     .chip_select = (volatile lpc_emc_dynamic *) &EMC_DYN_CFG0,
 
@@ -261,23 +262,6 @@ BSP_START_DATA_SECTION const lpc24xx_emc_dynamic_chip_config
     .rascas = EMC_DYN_RASCAS_RAS(3) | EMC_DYN_RASCAS_CAS(3, 0),
     .mode = 0xa0000000 | (0x33 << 12)
   }
-#elif defined(LPC24XX_EMC_IS42S32800B)
-  {
-    .chip_select = (volatile lpc_emc_dynamic *) &EMC_DYN_CFG0,
-
-    /* 256MBit, 8Mx32, 4 banks, row = 12, column = 9, RBC */
-    .config = 0x4480,
-
-    #if LPC24XX_EMCCLK == 72000000U
-      .rascas = EMC_DYN_RASCAS_RAS(3) | EMC_DYN_RASCAS_CAS(3, 0),
-      .mode = 0xa0000000 | (0x32 << (2 + 2 + 9))
-    #elif LPC24XX_EMCCLK == 60000000U
-      .rascas = EMC_DYN_RASCAS_RAS(2) | EMC_DYN_RASCAS_CAS(2, 0),
-      .mode = 0xa0000000 | (0x22 << (2 + 2 + 9))
-    #else
-      #error "unexpected EMCCLK"
-    #endif
-  }
 #endif
 };
 




More information about the vc mailing list