36#ifndef LIBBSP_ARM_SHARED_LPC_EMC_H
37#define LIBBSP_ARM_SHARED_LPC_EMC_H
62#define EMC_CTRL_E BSP_BIT32(0)
63#define EMC_CTRL_M BSP_BIT32(0)
64#define EMC_CTRL_L BSP_BIT32(2)
74#define EMC_DYN_CTRL_CE BSP_BIT32(0)
75#define EMC_DYN_CTRL_CS BSP_BIT32(1)
76#define EMC_DYN_CTRL_SR BSP_BIT32(2)
77#define EMC_DYN_CTRL_SRMCC BSP_BIT32(3)
78#define EMC_DYN_CTRL_IMCC BSP_BIT32(4)
79#define EMC_DYN_CTRL_MCC BSP_BIT32(5)
80#define EMC_DYN_CTRL_I_MASK BSP_MSK32(7, 8)
81#define EMC_DYN_CTRL_I_NORMAL BSP_FLD32(0x0, 7, 8)
82#define EMC_DYN_CTRL_I_MODE BSP_FLD32(0x1, 7, 8)
83#define EMC_DYN_CTRL_I_PALL BSP_FLD32(0x2, 7, 8)
84#define EMC_DYN_CTRL_I_NOP BSP_FLD32(0x3, 7, 8)
85#define EMC_DYN_CTRL_DP BSP_BIT32(13)
95#define EMC_DYN_READ_CONFIG_SDR_STRAT(val) BSP_FLD32(val, 0, 1)
96#define EMC_DYN_READ_CONFIG_SDR_POL_POS BSP_BIT32(4)
97#define EMC_DYN_READ_CONFIG_DDR_STRAT(val) BSP_FLD32(val, 8, 9)
98#define EMC_DYN_READ_CONFIG_DDR_POL_POS BSP_BIT32(12)
108#define EMC_DYN_CFG_MD_LPC24XX(val) BSP_FLD32(val, 3, 4)
109#define EMC_DYN_CFG_MD_LPC32XX(val) BSP_FLD32(val, 0, 2)
110#define EMC_DYN_CFG_AM(val) BSP_FLD32(val, 7, 14)
111#define EMC_DYN_CFG_B BSP_BIT32(19)
112#define EMC_DYN_CFG_P BSP_BIT32(20)
122#define EMC_DYN_RASCAS_RAS(val) BSP_FLD32(val, 0, 3)
123#define EMC_DYN_RASCAS_CAS(val, half) BSP_FLD32(((val) << 1) | (half), 7, 10)
127#define EMC_DYN_CHIP_COUNT 4
129#define EMC_STATIC_CHIP_COUNT 4
134 uint32_t reserved_0 [6];
145 uint32_t reserved_0 [1];
152 uint32_t reserved_0 [5];
153 uint32_t dynamiccontrol;
154 uint32_t dynamicrefresh;
155 uint32_t dynamicreadconfig;
158 uint32_t dynamictras;
159 uint32_t dynamictsrex;
160 uint32_t dynamictapr;
161 uint32_t dynamictdal;
164 uint32_t dynamictrfc;
165 uint32_t dynamictxsr;
166 uint32_t dynamictrrd;
167 uint32_t dynamictmrd;
168 uint32_t dynamictcdlr;
169 uint32_t reserved_3 [8];
170 uint32_t staticextendedwait;
171 uint32_t reserved_4 [31];
173 uint32_t reserved_5 [32];
This header file provides utility macros for BSPs.
Definition: deflate.c:114
Definition: intercom.c:87
Definition: lpc-emc.h:131
Definition: lpc-emc.h:137
Definition: lpc-emc.h:148