actux3.cfg 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # SPDX-License-Identifier: GPL-2.0-or-later
  2. # board config file for AcTux3/XBA IXP42x board
  3. # Date: 2010-12-16
  4. # Author: Michael Schwingen <michael@schwingen.org>
  5. reset_config trst_and_srst separate
  6. adapter srst delay 100
  7. jtag_ntrst_delay 100
  8. source [find target/ixp42x.cfg]
  9. $_TARGETNAME configure -work-area-phys 0x20000000 -work-area-size 0x10000 -work-area-backup 0
  10. $_TARGETNAME configure -event reset-init { init_actux3 }
  11. proc init_actux3 { } {
  12. ##########################################################################
  13. # setup expansion bus CS
  14. ##########################################################################
  15. mww 0xc4000000 0xbd113842 ;#CS0 : Flash, write enabled @0x50000000
  16. mww 0xc4000004 0x94d10013 ;#CS1
  17. mww 0xc4000008 0x95960003 ;#CS2
  18. mww 0xc400000c 0x00000000 ;#CS3
  19. mww 0xc4000010 0x80900003 ;#CS4
  20. mww 0xc4000014 0x9d520003 ;#CS5
  21. mww 0xc4000018 0x81860001 ;#CS6
  22. mww 0xc400001c 0x80900003 ;#CS7
  23. ixp42x_init_sdram $::IXP42x_SDRAM_16MB_4Mx16_1BANK 2100 3
  24. #mww 0xc4000020 0xffffee ;# CFG0: remove expansion bus boot flash mirror at 0x00000000
  25. ixp42x_set_bigendian
  26. flash probe 0
  27. }
  28. proc flash_boot { {FILE "/tftpboot/actux3/u-boot.bin"} } {
  29. echo "writing bootloader: $FILE"
  30. flash write_image erase $FILE 0x50000000 bin
  31. }
  32. set _FLASHNAME $_CHIPNAME.flash
  33. flash bank $_FLASHNAME cfi 0x50000000 0x400000 2 2 $_TARGETNAME
  34. init
  35. reset init
  36. # setup to debug u-boot in flash
  37. proc uboot_debug {} {
  38. gdb_breakpoint_override hard
  39. xscale vector_catch 0xFF
  40. xscale vector_table low 1 0xe59ff018
  41. xscale vector_table low 2 0xe59ff018
  42. xscale vector_table low 3 0xe59ff018
  43. xscale vector_table low 4 0xe59ff018
  44. xscale vector_table low 5 0xe59ff018
  45. xscale vector_table low 6 0xe59ff018
  46. xscale vector_table low 7 0xe59ff018
  47. xscale vector_table high 1 0xe59ff018
  48. xscale vector_table high 2 0xe59ff018
  49. xscale vector_table high 3 0xe59ff018
  50. xscale vector_table high 4 0xe59ff018
  51. xscale vector_table high 5 0xe59ff018
  52. xscale vector_table high 6 0xe59ff018
  53. xscale vector_table high 7 0xe59ff018
  54. }