]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: Also support JTAG as alternative boot mode
authorMichal Simek <michal.simek@amd.com>
Wed, 20 Mar 2024 11:18:35 +0000 (12:18 +0100)
committerMichal Simek <michal.simek@amd.com>
Mon, 25 Mar 2024 14:15:15 +0000 (15:15 +0100)
commitd8821736d5e92e36dc98f0381004e2eedad0236e
treea6f807915796954739cd216fd23d4751db0a99ba
parent3d3cb2857ed3b40637efc2fb79315b97e154120d
arm64: zynqmp: Also support JTAG as alternative boot mode

if (reg >> BOOT_MODE_ALT_SHIFT) condition rules out alternative jtag boot
mode which is 0. When 0 was used origin(HW) boot mode was used instead.
That's why directly fill reg variable with requested boot mode and don't
let code to read value back. "else" part of code remain unchanged.

Reviewed-by: Sean Anderson <sean.anderson@linux.dev>
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link: https://lore.kernel.org/r/ed51a9d51948ab939a53e0b9dc6c2d2546f97a4f.1710933505.git.michal.simek@amd.com
arch/arm/mach-zynqmp/spl.c