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.
 
 
 
 
 
 

43 lines
1.0 KiB

  1. ################################################################################
  2. # Author: Michael Trensch (MTrensch@googlemail.com)
  3. ################################################################################
  4. source [find target/hilscher_netx500.cfg]
  5. reset_config trst_and_srst
  6. adapter_nsrst_delay 500
  7. jtag_ntrst_delay 500
  8. $_TARGETNAME configure -work-area-virt 0x1000 -work-area-phys 0x1000 -work-area-size 0x4000 -work-area-backup 1
  9. $_TARGETNAME configure -event reset-init {
  10. halt
  11. arm7_9 fast_memory_access enable
  12. arm7_9 dcc_downloads enable
  13. sleep 100
  14. sdram_fix
  15. puts "Configuring SDRAM controller for MT48LC2M32 (8MB) "
  16. mww 0x00100140 0
  17. mww 0x00100144 0x03C23251
  18. mww 0x00100140 0x030D0001
  19. puts "Configuring SRAM nCS0 for 90ns Par. Flash (x16)"
  20. mww 0x00100100 0x01010008
  21. flash probe 0
  22. }
  23. #####################
  24. # Flash configuration
  25. #####################
  26. #flash bank <name> <driver> <base> <size> <chip width> <bus width> <target#>
  27. flash bank parflash cfi 0xC0000000 0x01000000 2 2 $_TARGETNAME
  28. init
  29. reset init