imx.cfg 850 B

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