From 35d4cf996034badd45b80c9fcd61e53036786421 Mon Sep 17 00:00:00 2001 From: Ahmad Fatoum Date: Fri, 1 Oct 2021 12:09:49 +0200 Subject: ARM: i.MX8MN: add i.MX8MN-EVK support With driver support in place, we can now build and run barebox in the i.MX8MN. Following tested working: - Setting up DDR4 SDRAM - Booting from SD-Card - Booting from eMMC - Updating barebox in SD-Card/eMMC boot partition - USB Fastboot, ACM gadgets - UART - Early I2C with bd71837 - Ethernet - Loading and communicating with TF-A The resulting image supports both DDR4 and LPDDR4. They use different PMICs, so probing the i2c addresses of them indicates what DRAM type to setup. I have only tested this on a DDR4 EVK, but the LPDDR4 code is equivalent to what's already used in barebox with i.MX8M Mini and Plus, so it should work(tm). Notably missing: - boot from USB SDP doesn't work. early debug_ll doesn't indicate that barebox PBL was actually entered. This can follow later though. Signed-off-by: Ahmad Fatoum Link: https://lore.barebox.org/20211001100949.6891-9-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer --- images/Makefile.imx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'images') diff --git a/images/Makefile.imx b/images/Makefile.imx index dd927aba55..18ab3daee3 100644 --- a/images/Makefile.imx +++ b/images/Makefile.imx @@ -425,6 +425,12 @@ CFG_start_prt_prt8mm.pblb.imximg = $(board)/protonic-imx8m/flash-header-prt8mm.i FILE_barebox-prt-prt8mm.img = start_prt_prt8mm.pblb.pimximg image-$(CONFIG_MACH_PROTONIC_IMX8M) += barebox-prt-prt8mm.img +# ----------------------- i.MX8mn based boards -------------------------- +pblb-$(CONFIG_MACH_NXP_IMX8MN_EVK) += start_nxp_imx8mn_evk +CFG_start_nxp_imx8mn_evk.pblb.imximg = $(board)/nxp-imx8mn-evk/flash-header-imx8mn-evk.imxcfg +FILE_barebox-nxp-imx8mn-evk.img = start_nxp_imx8mn_evk.pblb.pimximg +image-$(CONFIG_MACH_NXP_IMX8MN_EVK) += barebox-nxp-imx8mn-evk.img + # ----------------------- i.MX8mp based boards -------------------------- pblb-$(CONFIG_MACH_NXP_IMX8MP_EVK) += start_nxp_imx8mp_evk CFG_start_nxp_imx8mp_evk.pblb.imximg = $(board)/nxp-imx8mp-evk/flash-header-imx8mp-evk.imxcfg -- cgit v1.2.3