[PATCH 04/10] ARM: i.MX6: esdctl: Factor out common code in imx6*_barebox_entry()
Andrey Smirnov
andrew.smirnov at gmail.com
Tue Apr 10 16:53:17 PDT 2018
Signed-off-by: Andrey Smirnov <andrew.smirnov at gmail.com>
---
arch/arm/mach-imx/esdctl.c | 14 +++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)
diff --git a/arch/arm/mach-imx/esdctl.c b/arch/arm/mach-imx/esdctl.c
index a7114effa..eda8184a0 100644
--- a/arch/arm/mach-imx/esdctl.c
+++ b/arch/arm/mach-imx/esdctl.c
@@ -595,16 +595,20 @@ void __noreturn imx53_barebox_entry(void *boarddata)
barebox_arm_entry(base, size, boarddata);
}
-void __noreturn imx6q_barebox_entry(void *boarddata)
+static void __noreturn
+imx6_barebox_entry(unsigned long membase, void *boarddata)
{
- barebox_arm_entry(0x10000000,
+ barebox_arm_entry(membase,
imx6_mmdc_sdram_size(IOMEM(MX6_MMDC_P0_BASE_ADDR)),
boarddata);
}
+void __noreturn imx6q_barebox_entry(void *boarddata)
+{
+ imx6_barebox_entry(0x10000000, boarddata);
+}
+
void __noreturn imx6ul_barebox_entry(void *boarddata)
{
- barebox_arm_entry(0x80000000,
- imx6_mmdc_sdram_size(IOMEM(MX6_MMDC_P0_BASE_ADDR)),
- boarddata);
+ imx6_barebox_entry(0x80000000, boarddata);
}
--
2.14.3
More information about the barebox
mailing list