stm32-sdram.h 737 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #ifndef DT_BINDINGS_STM32_SDRAM_H
  2. #define DT_BINDINGS_STM32_SDRAM_H
  3. #define NO_COL_8 0x0
  4. #define NO_COL_9 0x1
  5. #define NO_COL_10 0x2
  6. #define NO_COL_11 0x3
  7. #define NO_ROW_11 0x0
  8. #define NO_ROW_12 0x1
  9. #define NO_ROW_13 0x2
  10. #define MWIDTH_8 0x0
  11. #define MWIDTH_16 0x1
  12. #define MWIDTH_32 0x2
  13. #define BANKS_2 0x0
  14. #define BANKS_4 0x1
  15. #define CAS_1 0x1
  16. #define CAS_2 0x2
  17. #define CAS_3 0x3
  18. #define SDCLK_2 0x2
  19. #define RD_BURST_EN 0x1
  20. #define RD_BURST_DIS 0x0
  21. #define RD_PIPE_DL_0 0x0
  22. #define RD_PIPE_DL_1 0x1
  23. #define RD_PIPE_DL_2 0x2
  24. /* Timing = value +1 cycles */
  25. #define TMRD_2 (2 - 1)
  26. #define TXSR_6 (6 - 1)
  27. #define TRAS_4 (4 - 1)
  28. #define TRC_6 (6 - 1)
  29. #define TWR_2 (2 - 1)
  30. #define TRP_2 (2 - 1)
  31. #define TRCD_2 (2 - 1)
  32. #endif