imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM
Subsystems (2)
PATCH v2 1/1 imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM
Logic PD has an i.MX6Q system on module (SOM) with a development kit. The SOM has a built-in microSD socket, DDR and NAND flash. The development kit has an SMSC Ethernet PHY, serial debug port and a variety of peripherals. This have been verified to boot the i.MX6Q version over either SD on the development kit or NAND built into the SOM.
---
Changes in V2:
- Alphabetize the modified Kconfig file
- Clean up README file.
- Elminate fdt_high and initrd_high and add bootm_size
- Changed MTDPARTS_DEFAULT to increase the kernel size to 16MB
- Cleaned up the mx6q_2x_MT41K512M16HA.cfg to include headers, replace hard-coded addresses with human-readable ones, and remove dead code
- Updated mx6q_2x_MT41K512M16HA.cfg to use BOOT_OFFSET since SD and NAND have the same offset
- Removed 'ifdef' references that were always true.
- Removed CPU references that didn't exist.
- And made local variables static
- Add reference to worked used to derrive this code
arch/arm/cpu/armv7/mx6/Kconfig +8 -0
@@ -155,6 +155,13 @@ config TARGET_MX6CUBOXI select BOARD_LATE_INIT select SUPPORT_SPL +config TARGET_MX6LOGICPD + bool "mx6logicpd" + select BOARD_EARLY_INIT_F + select BOARD_LATE_INIT + select DM + select DM_THERMAL + config TARGET_MX6QARM2 bool "mx6qarm2"
@@ -404,6 +411,7 @@ source "board/gateworks/gw_ventana/Kconfig" source "board/kosagi/novena/Kconfig" source "board/samtec/vining_2000/Kconfig" source "board/liebherr/mccmon6/Kconfig" +source "board/logicpd/imx6/Kconfig" source "board/seco/Kconfig" source "board/solidrun/mx6cuboxi/Kconfig" source "board/technexion/pico-imx6ul/Kconfig"
board/logicpd/imx6/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_MX6LOGICPD + +config SYS_BOARD + default "imx6" + +config SYS_VENDOR + default "logicpd" + +config SYS_CONFIG_NAME + default "imx6_logic" + +endif
board/logicpd/imx6/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +MX6LOGICPD BOARD +M: Adam Ford <[email protected]> +S: Maintained +F: board/logicpd/imx6/ +F: include/configs/imx6_logic.h +F: configs/imx6q_logic_defconfig
board/logicpd/imx6/Makefile new file +11 -0
@@ -0,0 +1,11 @@ +# +# Copyright (C) 2007, Guennadi Liakhovetski <[email protected]> +# +# (C) Copyright 2011 Freescale Semiconductor, Inc. +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y := imx6logic.o +obj-$(CONFIG_POWER_PFUZE100) += ../../freescale/common/pfuze.o +
board/logicpd/imx6/README new file +37 -0
@@ -0,0 +1,37 @@ +U-Boot for LogicPD i.MX6 Development Kit +---------------------------------------- + +This file contains information for the port of U-Boot to the Logic PD Development kit. + +Logic PD has an i.MX6 System On Module (SOM) and a correspondong development +board. SOM has a built-in microSD socket, DDR and NAND flash. The development kit has +an SMSC Ethernet PHY, serial debug port and a variety of peripherals. + +On the intial release, the SOM came with an i.MX6D and i.MX6Q. + +For more details about Logic PD i.MX6 Development kit, visit: +https://www.logicpd.com/ + +Building U-Boot for Logic PD Development Kit +-------------------------------------------- +To build U-Boot for the Dual and Quad variants: + + make imx6q_logic_defconfig + make u-boot.imx ARCH=arm CROSS_COMPILE=arm-linux- + + +Flashing U-Boot into the SD card +-------------------------------- + +See README.imximage for details on booting from SD + +Flashing U-Boot into NAND +------------------------- +Once in Linux with MTD support for the NAND on /dev/mtd0, program U-Boot with the following: +with: + + kobs-ng init -v -x u-boot.imx + +Additional Support Documentation can be found at: +https://support.logicpd.com/ +
board/logicpd/imx6/imx6logic.c new file +343 -0
343 lines not on this page · raw message
board/logicpd/imx6/mx6q_2x_MT41K512M16HA.cfg new file +112 -0
112 lines not on this page · raw message
configs/imx6q_logic_defconfig new file +30 -0
@@ -0,0 +1,30 @@ +CONFIG_ARM=y +CONFIG_ARCH_MX6=y +CONFIG_TARGET_MX6LOGICPD=y +CONFIG_SYS_EXTRA_OPTIONS="IMX_CONFIG=board/logicpd/imx6/mx6q_2x_MT41K512M16HA.cfg,MX6Q" +CONFIG_BOOTDELAY=3 +# CONFIG_CONSOLE_MUX is not set +CONFIG_SYS_CONSOLE_IS_IN_ENV=y +CONFIG_SYS_CONSOLE_OVERWRITE_ROUTINE=y +CONFIG_HUSH_PARSER=y +CONFIG_SYS_PROMPT="i.MX6 Logic # " +CONFIG_CMD_BOOTZ=y +# CONFIG_CMD_IMLS is not set +# CONFIG_CMD_FLASH is not set +CONFIG_CMD_MMC=y +CONFIG_CMD_NAND=y +CONFIG_CMD_I2C=y +CONFIG_CMD_GPIO=y +CONFIG_CMD_DHCP=y +CONFIG_CMD_MII=y +CONFIG_CMD_PING=y +CONFIG_CMD_CACHE=y +CONFIG_CMD_EXT2=y +CONFIG_CMD_EXT4=y +CONFIG_CMD_EXT4_WRITE=y +CONFIG_CMD_FAT=y +CONFIG_CMD_FS_GENERIC=y +CONFIG_NAND_MXS=y +CONFIG_DISPLAY_CPUINFO=y +CONFIG_CMD_MEMTEST=y +CONFIG_OF_LIBFDT=y
include/configs/imx6_logic.h new file +198 -0
198 lines not on this page · raw message
Signature · 1 line
2.7.4
PATCH v2 1/1 imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM
+ Stefano
Quoted 28 lines · Adam Ford
Logic PD has an i.MX6Q system on module (SOM) with a development kit. The SOM has a built-in microSD socket, DDR and NAND flash. The development kit has an SMSC Ethernet PHY, serial debug port and a variety of peripherals. This have been verified to boot the i.MX6Q version over either SD on the development kit or NAND built into the SOM.
Signed-off-by Adam Ford <[email protected]>---
Changes in V2:
- Alphabetize the modifiedKconfigfile
- Clean up README file.
- Elminatefdt_highandinitrd_highand addbootm_size
- ChangedMTDPARTS_DEFAULTto increase the kernel size to 16MB
- Cleaned up the mx6q_2x_MT41K512M16HA.cfg to include headers, replace hard-coded addresses with human-readable ones, and remove dead code
- Updated mx6q_2x_MT41K512M16HA.cfg to useBOOT_OFFSETsince SD and NAND have the same offset
- Removed 'ifdef' references that were always true.
- Removed CPU references that didn't exist.
- And made local variables static
- Add reference to worked used to derrive this codearch/arm/cpu/armv7/mx6/Kconfig +0
-0
arch/arm/cpu/armv7/mx6/Kconfig config TARGET_MX6CUBOXI · line 163
Quoted 9 lines
arch/arm/cpu/armv7/mx6/Kconfig +6
-0@@ -155,6 +155,13 @@ config TARGET_MX6CUBOXI select BOARD_LATE_INIT select SUPPORT_SPL +config TARGET_MX6LOGICPD + bool "mx6logicpd" + select BOARD_EARLY_INIT_F + select BOARD_LATE_INIT + select DM + select DM_THERMAL
IMHO, Since we are moving i.MX stuff with SPL and dt support a lot of code can be prevented from board files like pinctrl(PADS), UART, MMC, I2C, FEC,USB. Please better to start adding new board with new-features which are supported this will certainly improve maintainability and align with latest u-boot features.
thanks!
Signature · 4 lines
Jagan Teki Free Software Engineer | www.openedev.com U-Boot, Linux | Upstream Maintainer Hyderabad, India.
PATCH v2 1/1 imx: i.mx6q: add the initial support for LogicPD i.MX6Q SOM
Quoted 34 lines · Jagan Teki
+ Stefano
Quoted 31 lines · Adam Ford
Logic PD has an i.MX6Q system on module (SOM) with a development kit. The SOM has a built-in microSD socket, DDR and NAND flash. The development kit has an SMSC Ethernet PHY, serial debug port and a variety of peripherals. This have been verified to boot the i.MX6Q version over either SD on the development kit or NAND built into the SOM.
Signed-off-by Adam Ford <[email protected]>---
Changes in V2:
- Alphabetize the modifiedKconfigfile
- Clean up README file.
- Elminatefdt_highandinitrd_highand addbootm_size
- ChangedMTDPARTS_DEFAULTto increase the kernel size to 16MB
- Cleaned up the mx6q_2x_MT41K512M16HA.cfg to include headers, replace hard-coded addresses with human-readable ones, and remove dead code
- Updated mx6q_2x_MT41K512M16HA.cfg to useBOOT_OFFSETsince SD and NAND have the same offset
- Removed 'ifdef' references that were always true.
- Removed CPU references that didn't exist.
- And made local variables static
- Add reference to worked used to derrive this codearch/arm/cpu/armv7/mx6/Kconfig +0
-0@@ -155,6 +155,13 @@ config TARGET_MX6CUBOXI select BOARD_LATE_INIT select SUPPORT_SPL
Quoted 13 lines
arch/arm/cpu/armv7/mx6/Kconfig config TARGET_MX6CUBOXI · line 163
Quoted 6 lines
arch/arm/cpu/armv7/mx6/Kconfig +6
-0+config TARGET_MX6LOGICPD + bool "mx6logicpd" + select BOARD_EARLY_INIT_F + select BOARD_LATE_INIT + select DM + select DM_THERMALIMHO, Since we are moving i.MX stuff with SPL and dt support a lot of code can be prevented from board files like pinctrl(PADS), UART, MMC, I2C, FEC,USB. Please better to start adding new board with new-features which are supported this will certainly improve maintainability and align with latest u-boot features.
We're trying to release a new development platform (SabreSD) that I used as a model does not do the items you're listing. I was hoping that once it got accepted into the U-Boot trunk, that I would do incremental improvements to bring it more up to date. I intentionally set the U-Boot partition large thinking that I would restructure them later to support SPL without messing up the locations of the rest of the partitions. It seems to me like the Freescale Sabre boards should get upgraded if this is a requirement. Is this really a deal-breaker to get accepted as a first step? My goal is to incrementally integrate those features in as I have time.
adam
Quoted 6 lines
thanks!
--
Jagan Teki
Free Software Engineer | www.openedev.com
U-Boot, Linux | Upstream Maintainer
Hyderabad, India.