Merge pull request #1348 from andrewb1999/master

Add reset config to allow upload to PS region
This commit is contained in:
litghost 2020-06-08 09:58:48 -07:00 committed by GitHub
commit 9ad509e31c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 0 deletions

View File

@ -58,3 +58,14 @@ proc zynqpl_program {tap} {
irscan $tap $XC7_BYPASS
runtest 2000
}
proc zynqpl_reset_release {target} {
# Unlock SLCR
$target mww 0xf8000008 0xdf0d
# Enable level shifters, both PL-PS and PS-PL
$target mww 0xf8000900 0xF
# Release FPGA reset
$target mww 0xf8000240 0x0
# Lock SLCR
$target mww 0xf8000004 0x767b
}