tools: mtk_image: add support for nand headers used by newer chips
authorWeijie Gao <weijie.gao@mediatek.com>
Fri, 9 Sep 2022 12:00:25 +0000 (20:00 +0800)
committerTom Rini <trini@konsulko.com>
Fri, 23 Sep 2022 19:09:16 +0000 (15:09 -0400)
commit3e3332130f4e99278f3686381b80b243a54948b0
tree940ae732422af49be9f4b0b61bc70517bff52839
parentcadb1a858d071e4ec6afdacc9ad5c7057cae699d
tools: mtk_image: add support for nand headers used by newer chips

This patch adds more nand headers in two new types:
1. HSM header, used for spi-nand thru SNFI interface
2. SPIM header, used for spi-nand thru spi-mem interface

The original nand header is renamed to AP header.

Tested-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Weijie Gao <weijie.gao@mediatek.com>
tools/mtk_image.c
tools/mtk_nand_headers.c
tools/mtk_nand_headers.h