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.
 
 
 
 
 
 

31 lines
798 B

  1. # utility fn's for Freescale i.MX series
  2. global TARGETNAME
  3. set TARGETNAME $_TARGETNAME
  4. # rewrite commands of the form below to arm11 mcr...
  5. # Data.Set c15:0x042f %long 0x40000015
  6. proc setc15 {regs value} {
  7. global TARGETNAME
  8. echo [format "set p15 0x%04x, 0x%08x" $regs $value]
  9. arm mcr 15 [expr ($regs>>12)&0x7] [expr ($regs>>0)&0xf] [expr ($regs>>4)&0xf] [expr ($regs>>8)&0x7] $value
  10. }
  11. proc imx3x_reset {} {
  12. # this reset script comes from the Freescale PDK
  13. #
  14. # http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=IMX35PDK
  15. echo "Target Setup: initialize DRAM controller and peripherals"
  16. # Data.Set c15:0x01 %long 0x00050078
  17. setc15 0x01 0x00050078
  18. echo "configuring CP15 for enabling the peripheral bus"
  19. # Data.Set c15:0x042f %long 0x40000015
  20. setc15 0x042f 0x40000015
  21. }