Message ID | 20240522-loongarch-v1-5-1407e0b69678@flygoat.com |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show |
Series | LoongArch initial support | expand |
On 5/22/24 17:34, Jiaxun Yang wrote: > Allocate the next value to IH_ARCH_LOONGARCH. > > Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de> > --- > boot/image.c | 1 + > include/image.h | 1 + > 2 files changed, 2 insertions(+) > > diff --git a/boot/image.c b/boot/image.c > index 073931cd7a3f..8955a095713d 100644 > --- a/boot/image.c > +++ b/boot/image.c > @@ -96,6 +96,7 @@ static const table_entry_t uimage_arch[] = { > { IH_ARCH_X86_64, "x86_64", "AMD x86_64", }, > { IH_ARCH_XTENSA, "xtensa", "Xtensa", }, > { IH_ARCH_RISCV, "riscv", "RISC-V", }, > + { IH_ARCH_LOONGARCH, "loongarch", "LoongArch", }, > { -1, "", "", }, > }; > > diff --git a/include/image.h b/include/image.h > index a2bfc7bb19a3..1dd6dfb82437 100644 > --- a/include/image.h > +++ b/include/image.h > @@ -139,6 +139,7 @@ enum { > IH_ARCH_X86_64, /* AMD x86_64, Intel and Via */ > IH_ARCH_XTENSA, /* Xtensa */ > IH_ARCH_RISCV, /* RISC-V */ > + IH_ARCH_LOONGARCH, /* Loongson LoongArch */ > > IH_ARCH_COUNT, > }; >
diff --git a/boot/image.c b/boot/image.c index 073931cd7a3f..8955a095713d 100644 --- a/boot/image.c +++ b/boot/image.c @@ -96,6 +96,7 @@ static const table_entry_t uimage_arch[] = { { IH_ARCH_X86_64, "x86_64", "AMD x86_64", }, { IH_ARCH_XTENSA, "xtensa", "Xtensa", }, { IH_ARCH_RISCV, "riscv", "RISC-V", }, + { IH_ARCH_LOONGARCH, "loongarch", "LoongArch", }, { -1, "", "", }, }; diff --git a/include/image.h b/include/image.h index a2bfc7bb19a3..1dd6dfb82437 100644 --- a/include/image.h +++ b/include/image.h @@ -139,6 +139,7 @@ enum { IH_ARCH_X86_64, /* AMD x86_64, Intel and Via */ IH_ARCH_XTENSA, /* Xtensa */ IH_ARCH_RISCV, /* RISC-V */ + IH_ARCH_LOONGARCH, /* Loongson LoongArch */ IH_ARCH_COUNT, };
Allocate the next value to IH_ARCH_LOONGARCH. Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com> --- boot/image.c | 1 + include/image.h | 1 + 2 files changed, 2 insertions(+)