drv_sdram.h 728 B

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (c) 2006-2018, 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. #ifndef __DRV_SDRAM_H__
  11. #define __DRV_SDRAM_H__
  12. #include <board.h>
  13. #define SDRAM_CONFIG_16BIT //use the 16 bitSDRAM
  14. //#define SDRAM_CONFIG_32BIT //use the 32 bitSDRAM
  15. #ifdef SDRAM_CONFIG_16BIT
  16. #define SDRAM_SIZE 0x2000000 // 256Mbit
  17. #elif defined SDRAM_CONFIG_32BIT //
  18. #define SDRAM_SIZE 0x4000000 // 512Mbit
  19. #else
  20. error Wrong SDRAM config, check ex_sdram.h
  21. #endif
  22. #define SDRAM_BASE 0xA0000000 /* CS0 */
  23. void lpc_sdram_hw_init(void);
  24. #endif