]> git.ipfire.org Git - people/ms/u-boot.git/commit
rockchip: mkimage: Allow encoding of loader code in spl images
authorHeiko Stübner <heiko@sntech.de>
Sat, 18 Feb 2017 18:46:27 +0000 (19:46 +0100)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Mar 2017 22:03:44 +0000 (16:03 -0600)
commitcfbcdade763c87c7dde52020b8b98d399540ede2
tree43917a090f0f48f4d076f2483f11392cee5f3384
parentaade077e431b584980a0418c0e464f6ef31c5c20
rockchip: mkimage: Allow encoding of loader code in spl images

Rockchip SoCs allow the spl code to be rc4-encoded, not only the
image header, but only newer SoCs allow this encoding to be disabled.

The rk3188 is not part of those and requires its boot code to be
rc4-encoded with the regular key. So add the ability to do this
encoding via a setting on a per-soc basis when building spl images.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Kever Yang <kever.yang@rock-chips.com>
Tested-by: Kever Yang <kever.yang@rock-chips.com>
tools/rkcommon.c
tools/rkcommon.h
tools/rkimage.c
tools/rksd.c
tools/rkspi.c