diff mbox series

[U-Boot,2/5] image: add new "copro" image type

Message ID 1564751242-683-3-git-send-email-patrick.delaunay@st.com
State Accepted
Commit e7fabe75aec1380f7e2bd440a8477f0f15db528b
Delegated to: Patrick Delaunay
Headers show
Series stm32mp1: add support of M4 coprocessor firmware | expand

Commit Message

Patrick DELAUNAY Aug. 2, 2019, 1:07 p.m. UTC
Define new image type for coprocessor images.
It is used in FIT to identify the files loaded
with remoteproc command (elf or bin).

Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
---

 common/image.c  | 1 +
 include/image.h | 1 +
 2 files changed, 2 insertions(+)

Comments

Simon Glass Aug. 13, 2019, 9:34 a.m. UTC | #1
On Fri, 2 Aug 2019 at 07:07, Patrick Delaunay <patrick.delaunay@st.com> wrote:
>
> Define new image type for coprocessor images.
> It is used in FIT to identify the files loaded
> with remoteproc command (elf or bin).
>
> Signed-off-by: Loic Pallardy <loic.pallardy@st.com>
> Signed-off-by: Patrick Delaunay <patrick.delaunay@st.com>
> ---
>
>  common/image.c  | 1 +
>  include/image.h | 1 +
>  2 files changed, 2 insertions(+)

Reviewed-by: Simon Glass <sjg@chromium.org>
diff mbox series

Patch

diff --git a/common/image.c b/common/image.c
index 4958831..f65c3e9 100644
--- a/common/image.c
+++ b/common/image.c
@@ -174,6 +174,7 @@  static const table_entry_t uimage_type[] = {
 	{       IH_TYPE_PMMC,        "pmmc",        "TI Power Management Micro-Controller Firmware",},
 	{	IH_TYPE_STM32IMAGE, "stm32image", "STMicroelectronics STM32 Image" },
 	{	IH_TYPE_MTKIMAGE,   "mtk_image",   "MediaTek BootROM loadable Image" },
+	{	IH_TYPE_COPRO, "copro", "Coprocessor Image"},
 	{	-1,		    "",		  "",			},
 };
 
diff --git a/include/image.h b/include/image.h
index 27d7cb9..64a694f 100644
--- a/include/image.h
+++ b/include/image.h
@@ -283,6 +283,7 @@  enum {
 	IH_TYPE_MTKIMAGE,		/* MediaTek BootROM loadable Image */
 	IH_TYPE_IMX8MIMAGE,		/* Freescale IMX8MBoot Image	*/
 	IH_TYPE_IMX8IMAGE,		/* Freescale IMX8Boot Image	*/
+	IH_TYPE_COPRO,			/* Coprocessor Image for remoteproc*/
 
 	IH_TYPE_COUNT,			/* Number of image types */
 };