Skip to content
  • Oleksij Rempel's avatar
    mips_m4k: add optional reset handler · 16e95146
    Oleksij Rempel authored
    
    
    In some cases by using SRST we can't halt CPU early enough. And
    option PrRst is not available too. In this case the only way is
    to set BOOT flag over EJTAG and reset CPU or SoC from CPU itself.
    For example by writing to some reset register.
    
    This patch is providing possibility to use user defined reset-assert
    handler which will be enabled only in case SRST is disabled. It is
    needed to be able switch between two different reset variants on run
    time.
    
    Change-Id: I6ef98f1871ea657115877190f7cc7a5e8f3233e4
    Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
    Reviewed-on: http://openocd.zylin.com/4404
    
    
    Tested-by: jenkins
    Reviewed-by: default avatarPaul Fertser <fercerpav@gmail.com>
    16e95146