diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-11-08 10:39:46 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-11-08 10:39:46 +0000 |
commit | 4a6cc2a4b35e2cb069cb273b7e098366c7bae059 (patch) | |
tree | b08f1c8e32e76029b8442e1ab27e173a3565009b /c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c | |
parent | 2011-11-08 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-4a6cc2a4b35e2cb069cb273b7e098366c7bae059.tar.bz2 |
2011-11-08 Sebastian Huber <sebastian.huber@embedded-brains.de>
* include/lpc17xx.h: New file.
* Makefile.am, preinstall.am: Reflect change above. Update due to API
changes.
* configure.ac, console/console-config.c, include/bsp.h, include/io.h,
include/irq.h, include/lcd.h, include/lpc-clock-config.h,
include/lpc24xx.h, include/start-config.h, irq/irq-dispatch.c,
irq/irq.c, misc/bspidle.c, misc/io.c, misc/lcd.c, misc/restart.c,
misc/system-clocks.c, ssp/ssp.c, startup/bspreset.c,
startup/bspstart.c, startup/bspstarthooks.c,
startup/start-config-emc-dynamic.c, startup/start-config-emc-static.c,
startup/start-config-pinsel.c: Basic support for LPC17XX. New memory
configurations for W9825G2JB75I, IS42S32800B, and SST39VF3201.
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c b/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c index 2efcacd3ba..c0c541038d 100644 --- a/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c +++ b/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c @@ -25,9 +25,9 @@ #include <bsp/start-config.h> #include <bsp/lpc24xx.h> -const BSP_START_DATA_SECTION lpc24xx_emc_static_chip_config +BSP_START_DATA_SECTION const lpc24xx_emc_static_chip_config lpc24xx_start_config_emc_static_chip [] = { -#ifdef LPC24XX_EMC_NUMONYX +#if defined(LPC24XX_EMC_NUMONYX_M29W160E) /* * Static Memory 1: Numonyx M29W160EB * @@ -66,10 +66,40 @@ const BSP_START_DATA_SECTION lpc24xx_emc_static_chip_config .waitrun = 0xf } } -#endif /* LPC24XX_EMC_NUMONYX */ +#elif defined(LPC24XX_EMC_SST39VF3201) + /* Static Memory 1: SST SST39VF3201 at 51612800Hz (tCK = 19.4ns) */ + { + .chip_select = (volatile lpc_emc_static *) EMC_STA_BASE_0, + .config = { + /* + * 16 bit, page mode disabled, active LOW chip select, extended wait + * disabled, writes not protected, byte lane state LOW/LOW. + */ + .config = 0x81, + + /* (n + 1) clock cycles -> 19.4ns >= 0ns (tCS, tAS) */ + .waitwen = 0, + + /* (n + 1) clock cycles -> 19.4ns >= 0ns (tOES) */ + .waitoen = 0, + + /* (n + 1) clock cycles -> 77.5ns >= 70ns (tRC) */ + .waitrd = 2, + + /* (n + 1) clock cycles -> 77.5ns >= 70ns (tRC) */ + .waitpage = 2, + + /* (n + 2) clock cycles -> 38.8ns >= 20ns (tCHZ, TOHZ) */ + .waitwr = 0, + + /* (n + 1) clock cycles -> 38.8ns >= 20ns (tCHZ, TOHZ) */ + .waitrun = 1 + } + } +#endif }; -const BSP_START_DATA_SECTION size_t +BSP_START_DATA_SECTION const size_t lpc24xx_start_config_emc_static_chip_count = sizeof(lpc24xx_start_config_emc_static_chip) / sizeof(lpc24xx_start_config_emc_static_chip [0]); |