1 /* 2 * Copyright (c) 2006-2021, RT-Thread Development Team 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Change Logs: 7 * Date Author Notes 8 * 2013-05-19 Bernard The first version for LPC40xx 9 */ 10 11 #ifndef DRV_SDRAM_H__ 12 #define DRV_SDRAM_H__ 13 14 #include <board.h> 15 16 #define SDRAM_CONFIG_16BIT /* use the 16 bitSDRAM */ 17 //#define SDRAM_CONFIG_32BIT /* use the 32 bitSDRAM */ 18 19 #ifdef SDRAM_CONFIG_16BIT 20 #define EXT_SDRAM_SIZE 0x2000000 /* 256Mbit */ 21 #elif defined SDRAM_CONFIG_32BIT 22 #define EXT_SDRAM_SIZE 0x4000000 /* 512Mbit */ 23 #else 24 error Wrong SDRAM config, check ex_sdram.h 25 #endif 26 27 #define EXT_SDRAM_BEGIN 0xA0000000 /* CS0 */ 28 #define EXT_SDRAM_END (EXT_SDRAM_BEGIN + EXT_SDRAM_SIZE) 29 30 void rt_hw_sdram_init(void); 31 32 #endif /* DRV_SDRAM_H__ */ 33