Skip to contentSkip to conversation

ARM: imx6: Add DHCOM i.MX6 PDK board support

PATCH Superseded Marek Vasut 3 participants 7 messages Oct 9, 2017 – Oct 12, 2017

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

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +10 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
 	select DM_SERIAL
 	select DM_THERMAL
 
+config TARGET_DHCOMIMX6
+	bool "dh_imx6"
+	select BOARD_LATE_INIT
+	select BOARD_EARLY_INIT_F
+	select SUPPORT_SPL
+	select DM
+	select DM_THERMAL
+	imply CMD_SPL
+
 config TARGET_EMBESTMX6BOARDS
 	bool "embestmx6boards"
 	select BOARD_LATE_INIT
@@ -428,6 +437,7 @@ source "board/boundary/nitrogen6x/Kconfig"
 source "board/ccv/xpress/Kconfig"
 source "board/compulab/cm_fx6/Kconfig"
 source "board/congatec/cgtqmx6eval/Kconfig"
+source "board/dhelectronics/dh_imx6/Kconfig"
 source "board/el/el6x/Kconfig"
 source "board/embest/mx6boards/Kconfig"
 source "board/engicam/geam6ul/Kconfig"
board/dhelectronics/dh_imx6/Kconfig new file +12 -0
new file mode 100644
index 0000000000..0cfef9b097
@@ -0,0 +1,12 @@
+if TARGET_DHCOMIMX6
+
+config SYS_BOARD
+	default "dh_imx6"
+
+config SYS_VENDOR
+	default "dhelectronics"
+
+config SYS_CONFIG_NAME
+	default "dh_imx6"
+
+endif
board/dhelectronics/dh_imx6/MAINTAINERS new file +7 -0
new file mode 100644
index 0000000000..e54bd60adb
@@ -0,0 +1,7 @@
+DH_IMX6 BOARD
+M:	Andreas Geisreiter <[email protected]>, Ludwig Zenz <[email protected]>
+S:	Maintained
+F:	board/dhelectronics/dh_imx6/
+F:	include/configs/dh_imx6.h
+F:	configs/dh_mx6q_defconfig
+F:	configs/dh_mx6dl_defconfig
board/dhelectronics/dh_imx6/Makefile new file +11 -0
new file mode 100644
index 0000000000..bddc8d8568
@@ -0,0 +1,11 @@
+#
+# Copyright (C) 2017 Marek Vasut <[email protected]>
+#
+# SPDX-License-Identifier:	GPL-2.0+
+#
+
+ifdef CONFIG_SPL_BUILD
+obj-y	:= dh_imx6_spl.o
+else
+obj-y	:= dh_imx6.o
+endif
board/dhelectronics/dh_imx6/dh_imx6.c new file +437 -0

437 lines not on this page · raw message

board/dhelectronics/dh_imx6/dh_imx6_spl.c new file +399 -0

399 lines not on this page · raw message

configs/dh_imx6_defconfig new file +51 -0

51 lines not on this page · raw message

include/configs/dh_imx6.h new file +191 -0

191 lines not on this page · raw message

Signature · 1 line
2.11.0
#1 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Quoted 33 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
        select DM_SERIAL

arch/arm/mach-imx/mx6/Kconfig config TARGET_COLIBRI_IMX6 · line 139

Quoted 10 lines
arch/arm/mach-imx/mx6/Kconfig +8 -0
        select DM_THERMAL
 
+config TARGET_DHCOMIMX6
+       bool "dh_imx6"
+       select BOARD_LATE_INIT
+       select BOARD_EARLY_INIT_F
+       select SUPPORT_SPL
+       select DM
+       select DM_THERMAL
+       imply CMD_SPL

I would suggest to add new boards with DTS along with enabling dm-driven drivers, this would eventually improve i.MX tree toward using new feature set.

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#2 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Quoted 36 lines · Jagan Teki
Quoted 35 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
        select DM_SERIAL
        select DM_THERMAL
 
Quoted 12 lines

arch/arm/mach-imx/mx6/Kconfig config TARGET_COLIBRI_IMX6 · line 139

Quoted 8 lines
arch/arm/mach-imx/mx6/Kconfig +8 -0
+config TARGET_DHCOMIMX6
+       bool "dh_imx6"
+       select BOARD_LATE_INIT
+       select BOARD_EARLY_INIT_F
+       select SUPPORT_SPL
+       select DM
+       select DM_THERMAL
+       imply CMD_SPL

I would suggest to add new boards with DTS along with enabling dm-driven drivers, this would eventually improve i.MX tree toward using new feature set.

Enabling unused stuff and adding bloat ? Nope :)

Signature · 2 lines
Best regards,
Marek Vasut
#3 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Quoted 50 lines · Marek Vasut
Quoted 36 lines · Jagan Teki
Quoted 35 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
        select DM_SERIAL
        select DM_THERMAL
 
Quoted 12 lines

arch/arm/mach-imx/mx6/Kconfig config TARGET_COLIBRI_IMX6 · line 139

Quoted 8 lines
arch/arm/mach-imx/mx6/Kconfig +8 -0
+config TARGET_DHCOMIMX6
+       bool "dh_imx6"
+       select BOARD_LATE_INIT
+       select BOARD_EARLY_INIT_F
+       select SUPPORT_SPL
+       select DM
+       select DM_THERMAL
+       imply CMD_SPL

I would suggest to add new boards with DTS along with enabling dm-driven drivers, this would eventually improve i.MX tree toward using new feature set.

Quoted 1 line

Enabling unused stuff and adding bloat ? Nope :)

OK, but we still have useful stuff:

DM_ETH
DM_GPIO
DM_I2C
DM_MMC
DM_SPI
DM_SPI_FLASH

thanks!

Signature · 4 lines
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.
#4 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Quoted 53 lines · Jagan Teki
Quoted 50 lines · Marek Vasut
Quoted 36 lines · Jagan Teki
Quoted 35 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
        select DM_SERIAL
        select DM_THERMAL
 
Quoted 12 lines

arch/arm/mach-imx/mx6/Kconfig config TARGET_COLIBRI_IMX6 · line 139

Quoted 8 lines
arch/arm/mach-imx/mx6/Kconfig +8 -0
+config TARGET_DHCOMIMX6
+       bool "dh_imx6"
+       select BOARD_LATE_INIT
+       select BOARD_EARLY_INIT_F
+       select SUPPORT_SPL
+       select DM
+       select DM_THERMAL
+       imply CMD_SPL

I would suggest to add new boards with DTS along with enabling dm-driven drivers, this would eventually improve i.MX tree toward using new feature set.

Quoted 1 line

Enabling unused stuff and adding bloat ? Nope :)

Quoted 8 lines

OK, but we still have useful stuff:

DM_ETH
DM_GPIO
DM_I2C
DM_MMC
DM_SPI
DM_SPI_FLASH

This discussion is moot, it is NOT useful here and it just adds bloat.

Signature · 2 lines
Best regards,
Marek Vasut
#5 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

Hi Jagan, Marek,

Quoted 56 lines · Marek Vasut
Quoted 55 lines · Jagan Teki
Quoted 50 lines · Marek Vasut
Quoted 36 lines · Jagan Teki
Quoted 35 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()

---
 arch/arm/mach-imx/mx6/Kconfig             |  10 +
 board/dhelectronics/dh_imx6/Kconfig       |  12 +
 board/dhelectronics/dh_imx6/MAINTAINERS   |   7 +
 board/dhelectronics/dh_imx6/Makefile      |  11 +
 board/dhelectronics/dh_imx6/dh_imx6.c     | 437 ++++++++++++++++++++++++++++++
 board/dhelectronics/dh_imx6/dh_imx6_spl.c | 399 +++++++++++++++++++++++++++
 configs/dh_imx6_defconfig                 |  51 ++++
 include/configs/dh_imx6.h                 | 191 +++++++++++++
 8 files changed, 1118 insertions(+)
 create mode 100644 board/dhelectronics/dh_imx6/Kconfig
 create mode 100644 board/dhelectronics/dh_imx6/MAINTAINERS
 create mode 100644 board/dhelectronics/dh_imx6/Makefile
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6.c
 create mode 100644 board/dhelectronics/dh_imx6/dh_imx6_spl.c
 create mode 100644 configs/dh_imx6_defconfig
 create mode 100644 include/configs/dh_imx6.h
arch/arm/mach-imx/mx6/Kconfig +0 -0
index 540f2b29b1..b82db3af22 100644
@@ -129,6 +129,15 @@ config TARGET_COLIBRI_IMX6
        select DM_SERIAL
        select DM_THERMAL
 
Quoted 12 lines

arch/arm/mach-imx/mx6/Kconfig config TARGET_COLIBRI_IMX6 · line 139

Quoted 8 lines
arch/arm/mach-imx/mx6/Kconfig +8 -0
+config TARGET_DHCOMIMX6
+       bool "dh_imx6"
+       select BOARD_LATE_INIT
+       select BOARD_EARLY_INIT_F
+       select SUPPORT_SPL
+       select DM
+       select DM_THERMAL
+       imply CMD_SPL

I would suggest to add new boards with DTS along with enabling dm-driven drivers, this would eventually improve i.MX tree toward using new feature set.

Quoted 1 line

Enabling unused stuff and adding bloat ? Nope :)

OK, but we still have useful stuff:

Quoted 8 lines
Quoted 6 lines

DM_ETH
DM_GPIO
DM_I2C
DM_MMC
DM_SPI
DM_SPI_FLASH

This discussion is moot, it is NOT useful here and it just adds bloat.

More or less I have already explained my point of view here:

	https://lists.denx.de/pipermail/u-boot/2017-May/292424.html

Again, moving to DTS should be done if this does not preclude other features. That means for example boot time (==> small footprint), having a single binary for multiple SOC variants, and so on. As I have already
said: I won't constraint any contributor to follow one or the other way. See case with pico imx.7. I understand that some projects will be better supported in one way, some other ones with the other way. I have also merged boards in last time *without* DTS support, because the board maintainer is in charge to better know which is the best for his own project - the choice has low impact on the common port for i.MX. For this patch, Marek has chosen the way to support the board, because he won't to increase footprint and he does not want to have unused code inside. All good arguments.

IMHO patch is fine.

Best regards,
Stefano

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
=====================================================================
#6 lore raw

PATCH v2 1/1 ARM: imx6: Add DHCOM i.MX6 PDK board support

In reply to Marek Vasut
Quoted 10 lines · Marek Vasut

Add support for the DHCOM i.MX6 PDK board. This board has:
- FEC ethernet
- EHCI USB host
- 3x SDMMC

---
V2: Use get_cpu_type() and imx_get_mac_from_fuse()
---

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
=====================================================================