From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-pg0-x22a.google.com ([2607:f8b0:400e:c05::22a]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fSqIn-0001fB-6w for barebox@lists.infradead.org; Tue, 12 Jun 2018 20:54:30 +0000 Received: by mail-pg0-x22a.google.com with SMTP id m5-v6so147169pgd.3 for ; Tue, 12 Jun 2018 13:53:54 -0700 (PDT) From: Andrey Smirnov Date: Tue, 12 Jun 2018 13:52:38 -0700 Message-Id: <20180612205310.25745-23-andrew.smirnov@gmail.com> In-Reply-To: <20180612205310.25745-1-andrew.smirnov@gmail.com> References: <20180612205310.25745-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 v5 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