You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

76 lines
1.9 KiB

  1. # The IMX27 ADS eval board has a single IMX27 chip
  2. # Note: tested on IMX27ADS Board REV-2.6 and REV-2.8
  3. source [find target/imx27.cfg]
  4. $_TARGETNAME configure -event gdb-attach { reset init }
  5. $_TARGETNAME configure -event reset-init { imx27ads_init }
  6. # The IMX27 ADS board has a NOR flash on CS0
  7. flash_bank cfi 0xc0000000 0x00200000 2 2 0
  8. proc imx27ads_init { } {
  9. # This setup puts RAM at 0xA0000000
  10. # reset the board correctly
  11. reset run
  12. reset halt
  13. mww 0x10000000 0x20040304
  14. mww 0x10020000 0x00000000
  15. mww 0x10000004 0xDFFBFCFB
  16. mww 0x10020004 0xFFFFFFFF
  17. sleep 100
  18. # ========================================
  19. # Configure DDR on CSD0 -- initial reset
  20. # ========================================
  21. mww 0xD8001010 0x00000008
  22. # ========================================
  23. # Configure PSRAM on CS5
  24. # ========================================
  25. mww 0xd8002050 0x0000dcf6
  26. mww 0xd8002054 0x444a4541
  27. mww 0xd8002058 0x44443302
  28. # ========================================
  29. # Configure16 bit NorFlash on CS0
  30. # ========================================
  31. mww 0xd8002000 0x0000CC03
  32. mww 0xd8002004 0xa0330D01
  33. mww 0xd8002008 0x00220800
  34. # ========================================
  35. # Configure CPLD on CS4
  36. # ========================================
  37. mww 0xd8002040 0x0000DCF6
  38. mww 0xd8002044 0x444A4541
  39. mww 0xd8002048 0x44443302
  40. # ========================================
  41. # Configure DDR on CSD0 -- wait 5000 cycle
  42. # ========================================
  43. mww 0x10027828 0x55555555
  44. mww 0x10027830 0x55555555
  45. mww 0x10027834 0x55555555
  46. mww 0x10027838 0x00005005
  47. mww 0x1002783C 0x15555555
  48. mww 0xD8001010 0x00000004
  49. mww 0xD8001004 0x00795729
  50. mww 0xD8001000 0x92200000
  51. mww 0xA0000F00 0x0
  52. mww 0xD8001000 0xA2200000
  53. mww 0xA0000F00 0x0
  54. mww 0xA0000F00 0x0
  55. mww 0xD8001000 0xB2200000
  56. mwb 0xA0000033 0xFF
  57. mwb 0xA1000000 0xAA
  58. mww 0xD8001000 0x82228085
  59. }