Skip to contentSkip to conversation

imx: mx7dsabresd: Add support for MX7D SABRESD board

PATCH New Adrian Alonso 2 participants 2 messages Sep 3, 2015 – Sep 13, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v3 13/13 imx: mx7dsabresd: Add support for MX7D SABRESD board

* Add i.MX7D SABRESD target board support with enabled modules:
UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX.

Build target: mx7dsabresd_config

---
Changes for V2:
- Include arch/arm/Kconfig target config option
Changes for V3:
- Update target board maintainer contact info
Changes for V4: depends on patchs
- mmc: fsl_esdhc invalidate dcache before read
- imx: usb: ehci-mx6: add usb support for imx7d soc
Changes for V5: depends on patchs
- imx: usb: ehci-mx6: reg accessor cleanups
- imx: usb: ehci-mx6: document board specific functions
- imx: usb: ehci-mx6: wait_for_bit to check reg status
Changes for V6:
- Remove unused macro CONFIG_BOARD_POSTCLK_INIT from mc7_common.h Changes for V7:
- Update target config build settings
- Update mx7_common.h header file to gropup common build options for iMX7 SoC Changes for V8: Resend
Changes for V9:
- Remove non yet completely supported boot device options qspi, nand, to be reintroduced in future patch sets.

 arch/arm/Kconfig                          |   6 +
 arch/arm/cpu/armv7/mx7/Kconfig            |  27 ++
 arch/arm/include/asm/arch-mx7/sys_proto.h |   2 +
 board/freescale/mx7dsabresd/Kconfig       |  15 +
 board/freescale/mx7dsabresd/MAINTAINERS   |   6 +
 board/freescale/mx7dsabresd/Makefile      |   6 +
 board/freescale/mx7dsabresd/imximage.cfg  |  94 +++++
 board/freescale/mx7dsabresd/mx7dsabresd.c | 555 ++++++++++++++++++++++++++++++
 configs/mx7dsabresd_defconfig             |  14 +
 include/configs/mx7_common.h              |  95 +++++
 include/configs/mx7dsabresd.h             | 194 +++++++++++
 11 files changed, 1014 insertions(+)
 create mode 100644 arch/arm/cpu/armv7/mx7/Kconfig
 create mode 100644 board/freescale/mx7dsabresd/Kconfig
 create mode 100644 board/freescale/mx7dsabresd/MAINTAINERS
 create mode 100644 board/freescale/mx7dsabresd/Makefile
 create mode 100644 board/freescale/mx7dsabresd/imximage.cfg
 create mode 100644 board/freescale/mx7dsabresd/mx7dsabresd.c
 create mode 100644 configs/mx7dsabresd_defconfig
 create mode 100644 include/configs/mx7_common.h
 create mode 100644 include/configs/mx7dsabresd.h
arch/arm/Kconfig +6 -0
index de0d6fb..ab2cd24 100644
@@ -472,6 +472,10 @@ config ARCH_KEYSTONE
 	select CPU_V7
 	select SUPPORT_SPL
 
+config ARCH_MX7
+	bool "Freescale MX7"
+	select CPU_V7
+
 config ARCH_MX6
 	bool "Freescale MX6"
 	select CPU_V7
@@ -751,6 +755,8 @@ source "arch/arm/mach-keystone/Kconfig"
 
 source "arch/arm/mach-kirkwood/Kconfig"
 
+source "arch/arm/cpu/armv7/mx7/Kconfig"
+
 source "arch/arm/cpu/armv7/mx6/Kconfig"
 
 source "arch/arm/cpu/armv7/mx5/Kconfig"
arch/arm/cpu/armv7/mx7/Kconfig new file +27 -0
new file mode 100644
index 0000000..892ffae
@@ -0,0 +1,27 @@
+if ARCH_MX7
+
+config MX7
+	bool
+	default y
+
+config MX7D
+	bool
+
+choice
+	prompt "MX7 board select"
+	optional
+
+config TARGET_MX7DSABRESD
+	bool "mx7dsabresd"
+	select CPU_V7
+	select DM
+	select DM_THERMAL
+
+endchoice
+
+config SYS_SOC
+	default "mx7"
+
+source "board/freescale/mx7dsabresd/Kconfig"
+
+endif
arch/arm/include/asm/arch-mx7/sys_proto.h +2 -0
index f19684b..ca7608b 100644
@@ -5,3 +5,5 @@
  */
 
 #include <asm/imx-common/sys_proto.h>
+
+void set_wdog_reset(struct wdog_regs *wdog);
board/freescale/mx7dsabresd/Kconfig new file +15 -0
new file mode 100644
index 0000000..d7c6ae4
@@ -0,0 +1,15 @@
+if TARGET_MX7DSABRESD
+
+config SYS_BOARD
+	default "mx7dsabresd"
+
+config SYS_VENDOR
+	default "freescale"
+
+config SYS_SOC
+	default "mx7"
+
+config SYS_CONFIG_NAME
+	default "mx7dsabresd"
+
+endif
board/freescale/mx7dsabresd/MAINTAINERS new file +6 -0
new file mode 100644
index 0000000..3910ee4
@@ -0,0 +1,6 @@
+MX7DSABRESD BOARD
+M:	Adrian Alonso <[email protected]>
+S:	Maintained
+F:	board/freescale/mx7dsabresd
+F:	include/configs/mx7dsabresd.h
+F:	configs/mx7dsabresd_defconfig
board/freescale/mx7dsabresd/Makefile new file +6 -0
new file mode 100644
index 0000000..14336ab
@@ -0,0 +1,6 @@
+# (C) Copyright 2015 Freescale Semiconductor, Inc.
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+obj-y  := mx7dsabresd.o
board/freescale/mx7dsabresd/imximage.cfg new file +94 -0

94 lines not on this page · raw message

board/freescale/mx7dsabresd/mx7dsabresd.c new file +555 -0

555 lines not on this page · raw message

configs/mx7dsabresd_defconfig new file +14 -0
new file mode 100644
index 0000000..bb95424
@@ -0,0 +1,14 @@
+CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/freescale/mx7dsabresd/imximage.cfg,MX7D"
+CONFIG_ARM=y
+CONFIG_ARCH_MX7=y
+CONFIG_TARGET_MX7DSABRESD=y
+CONFIG_SYS_MALLOC_F=y
+CONFIG_SYS_MALLOC_F_LEN=0x400
+CONFIG_CMD_NET=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_DHCP=y
+# CONFIG_CMD_BOOTD is not set
+# CONFIG_CMD_SETEXPR is not set
+# CONFIG_CMD_IMI is not set
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_XIMG is not set
include/configs/mx7_common.h new file +95 -0

95 lines not on this page · raw message

include/configs/mx7dsabresd.h new file +194 -0

194 lines not on this page · raw message

Signature · 1 line
2.1.4
#1 lore raw

PATCH v3 13/13 imx: mx7dsabresd: Add support for MX7D SABRESD board

Quoted 10 lines · Adrian Alonso

* Add i.MX7D SABRESD target board support with enabled modules:
UART, PMIC, USB/OTG, SD, eMMC, ENET, I2C, 74LV IOX.

Build target: mx7dsabresd_config

---

Applied to u-boot-imx, thanks !

Best regards,
Stefano Babic

Signature · 5 lines
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================