Advertisement
Guest User

Untitled

a guest
Nov 19th, 2014
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. #include "common.h"
  3. #include <asm/arch/dram.h>
  4.  
  5. static struct dram_para dram_para = {
  6. .clock = 432,
  7. .type = 3,
  8. .rank_num = 1,
  9. .density = 4096,
  10. .io_width = 16,
  11. .bus_width = 16,
  12. .cas = 9,
  13. .zq = 0x56b9687b,
  14. .odt_en = 0,
  15. .size = 512, /* dram_size in MiB, added manually */
  16. .tpr0 = 0x42d899b7,
  17. .tpr1 = 0xa090,
  18. .tpr2 = 0x22a00,
  19. .tpr3 = 0x00,
  20. .tpr4 = 0x00,
  21. .tpr5 = 0x00,
  22. .emr1 = 0x04,
  23. .emr2 = 0x10,
  24. .emr3 = 0x00,
  25. };
  26.  
  27. unsigned long sunxi_dram_init(void)
  28. {
  29. return dramc_init(&dram_para);
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement