36#ifndef LIBBSP_ARM_LPC32XX_EMC_H
37#define LIBBSP_ARM_LPC32XX_EMC_H
61#define SDRAMCLK_CLOCKS_DIS BSP_BIT32(0)
62#define SDRAMCLK_DDR_MODE BSP_BIT32(1)
63#define SDRAMCLK_DDR_DQSIN_DELAY(val) BSP_FLD32(val, 2, 6)
64#define SDRAMCLK_RTC_TICK_EN BSP_BIT32(7)
65#define SDRAMCLK_SW_DDR_CAL BSP_BIT32(8)
66#define SDRAMCLK_CAL_DELAY BSP_BIT32(9)
67#define SDRAMCLK_SENSITIVITY_FACTOR(val) BSP_FLD32(val, 10, 12)
68#define SDRAMCLK_DCA_STATUS BSP_BIT32(13)
69#define SDRAMCLK_COMMAND_DELAY(val) BSP_FLD32(val, 14, 18)
70#define SDRAMCLK_SW_DDR_RESET BSP_BIT32(19)
71#define SDRAMCLK_PIN_1_FAST BSP_BIT32(20)
72#define SDRAMCLK_PIN_2_FAST BSP_BIT32(21)
73#define SDRAMCLK_PIN_3_FAST BSP_BIT32(22)
83#define EMC_AHB_PORT_BUFF_EN BSP_BIT32(0)
93#define EMC_AHB_TIMEOUT(val) BSP_FLD32(val, 0, 9)
103#define SDRAM_ADDR_ROW_16MB(val) ((uint32_t) (val) << 10)
104#define SDRAM_ADDR_ROW_32MB(val) ((uint32_t) (val) << 11)
105#define SDRAM_ADDR_ROW_64MB(val) ((uint32_t) (val) << 11)
107#define SDRAM_ADDR_BANK_16MB(ba1, ba0) \
108 (((uint32_t) (ba1) << 23) | ((uint32_t) (ba0) << 22))
109#define SDRAM_ADDR_BANK_32MB(ba1, ba0) \
110 (((uint32_t) (ba1) << 23) | ((uint32_t) (ba0) << 24))
111#define SDRAM_ADDR_BANK_64MB(ba1, ba0) \
112 (((uint32_t) (ba1) << 25) | ((uint32_t) (ba0) << 24))
114#define SDRAM_MODE_16MB(mode) \
115 (SDRAM_ADDR_BANK_16MB(0, 0) | SDRAM_ADDR_ROW_16MB(mode))
116#define SDRAM_MODE_32MB(mode) \
117 (SDRAM_ADDR_BANK_32MB(0, 0) | SDRAM_ADDR_ROW_32MB(mode))
118#define SDRAM_MODE_64MB(mode) \
119 (SDRAM_ADDR_BANK_64MB(0, 0) | SDRAM_ADDR_ROW_64MB(mode))
121#define SDRAM_EXTMODE_16MB(mode) \
122 (SDRAM_ADDR_BANK_16MB(1, 0) | SDRAM_ADDR_ROW_16MB(mode))
123#define SDRAM_EXTMODE_32MB(mode) \
124 (SDRAM_ADDR_BANK_32MB(1, 0) | SDRAM_ADDR_ROW_32MB(mode))
125#define SDRAM_EXTMODE_64MB(mode) \
126 (SDRAM_ADDR_BANK_64MB(1, 0) | SDRAM_ADDR_ROW_64MB(mode))
128#define SDRAM_MODE_BURST_LENGTH(val) BSP_FLD32(val, 0, 2)
129#define SDRAM_MODE_BURST_INTERLEAVE BSP_BIT32(3)
130#define SDRAM_MODE_CAS(val) BSP_FLD32(val, 4, 6)
131#define SDRAM_MODE_TEST_MODE(val) BSP_FLD32(val, 7, 8)
132#define SDRAM_MODE_WRITE_BURST_SINGLE_BIT BSP_BIT32(9)
134#define SDRAM_EXTMODE_PASR(val) BSP_FLD32(val, 0, 2)
135#define SDRAM_EXTMODE_DRIVER_STRENGTH(val) BSP_FLD32(val, 5, 6)
148 uint32_t sdramclk_ctrl;
149 uint32_t nop_time_in_us;
This header file defines the RTEMS Classic API.
Definition: deflate.c:114
Definition: intercom.c:87