unifykey: support both old and new unifykey format
authorJiamin Ma <jiamin.ma@amlogic.com>
Mon, 24 Jul 2017 10:39:23 +0000 (18:39 +0800)
committerJiamin Ma <jiamin.ma@amlogic.com>
Fri, 28 Jul 2017 11:52:52 +0000 (19:52 +0800)
commitd6950e214c73cfd1bde2c9802163950b5cc59cee
treef7e0ecacdea7ebf3e07da1bb969f5e457c5b4966
parent7a0943a42e61ad3a2eaeaa132339173d4f822e80
unifykey: support both old and new unifykey format

PD#148057: for m8bb m200 platform, we have the latest linux kernel
and a relative old version uboot running on it. For some historic
resons, the unifykey data stored in emmc/nand has totally different
format, which means the key stored by old uboot cannot be fetched
out by new kernel. To solve this problem, we have to support both
the old and new unifykey dataformat in lasted kernel.

Change-Id: Ic70df6543466b345a5ff513bfaabfe4cfcf647ed
Signed-off-by: Jiamin Ma <jiamin.ma@amlogic.com>
12 files changed:
arch/arm/boot/dts/amlogic/meson8b_m200.dts
drivers/amlogic/unifykey/unifykey.c
drivers/amlogic/unifykey/unifykey.h
drivers/amlogic/unifykey/unifykey_dts.c
drivers/amlogic/unifykey/v7/key_storage/Makefile
drivers/amlogic/unifykey/v7/key_storage/crypto_api.c
drivers/amlogic/unifykey/v7/key_storage/storage.c
drivers/amlogic/unifykey/v7/key_storage/storage.h
drivers/amlogic/unifykey/v7/key_storage/storage_data.h
drivers/amlogic/unifykey/v7/key_storage/storage_util.c
drivers/amlogic/unifykey/v7/key_storage/storage_util.h
drivers/amlogic/unifykey/v7/key_storage/tlv.c [deleted file]