summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 10:35:35 +0200
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-04-20 13:52:14 +0200
commit99648958668d3a33ee57974479b36201fe303f34 (patch)
tree6f27ea790e2823c6156e71219a4f54680263fac6 /c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c
parentbsps: Move start files to bsps (diff)
downloadrtems-99648958668d3a33ee57974479b36201fe303f34.tar.bz2
bsps: Move startup files to bsps
Adjust build support files to new directory layout. This patch is a part of the BSP source reorganization. Update #3285.
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.c133
1 files changed, 0 insertions, 133 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
deleted file mode 100644
index 4a427664f6..0000000000
--- a/c/src/lib/libbsp/arm/lpc24xx/startup/start-config-emc-static.c
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * @file
- *
- * @ingroup lpc24xx
- *
- * @brief BSP start EMC static memory configuration.
- */
-
-/*
- * Copyright (c) 2011 embedded brains GmbH. All rights reserved.
- *
- * embedded brains GmbH
- * Obere Lagerstr. 30
- * 82178 Puchheim
- * Germany
- * <rtems@embedded-brains.de>
- *
- * The license and distribution terms for this file may be
- * found in the file LICENSE in this distribution or at
- * http://www.rtems.org/license/LICENSE.
- */
-
-#include <bsp/start-config.h>
-#include <bsp/lpc24xx.h>
-
-BSP_START_DATA_SECTION const lpc24xx_emc_static_chip_config
- lpc24xx_start_config_emc_static_chip [] = {
-#if defined(LPC24XX_EMC_M29W160E)
- /*
- * Static Memory 1: Numonyx M29W160EB
- *
- * 1 clock cycle = 1/72MHz = 13.9ns
- */
- {
- .chip_select = (volatile lpc_emc_static *) EMC_STA_BASE_1,
- .config = {
- /*
- * 16 bit, page mode disabled, active LOW chip select, extended wait
- * disabled, writes not protected, byte lane state LOW/LOW (!).
- */
- .config = 0x81,
-
- /* 1 clock cycles delay from the chip select 1 to the write enable */
- .waitwen = 0,
-
- /*
- * 0 clock cycles delay from the chip select 1 or address change
- * (whichever is later) to the output enable
- */
- .waitoen = 0,
-
- /* 7 clock cycles delay from the chip select 1 to the read access */
- .waitrd = 0x6,
-
- /*
- * 32 clock cycles delay for asynchronous page mode sequential accesses
- */
- .waitpage = 0x1f,
-
- /* 5 clock cycles delay from the chip select 1 to the write access */
- .waitwr = 0x3,
-
- /* 16 bus turnaround cycles */
- .waitrun = 0xf
- }
- }
-#elif defined(LPC24XX_EMC_M29W320E70)
- /* Static Memory 0: M29W320E70 */
- {
- .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,
-
- /* 30ns (tWHWL) */
- .waitwen = LPC24XX_PS_TO_EMCCLK(30000, 1),
-
- /* 0ns */
- .waitoen = LPC24XX_PS_TO_EMCCLK(0, 1),
-
- /* 70ns (tAVQV, tELQV) */
- .waitrd = LPC24XX_PS_TO_EMCCLK(70000, 1),
-
- /* 70ns (tAVQV, tELQV) */
- .waitpage = LPC24XX_PS_TO_EMCCLK(70000, 1),
-
- /* max(30ns (tWHWL) + 45ns (tWLWH), 70ns (tAVAV)) */
- .waitwr = LPC24XX_PS_TO_EMCCLK(75000, 2),
-
- /* 25ns (tEHQZ) */
- .waitrun = LPC24XX_PS_TO_EMCCLK(25000, 1)
- }
- }
-#elif defined(LPC24XX_EMC_SST39VF3201)
- /* Static Memory 0: SST39VF3201 */
- {
- .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,
-
- /* 0ns (tCS, tAS) */
- .waitwen = LPC24XX_PS_TO_EMCCLK(0, 1),
-
- /* 0ns (tOES) */
- .waitoen = LPC24XX_PS_TO_EMCCLK(0, 1),
-
- /* 70ns (tRC) */
- .waitrd = LPC24XX_PS_TO_EMCCLK(70000, 1),
-
- /* 70ns (tRC) */
- .waitpage = LPC24XX_PS_TO_EMCCLK(70000, 1),
-
- /* 20ns (tCHZ, TOHZ) */
- .waitwr = LPC24XX_PS_TO_EMCCLK(20000, 2),
-
- /* 20ns (tCHZ, TOHZ) */
- .waitrun = LPC24XX_PS_TO_EMCCLK(20000, 1)
- }
- }
-#endif
-};
-
-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]);