[U-Boot] [PATCH 1/2] ARM: imx: cm_fx6: export board and soc info to env

2018-01-09 Thread christopher.spinrath
From: Christopher Spinrath Like many other i.MX6 based boards, there are multiple variants of the cm-fx6 module featuring different SoC variants. Furthermore, the module can be paired with multiple baseboards. At the same time modern distribution like Fedora require U-Boot to select a proper dev

[U-Boot] [PATCH 2/2] ARM: imx: cm_fx6: env: try to determine dtb to use

2018-01-09 Thread christopher.spinrath
From: Christopher Spinrath Some distributions like Fedora expect U-Boot to select a proper devicetree. Since there are several variants of the cm-fx6 module featuring different SoC variants and the module can be paired with several baseboards, it is not viable to hardcode a filename. Instead, fo

[U-Boot] [PATCH 1/3] ARM: imx: cm_fx6: env: use standard variables

2017-12-09 Thread christopher.spinrath
From: Christopher Spinrath In preparation for supporting the distro boot command, introduce the standard variables for specifying load addresses, which are documented in README and doc/README.distro, and replace the custom variables used so far with them. Since the current address layout disrega

[U-Boot] [PATCH 2/3] ARM: imx: cm_fx6: env: support distro boot command

2017-12-09 Thread christopher.spinrath
From: Christopher Spinrath The current default environment of the cm_fx6 is not suitable for booting modern distributions. Instead of extending the custom environment, let's use the distro boot command, which has been developed for precisely this use case. If the distro boot command fails, fall

[U-Boot] [PATCH 3/3] ARM: imx: cm_fx6: env: don't run boot scripts twice

2017-12-09 Thread christopher.spinrath
From: Christopher Spinrath Boot scripts located in the root directory of the first partition of USB, mmc, and SATA drives are executed twice: first by the distro boot command and then by the legacy boot command. This may have weird side effects if those scripts only change or extend the environme

[U-Boot] [PATCH 1/4] ARM: imx: cm-fx6: reinstate USB support by syncing the devicetree with Linux

2017-11-30 Thread christopher.spinrath
From: Christopher Spinrath Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support") enabled driver model support for USB, thereby effectively removing USB support because the cm_fx6 devicetree in the U-Boot does *not* enable the USB nodes. Reinstate the USB support by syncing th

[U-Boot] [PATCH 4/4] ARM: imx: cm_fx6: remove esdhc init code from board file

2017-11-30 Thread christopher.spinrath
From: Christopher Spinrath Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support") enabled driver model support for MMC. Remove the old mmc init code, which is no longer used, from the board file. Signed-off-by: Christopher Spinrath --- board/compulab/cm_fx6/cm_fx6.c | 29 ---

[U-Boot] [PATCH 3/4] ARM: imx: cm_fx6: remove sata init code from board file

2017-11-30 Thread christopher.spinrath
From: Christopher Spinrath Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support") enabled driver model support for AHCI. Remove the old, now unused, sata init code from the board file. Signed-off-by: Christopher Spinrath --- board/compulab/cm_fx6/cm_fx6.c | 42 --

[U-Boot] [PATCH 0/4] ARM: imx: cm_fx6: fix & clean up device model support

2017-11-30 Thread christopher.spinrath
From: Christopher Spinrath Hi all, The primary objective of this series is to reinstate basic USB support for the cm_fx6 module which was effectively removed by Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support"). This is achieved by synchronizing the devicetree with Linux

[U-Boot] [PATCH 2/4] ARM: imx: cm_fx6: defconfig: enable CONFIG_DM_KEYBOARD

2017-11-30 Thread christopher.spinrath
From: Christopher Spinrath Commit 5248930ebf48 ("dm: imx: cm_fx6: Enable more driver model support") enabled driver model support for USB. But it missed to enable driver model support for keyboards. As a result, USB keyboards do no longer work. Fix this by enabling driver model support for keybo

[U-Boot] [PATCH] ARM: board: cm_fx6: fix mtd partition fixup

2016-08-23 Thread christopher.spinrath
From: Christopher Spinrath ft_board_setup may return early in the case that the board revision cannot be obtained. In that case it is assumed that no revision specific correction in the fdt is neccessary. But the mtd partitions will not be fixed up either altough they are not revision specific.

[U-Boot] [PATCH v2 2/4] fdt_support: define stub for fdt_fixup_mtdparts

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath Define an inline stub for fdt_fixup_mtdparts in the case that CONFIG_FDT_FIXUP_PARTITIONS is not defined. This avoids the need to guard every call to this function by a proper #ifdef in board files. Signed-off-by: Christopher Spinrath --- Notes: Changes since v1:

[U-Boot] [PATCH v2 3/4] ARM: board: cm_fx6: fixup mtd partitions in the fdt

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath The cm-fx6 module has an on-board st,m25p compatible spi flash chip used for U-Boot (binary & environment). Overwrite the partitions in the device tree by the partition table provided in the mtdparts environment variable, if it is set. This allows to specify a kernel i

[U-Boot] [PATCH v2 4/4] ARM: configs: cm_fx6: add mtd support

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath The cm-fx6 module has an on-board spi flash chip. Enable mtd support and the mtdparts command. Also define a default partitioning, add it to the default environment, and enable support to overwrite the partitioning defined in a device tree by it. Finally, probe for the

[U-Boot] [PATCH v2 1/4] ARM: configs: cm_fx6: improve default environment

2016-07-12 Thread christopher.spinrath
From: Christopher Spinrath Currently, entire script segments have to be changed in the default environment to change the kernel image location or to append kernel cmdline parameters. In the later case this has to be changed for every possible boot device. Introduce new variables for kernel image

[U-Boot] [PATCH v2 0/4] ARM: imx: enhance support for the cm-fx6 module

2016-07-12 Thread christopher.spinrath
Hi, this is v2 of the series. To address the review comments of v1, v2 has an addtional patch (2/4) touching include/fdt_support.h (thus, I added Simon to the recipients). The original cover letter was (for a discussion cf. [2]): this series aims at enhancing support for the cm-fx6 module. In pa