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.
 
 
 
 
 
 

66 lines
1.6 KiB

  1. # Target Configuration for the Uptech 2410 board.
  2. # This configuration hould also work on smdk2410, but I havn't tested it yet.
  3. # Author: xionglingfeng@Gmail.com
  4. source [find target/samsung_s3c2410.cfg]
  5. $_TARGETNAME configure -event reset-init { uptech2410_init }
  6. $_TARGETNAME configure -event gdb-attach { reset init }
  7. proc init_pll_sdram { } {
  8. #echo "---------- Initializing PLL and SDRAM ---------"
  9. #watchdog timer disable
  10. mww phys 0x53000000 0x00000000
  11. #disable all interrupts
  12. mww phys 0x4a000008 0xffffffff
  13. #disable all sub-interrupts
  14. mww phys 0x4a00001c 0x000007ff
  15. #clear all source pending bits
  16. mww phys 0x4a000000 0xffffffff
  17. #clear all sub-source pending bits
  18. mww phys 0x4a000018 0x000007ff
  19. #clear interrupt pending bit
  20. mww phys 0x4a000010 0xffffffff
  21. #PLL locktime counter
  22. mww phys 0x4c000000 0x00ffffff
  23. #Fin=12MHz Fout=202.8MHz
  24. #mww phys 0x4c000004 0x000a1031
  25. #FCLK:HCLK:PCLK = 1:2:4
  26. mww phys 0x4c000014 0x00000003
  27. mww phys 0x48000000 0x11111110
  28. mww phys 0x48000004 0x00007FFC
  29. mww phys 0x48000008 0x00007FFC
  30. mww phys 0x4800000c 0x00000700
  31. mww phys 0x48000010 0x00000700
  32. mww phys 0x48000014 0x00002E50
  33. mww phys 0x48000018 0x00002E50
  34. mww phys 0x4800001c 0x00018005
  35. mww phys 0x48000020 0x00018005
  36. mww phys 0x48000024 0x008c04e9
  37. mww phys 0x48000028 0x000000b2
  38. mww phys 0x4800002c 0x00000030
  39. mww phys 0x48000030 0x00000030
  40. }
  41. proc uptech2410_init { } {
  42. init_pll_sdram
  43. #echo "---------- Probing Nand flash ----------"
  44. nand probe 0
  45. #echo "---------- Enable some functions ----------"
  46. }
  47. set _NANDNAME $_CHIPNAME.nand
  48. nand device $_NANDNAME s3c2410 $_TARGETNAME