summaryrefslogtreecommitdiff
path: root/src/include/device/mmio.h
diff options
context:
space:
mode:
authorSubrata Banik <subratabanik@google.com>2024-01-26 19:09:15 +0530
committerSubrata Banik <subratabanik@google.com>2024-01-27 06:43:57 +0000
commit2820d2a327b0eef6bce16119cb683f4db75107a0 (patch)
tree625e3b2eae2e29a9cb0cb137d5b2604d73e4f0a0 /src/include/device/mmio.h
parent57758a935c95b8297ed9758fc57029151a66c05b (diff)
util/ifdtool: Refactor GPR0 Unlock Implemetation
This patch refactors GPR0 unlock function to add few important logic as below 1. Perform GPR0 unlock if GPR0 is locked. 2. While unlocking dump the GPRD PCH strap details 3. Additionally, print the GPR start and end range if GPR0 protection is enabled. TEST=Able to test GPR0 protection on google/rex and google/yahiko. Exp 1: Trying to unlock GPR0 protection for a locked image > ifdtool -p mtl -g image.bin -O image.bin_unlock File image.bin is 33554432 bytes Value at GPRD offset (64) is 0x83220004 --------- GPR0 Protected Range -------------- Start address = 0x00004000 End address = 0x00322fff Writing new image to image.bin_unlock Exp 2: Trying to unlock GPR0 protection for a unlocked image > ifdtool -p mtl -g image.bin_unlock -O image.bin_unlock File image.bin_unlock is 33554432 bytes GPR0 protection is already disabled Change-Id: Id35ebdefe83182ad7a3e735bdd2998baa0ec3ed7 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/80216 Reviewed-by: YH Lin <yueherngl@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Nick Vaccaro <nvaccaro@google.com>
Diffstat (limited to 'src/include/device/mmio.h')
0 files changed, 0 insertions, 0 deletions