diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-05-19 12:11:36 +0000 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2011-05-19 12:11:36 +0000 |
commit | 76134c517da69752e4b04d6ad76f1f79db1123e3 (patch) | |
tree | 87de0554151fd658872d7b9f49e63bc2720d68a2 /c/src/lib/libbsp/arm/lpc32xx/include/emc.h | |
parent | 2011-05-19 Sebastian Huber <sebastian.huber@embedded-brains.de> (diff) | |
download | rtems-76134c517da69752e4b04d6ad76f1f79db1123e3.tar.bz2 |
2011-05-19 Sebastian Huber <sebastian.huber@embedded-brains.de>
* Makefile.am, preinstall.am: Install new header files.
* include/bsp.h, include/emc.h, include/lpc32xx.h, misc/emc.c: Update
for API changes.
Diffstat (limited to 'c/src/lib/libbsp/arm/lpc32xx/include/emc.h')
-rw-r--r-- | c/src/lib/libbsp/arm/lpc32xx/include/emc.h | 88 |
1 files changed, 9 insertions, 79 deletions
diff --git a/c/src/lib/libbsp/arm/lpc32xx/include/emc.h b/c/src/lib/libbsp/arm/lpc32xx/include/emc.h index e85702a776..1b67c04744 100644 --- a/c/src/lib/libbsp/arm/lpc32xx/include/emc.h +++ b/c/src/lib/libbsp/arm/lpc32xx/include/emc.h @@ -7,12 +7,13 @@ */ /* - * Copyright (c) 2010 - * embedded brains GmbH - * Obere Lagerstr. 30 - * D-82178 Puchheim - * Germany - * <rtems@embedded-brains.de> + * Copyright (c) 2010-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 @@ -24,23 +25,20 @@ #include <rtems.h> -#include <bsp/lpc32xx.h> +#include <bsp/lpc-emc.h> #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ /** - * @defgroup lpc32xx_emc EMC Support - * - * @ingroup lpc32xx + * @addtogroup lpc_emc * * @brief EMC Support * * @{ */ - /** * @name SDRAM Clock Control Register (SDRAMCLK_CTRL) * @@ -64,74 +62,6 @@ extern "C" { /** @} */ /** - * @name EMC Control Register (EMCControl) - * - * @{ - */ - -#define EMC_CTRL_EN BSP_BIT32(0) -#define EMC_CTRL_LOW_POWER BSP_BIT32(2) - -/** @} */ - -/** - * @name EMC Dynamic Memory Control Register (EMCDynamicControl) - * - * @{ - */ - -#define EMC_DYN_CTRL_CE BSP_BIT32(0) -#define EMC_DYN_CTRL_CS BSP_BIT32(1) -#define EMC_DYN_CTRL_SR BSP_BIT32(2) -#define EMC_DYN_CTRL_SRMCC BSP_BIT32(3) -#define EMC_DYN_CTRL_IMCC BSP_BIT32(4) -#define EMC_DYN_CTRL_MCC BSP_BIT32(5) -#define EMC_DYN_CTRL_I_MASK BSP_MSK32(7, 8) -#define EMC_DYN_CTRL_I_NORMAL BSP_FLD32(0x0, 7, 8) -#define EMC_DYN_CTRL_I_MODE BSP_FLD32(0x1, 7, 8) -#define EMC_DYN_CTRL_I_PALL BSP_FLD32(0x2, 7, 8) -#define EMC_DYN_CTRL_I_NOP BSP_FLD32(0x3, 7, 8) -#define EMC_DYN_CTRL_DP BSP_BIT32(9) - -/** @} */ - -/** - * @name EMC Dynamic Memory Read Configuration Register (EMCDynamicReadConfig) - * - * @{ - */ - -#define EMC_DYN_READ_CONFIG_SDR_STRAT(val) BSP_FLD32(val, 0, 1) -#define EMC_DYN_READ_CONFIG_SDR_POL_POS BSP_BIT32(4) -#define EMC_DYN_READ_CONFIG_DDR_STRAT(val) BSP_FLD32(val, 8, 9) -#define EMC_DYN_READ_CONFIG_DDR_POL_POS BSP_BIT32(12) - -/** @} */ - -/** - * @name EMC Dynamic Memory Configuration N Register (EMCDynamicConfigN) - * - * @{ - */ - -#define EMC_DYN_CFG_MD(val) BSP_FLD32(val, 0, 2) -#define EMC_DYN_CFG_AM(val) BSP_FLD32(val, 7, 14) -#define EMC_DYN_CFG_P(val) BSP_BIT32(20) - -/** @} */ - -/** - * @name EMC Dynamic Memory RAS and CAS Delay N Register (EMCDynamicRasCasN) - * - * @{ - */ - -#define EMC_DYN_RAS(val) BSP_FLD32(val, 0, 3) -#define EMC_DYN_CAS(val) BSP_FLD32(val, 7, 10) - -/** @} */ - -/** * @name EMC AHB Control Register (EMCAHBControl) * * @{ |