imx: Add support for i.MX28 based XEA board
Subsystems (3)
PATCH 1/1 imx: Add support for i.MX28 based XEA board
From: Mans Rullgard <[email protected]>
This patch introduces support for i.MX28 based XEA board.
This board supports DM/DTS in U-Boot proper as well as DM aware drivers in SPL (u-boot.sb).
More detailed information regarding usage of it can be found in ./board/liebherr/xea/README file.
U-Boot SPL 2019.10-rc1-00233-g6aa549f05c (Aug 12 2019 - 09:23:36 +0200) Trying to boot from MMC1
MMC0: Command 8 timeout (status 0xf0344020)mmc_load_image_raw_sector: mmc block read error
U-Boot 2019.10-rc1-00233-g6aa549f05c (Aug 12 2019 - 09:23:36 +0200)
CPU: Freescale i.MX28 rev1.2 at 454 MHz BOOT: SSP SPI #3, master, 3V3 NOR Model: Liebherr (LWE) XEA i.MX28 Board DRAM: 128 MiB MMC: MXS MMC: 0 Loading Environment from SPI Flash... SF: Detected n25q128a13 with page size 256 Bytes, erase size 64 KiB, total 16 MiB OK In: serial Out: serial Err: serial
Net:
Warning: ethernet at 800f0000 (eth0) using random MAC address - ce:e1:9e:46:f3:a2
eth0: ethernet at 800f0000
Hit any key to stop autoboot: 0
---
Dependencies:
- The whole patch series (1-4) starting at:
https://patchwork.ozlabs.org/patch/1145520/
- Fixes/conversion for i.MX28 spi and emmc (the whole series 1-5):
https://patchwork.ozlabs.org/patch/1145527/
--- arch/arm/dts/Makefile | 3 + arch/arm/dts/imx28-xea-u-boot.dtsi | 38 +++++ arch/arm/dts/imx28-xea.dts | 110 ++++++++++++++ arch/arm/mach-imx/mxs/Kconfig | 4 + board/liebherr/xea/Kconfig | 24 +++ board/liebherr/xea/MAINTAINERS | 6 + board/liebherr/xea/Makefile | 12 ++ board/liebherr/xea/README | 63 ++++++++ board/liebherr/xea/spl_xea.c | 301 +++++++++++++++++++++++++++++++++++++ board/liebherr/xea/xea.c | 120 +++++++++++++++ configs/imx28_xea_defconfig | 103 +++++++++++++ include/configs/xea.h | 196 ++++++++++++++++++++++++ 12 files changed, 980 insertions(+) create mode 100644 arch/arm/dts/imx28-xea-u-boot.dtsi create mode 100644 arch/arm/dts/imx28-xea.dts create mode 100644 board/liebherr/xea/Kconfig create mode 100644 board/liebherr/xea/MAINTAINERS create mode 100644 board/liebherr/xea/Makefile create mode 100644 board/liebherr/xea/README create mode 100644 board/liebherr/xea/spl_xea.c create mode 100644 board/liebherr/xea/xea.c create mode 100644 configs/imx28_xea_defconfig create mode 100644 include/configs/xea.h
arch/arm/dts/Makefile +3 -0
@@ -544,6 +544,9 @@ dtb-$(CONFIG_VF610) += vf500-colibri.dtb \ vf610-pcm052.dtb \ vf610-bk4r1.dtb +dtb-$(CONFIG_MX28) += \ + imx28-xea.dtb + dtb-$(CONFIG_MX53) += imx53-cx9020.dtb \ imx53-kp.dtb \ imx53-m53menlo.dtb
arch/arm/dts/imx28-xea-u-boot.dtsi new file +38 -0
@@ -0,0 +1,38 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2019 + * Lukasz Majewski, DENX Software Engineering, lukma at denx.de + * + * SPDX-License-Identifier: GPL-2.0+ or X11 + */ + +/* + * The minimal augmentation DTS U-Boot file to allow eMMC driver + * configuration in SPL for falcon boot. + */ +#include "imx28-u-boot.dtsi" +/ { + apb at 80000000 { + u-boot,dm-spl; + + apbh at 80000000 { + u-boot,dm-spl; + }; + + apbx at 80040000 { + u-boot,dm-spl; + }; + }; +}; + +&clks { + u-boot,dm-spl; +}; + +&ssp0 { + u-boot,dm-spl; +}; + +&ssp3 { + u-boot,dm-spl; +};
arch/arm/dts/imx28-xea.dts new file +110 -0
110 lines not on this page · raw message
arch/arm/mach-imx/mxs/Kconfig +4 -0
@@ -60,6 +60,9 @@ config TARGET_SC_SPS_1 config TARGET_TS4600 bool "Support TS4600" +config TARGET_XEA + bool "Support XEA" + endchoice config SYS_SOC
@@ -67,6 +70,7 @@ config SYS_SOC source "board/bluegiga/apx4devkit/Kconfig" source "board/freescale/mx28evk/Kconfig" +source "board/liebherr/xea/Kconfig" source "board/ppcag/bg0900/Kconfig" source "board/schulercontrol/sc_sps_1/Kconfig" source "board/technologic/ts4600/Kconfig"
board/liebherr/xea/Kconfig new file +24 -0
@@ -0,0 +1,24 @@ +if TARGET_XEA + +config SYS_BOARD + default "xea" + +config SYS_VENDOR + default "liebherr" + +config SYS_SOC + default "mxs" + +config SYS_CONFIG_NAME + default "xea" + +config ENV_SIZE + default 0x2000 + +config ENV_SECT_SIZE + default 0x10000 if ENV_IS_IN_SPI_FLASH + +config ENV_OFFSET + default 0x80000 if ENV_IS_IN_SPI_FLASH + +endif
board/liebherr/xea/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +XEA BOARD +M: Lukasz Majewski <[email protected]> +S: Maintained +F: board/liebherr/xea/ +F: include/configs/xea.h +F: configs/imx28_xea_defconfig
board/liebherr/xea/Makefile new file +12 -0
@@ -0,0 +1,12 @@ +# +# (C) Copyright 2019 +# Lukasz Majewski, DENX Software Engineering, lukma at denx.de. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := xea.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl_xea.o +endif
board/liebherr/xea/README new file +63 -0
63 lines not on this page · raw message
board/liebherr/xea/spl_xea.c new file +301 -0
301 lines not on this page · raw message
board/liebherr/xea/xea.c new file +120 -0
120 lines not on this page · raw message
configs/imx28_xea_defconfig new file +103 -0
103 lines not on this page · raw message
include/configs/xea.h new file +196 -0
196 lines not on this page · raw message
Signature · 1 line
2.11.0