From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pf0-x244.google.com ([2607:f8b0:400e:c00::244]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fSYX8-0007Bx-4t for barebox@lists.infradead.org; Tue, 12 Jun 2018 01:56:56 +0000 Received: by mail-pf0-x244.google.com with SMTP id a11-v6so11212762pff.8 for ; Mon, 11 Jun 2018 18:55:32 -0700 (PDT) From: Andrey Smirnov Date: Mon, 11 Jun 2018 18:52:54 -0700 Message-Id: <20180612015326.26192-23-andrew.smirnov@gmail.com> In-Reply-To: <20180612015326.26192-1-andrew.smirnov@gmail.com> References: <20180612015326.26192-1-andrew.smirnov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v4 22/54] ARM: boot: Add trivial i.MX8 support To: barebox@lists.infradead.org Cc: Andrey Smirnov It appears that boot sources for i.MX8 are just a subset of those of i.MX7 and both can be handled by the same code. Signed-off-by: Andrey Smirnov --- arch/arm/mach-imx/boot.c | 5 +++++ arch/arm/mach-imx/include/mach/generic.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/arch/arm/mach-imx/boot.c b/arch/arm/mach-imx/boot.c index 11105a148..ab25f75b2 100644 --- a/arch/arm/mach-imx/boot.c +++ b/arch/arm/mach-imx/boot.c @@ -624,3 +624,8 @@ void vf610_boot_save_loc(void) { imx_boot_save_loc(vf610_get_boot_source); } + +void imx8_get_boot_source(enum bootsource *src, int *instance) + __alias(imx7_get_boot_source); + +void imx8_boot_save_loc(void) __alias(imx7_boot_save_loc); diff --git a/arch/arm/mach-imx/include/mach/generic.h b/arch/arm/mach-imx/include/mach/generic.h index 62838c691..dc537941a 100644 --- a/arch/arm/mach-imx/include/mach/generic.h +++ b/arch/arm/mach-imx/include/mach/generic.h @@ -16,6 +16,7 @@ void imx53_boot_save_loc(void); void imx6_boot_save_loc(void); void imx7_boot_save_loc(void); void vf610_boot_save_loc(void); +void imx8_boot_save_loc(void); void imx25_get_boot_source(enum bootsource *src, int *instance); void imx35_get_boot_source(enum bootsource *src, int *instance); @@ -24,6 +25,7 @@ void imx53_get_boot_source(enum bootsource *src, int *instance); void imx6_get_boot_source(enum bootsource *src, int *instance); void imx7_get_boot_source(enum bootsource *src, int *instance); void vf610_get_boot_source(enum bootsource *src, int *instance); +void imx8_get_boot_source(enum bootsource *src, int *instance); int imx1_init(void); int imx21_init(void); -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox