[PATCH v2 07/10] arm: mvebu: clearfog: add SPI offsets

2020-01-18 Thread Joel Johnson
Add reasonable default SPI offsets and ENV size when configured to boot from SPI flash. Signed-off-by: Joel Johnson --- v2 changes: - none There was some reasonable concern raised about duplicating config entries within a board specific config file rather than making board specific configura

[PATCH v2 10/10] arm: mvebu: clearfog: reduce MMC boot assumptions

2020-01-18 Thread Joel Johnson
Reduce those MMC booting assumptions from clearfog_defconfig which are already selected by dependent options via Kconfig. Signed-off-by: Joel Johnson --- v2 changes: - rebased on master to use Baruch's dynamic MMC/SD offset logic - update description, will revisit removal of CONFIG_MVEBU

[PATCH v2 06/10] arm: mvebu: clearfog: Add option for 2.5 Gbps SFP

2020-01-18 Thread Joel Johnson
Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation --- board/solidrun/clearfog/Kconfig| 7 +++ board/solidrun/clearfog/clearfog.c | 4 2 files changed, 11 insertions(+) diff --git a/board/solidrun/clearfog/Kconfig b/board/solidrun/clearfog/Kconfig index a82f98

[PATCH v2 05/10] arm: mvebu: clearfog: Add SATA mode flags

2020-01-18 Thread Joel Johnson
The mPCIe slots on ClearFog Pro and ClearFog Base may be alternately configured for SATA usage. Signed-off-by: Joel Johnson --- v2 changes: - fixed help indentation --- board/solidrun/clearfog/Kconfig| 17 + board/solidrun/clearfog/clearfog.c | 6 ++ 2 files changed

[PATCH v2 01/10] arm: mvebu: fix SerDes table alignment

2020-01-18 Thread Joel Johnson
Tested on Solidrun ClearFog Base. Table alignment was: | Lane # | Speed | Type | | 0| 3 | SATA0 | | 1| 0 | SGMII1 | | 2| 3 | SATA1 | | 3| 5 | USB3 HOST1 | | 4| 5 | USB3 HOST0 | |

[PATCH v2 08/10] arm: mvebu: enable working default boot support

2020-01-18 Thread Joel Johnson
With the move to driver model usage, ensure that the required driver support for SPI and MMC booting is available in SPL. Tested on SolidRun ClearFog devices. Signed-off-by: Joel Johnson --- v2 changes: - change "select" for ENV_IS_IN_X to "imply" to allow disabling the default env locati

[PATCH v2 09/10] arm: mvebu: clearfog: move ENV params to Kconfig

2020-01-18 Thread Joel Johnson
Migrate the values for ENV_SIZE and ENV_OFFSET into board specific Kconfig defaults so they're more accessible for configuration. --- v2 changes: - none Signed-off-by: Joel Johnson --- board/solidrun/clearfog/Kconfig | 8 configs/clearfog_defconfig | 2 -- 2 files changed, 8 in

[PATCH v2 04/10] arm: mvebu: clearfog: Use Pro DT by default

2020-01-18 Thread Joel Johnson
Switch to explicitly using the Pro variant DT, which has been available since Linux 4.11. Also unify the location of DT selection in board_late_init instead of split between detection and static configuration paths. --- v2 changes - newly added in V2 series based on run-time rebasing Signed-of

[PATCH v2 03/10] arm: mvebu: clearfog: initial ClearFog Base variant

2020-01-18 Thread Joel Johnson
Add a unique entry for ClearFog Base variant, reflected in the board name and adjusted SerDes topology. Signed-off-by: Joel Johnson --- v2 changes: - reworked based on Baruch's run-time TLV EEPROM detection series --- arch/arm/mach-mvebu/Kconfig| 2 ++ board/solidrun/clearfog/Kconf

[PATCH v2 00/10] ClearFog Base static variant support

2020-01-18 Thread Joel Johnson
This patch series adds support for ClearFog Base static configuration, as well as updating and fixing the ClearFog support for MMC and SPI booting. V2 changes: - updated against, and dependent on, https://patchwork.ozlabs.org/cover/1200324 Joel Johnson (10): arm: mvebu: fix SerDes table a

[PATCH v2 02/10] arm: mvebu: solidrun: remove hardcoded DTS MAC address

2020-01-18 Thread Joel Johnson
Using a consistent hardcoded MAC address from the DTS file causes issues when using multiple devices on the same network segment. Instead rely on environment configuration or random generation. Signed-off-by: Joel Johnson --- v2 changes: - none --- arch/arm/dts/armada-38x-solidrun-microsom.

RE: [RFC PATCH] imx: imx8mm-evk/imx8mn-evk: enable sysreset driver for SPL

2020-01-18 Thread Peng Fan
> Subject: Re: [RFC PATCH] imx: imx8mm-evk/imx8mn-evk: enable sysreset > driver for SPL > > On 1/17/20 3:33 AM, Peng Fan wrote: > > Hi Marek, > > Hi, > > >> Subject: Re: [RFC PATCH] imx: imx8mm-evk/imx8mn-evk: enable sysreset > >> driver for SPL > >> > >> On 1/16/20 3:21 AM, Peng Fan wrote: > >>

RE: [PATCH] arm: dts: i.mx8x: add #cooling-cells properties

2020-01-18 Thread Peng Fan
> Subject: Re: [PATCH] arm: dts: i.mx8x: add #cooling-cells properties > > On Sat, Jan 18, 2020 at 12:12 PM Anatolij Gustschin wrote: > > > > Fix dtb building warnings: > > Warning (cooling_device_property): > /thermal-zones/cpu-thermal0/cooling-maps/map0: > > Missing property '#cooling-cells' in

Re: Re: Apollo Lake GPIO driver with Coreboot/U-Boot

2020-01-18 Thread Simon Glass
Hi Wolfgang, On Sat, 18 Jan 2020 at 00:56, Wolfgang Wallner wrote: > > Hello Simon, > > > -"Simon Glass" schrieb: - > > On Thu, 16 Jan 2020 at 02:55, Wolfgang Wallner > > wrote: > > > > > > Hello Simon, Bin, all, > > > > > > I have an Apollo Lake based device, where U-Boot is booted as

[RFC PATCH] Provide mechanism for build-time default env entries

2020-01-18 Thread Joel Johnson
This enables the building user to specify environment values to be included in the static default_environment with an image. This is useful to build multiple otherwise like configured images, varying by environment unique entries. --- I expected something like this to already be present, but coul

Re: [PATCH 0/4] Updates for ClearFog EEPROM

2020-01-18 Thread Joel Johnson
On 2020-01-19 00:22, Baruch Siach wrote: Hi Joel, On Sun, Jan 19 2020, Joel Johnson wrote: This set of patches applies on top of https://patchwork.ozlabs.org/cover/1200324/, based on testing using the static configuration fallback updates in a related patch series. Thank you very much. I'm

Re: [PATCH 0/4] Updates for ClearFog EEPROM

2020-01-18 Thread Baruch Siach
Hi Joel, On Sun, Jan 19 2020, Joel Johnson wrote: > This set of patches applies on top of > https://patchwork.ozlabs.org/cover/1200324/, > based on testing using the static configuration fallback updates in a > related patch series. Thank you very much. I'm currently working on an updated serie

[PATCH 4/4] arm: mvebu: clearfog: fix compile w/o EEPROM

2020-01-18 Thread Joel Johnson
Add conditional checks to ensure still builds without warnings when the EEPROM runtime detection is disabled via config. Signed-off-by: Joel Johnson --- board/solidrun/clearfog/clearfog.c | 26 +++--- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/board/soli

[PATCH 3/4] arm: mvebu: clearfog: don't set SPL misc

2020-01-18 Thread Joel Johnson
With SPL_DRIVERS_MISC_SUPPORT being depended on by SPL_CMD_SYS_EEPROM, there is no longer a need to set it separately. Signed-off-by: Joel Johnson --- configs/clearfog_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/clearfog_defconfig b/configs/clearfog_defconfig index e932

[PATCH 2/4] cmd: sys_eeprom reflect I2C dependency in Kconfig

2020-01-18 Thread Joel Johnson
Given that {read,write}_sys_eeprom hardcode reading from I2C EEPROM devices, make the config dependency reflect this fact. This allows config to handle cases such as the following, which previously failed to build. CONFIG_SPL_DRIVERS_MISC_SUPPORT=n CONFIG_CMD_SYS_EEPROM=y CONFIG_SPL_CMD_SYS_EEPRO

[PATCH 1/4] cmd: sys_eeprom: add missing implicit header

2020-01-18 Thread Joel Johnson
This addresses the following compiler warning: ../cmd/sys_eeprom.c: In function ‘is_checksum_valid’: ../cmd/sys_eeprom.c:96:13: warning: implicit declaration of function ‘crc32’ [-Wimplicit-function-declaration] calc_crc = crc32(0, (void *)eeprom, ^ Signed-off-by: Joel Johnson

[PATCH 0/4] Updates for ClearFog EEPROM

2020-01-18 Thread Joel Johnson
This set of patches applies on top of https://patchwork.ozlabs.org/cover/1200324/, based on testing using the static configuration fallback updates in a related patch series. Joel Johnson (4): cmd: sys_eeprom: add missing implicit header cmd: sys_eeprom reflect I2C dependency in Kconfig

Re: [PATCH v2 01/21] mips: add support to restore exception vector base before booting linux

2020-01-18 Thread Weijie Gao
On Fri, 2020-01-17 at 13:15 +0100, Daniel Schwierzeck wrote: > > Am 17.01.20 um 08:45 schrieb Weijie Gao: > > In U-Boot the exception vector base will be moved to top of memory, to be > > used to display register dump when exception occurs. > > > > But some old linux kernel does not honor the bas

Re: [PATCH v2 19/21] mips: mtmips: add SPL support

2020-01-18 Thread Weijie Gao
On Fri, 2020-01-17 at 15:55 +0100, Stefan Roese wrote: > Added Mauro to Cc > > On 17.01.20 08:46, Weijie Gao wrote: > > This patch adds SPL support for mtmips platform. The lowlevel architecture > > is split into SPL and the rest parts are built into a memory loadable > > u-boot image. Optional SP

Re: [PATCH v2 13/21] dts: mtmips: add alternative pinmux node for uart2

2020-01-18 Thread Weijie Gao
On Fri, 2020-01-17 at 15:50 +0100, Stefan Roese wrote: > Added Mauro to Cc > > On 17.01.20 08:46, Weijie Gao wrote: > > This patch adds a new pinmux for UART2, which shares the pins with SPIS. > > > > Signed-off-by: Weijie Gao > > --- > > Changes since v1: newly added > > --- > > arch/mips/dts

Re: [PATCH v2 11/21] dts: mtmips: remove all unusable nodes and properties from mt7628s.dtsi

2020-01-18 Thread Weijie Gao
On Fri, 2020-01-17 at 15:42 +0100, Stefan Roese wrote: > On 17.01.20 08:45, Weijie Gao wrote: > > This patch removes all unused and unusable nodes and properties from > > mt7628s.dtsi. > > > > Signed-off-by: Weijie Gao > > --- > > Changes since v1: splitted from another patch > > Please don't re

Re: [PATCH v2 00/21] Refactor the architecture parts of mt7628

2020-01-18 Thread Weijie Gao
On Fri, 2020-01-17 at 15:40 +0100, Stefan Roese wrote: > Hi Weijie, > > I've added another of my mail addresses to cc (m...@roese.nl) as the > sending to the other 2 addresses does not seem to work. > > On 17.01.20 08:45, Weijie Gao wrote: > > This patch series are divided into two parts: > > >

Re: [PATCH] arm: Enable VIDEO_BPP32 on pinebook.

2020-01-18 Thread Maxime Ripard
Hi, On Sat, Jan 18, 2020 at 03:15:15AM -0800, Vagrant Cascadian wrote: > Video output on the pinebook LCD screen was broken by: > > commit 2cc393f32fd9 ("video: make BPP and ANSI configs optional"). > > Enable VIDEO_BPP32 which was previously enabled by default when > DM_VIDEO was set. > > Signed-

[PATCH v2 09/21] mips: add a option to support not reserving malloc space on initial stack

2020-01-18 Thread Weijie Gao
The initial stack on some platforms is too small to hold a large malloc space. This patch adds a option to allow these platforms not reserving the malloc space on initial stack. These platforms should set the malloc base after DRAM is usable. Signed-off-by: Weijie Gao --- Changes since v1: newly

Re: [PATCH] config_whitelist: Remove CONFIG_MX6UL_14X14_EVK_EMMC_REWORK

2020-01-18 Thread Tom Rini
On Sat, Jan 18, 2020 at 04:52:15PM -0300, Fabio Estevam wrote: > Since commit bcc70bc863af ("mx6ul_14x14_evk: Fix SPL boot hang") the symbol > CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is no longer used, so remove it from > the white list too. > > Signed-off-by: Fabio Estevam > --- > scripts/config_wh

Re: [PATCH] arm: Enable VIDEO_BPP32 on pinebook.

2020-01-18 Thread Tom Rini
On Sat, Jan 18, 2020 at 12:03:02PM -0800, Vagrant Cascadian wrote: > On 2020-01-18, Maxime Ripard wrote: > > On Sat, Jan 18, 2020 at 03:15:15AM -0800, Vagrant Cascadian wrote: > >> Video output on the pinebook LCD screen was broken by: > >> > >> commit 2cc393f32fd9 ("video: make BPP and ANSI config

Re: u-boot 32-bit on Raspberry Pi 4

2020-01-18 Thread Matthias Brugger
On 18/01/2020 04:18, Alexander von Gluck IV wrote: > January 17, 2020 7:59 PM, "Jaehoon Chung" wrote: >> On 1/18/20 10:53 AM, Jaehoon Chung wrote: >> >>> Hi >>> >>> On 1/18/20 9:22 AM, Alexander von Gluck IV wrote: Has anyone successfully used u-boot on the Raspberry Pi 4 in 32-bit mode? >

Re: [PATCH v4 0/6] rsa: extend rsa_verify() for UEFI secure boot

2020-01-18 Thread Heinrich Schuchardt
On 11/21/19 1:11 AM, AKASHI Takahiro wrote: # This patch set is a prerequisite for UEFI secure boot. The current rsa_verify() requires five parameters for a RSA public key for efficiency while RSA, in theory, requires only two. In addition, those parameters are expected to come from FIT image.

Re: [PATCH] arm: Enable VIDEO_BPP32 on pinebook.

2020-01-18 Thread Vagrant Cascadian
On 2020-01-18, Maxime Ripard wrote: > On Sat, Jan 18, 2020 at 03:15:15AM -0800, Vagrant Cascadian wrote: >> Video output on the pinebook LCD screen was broken by: >> >> commit 2cc393f32fd9 ("video: make BPP and ANSI configs optional"). >> >> Enable VIDEO_BPP32 which was previously enabled by defaul

[PATCH] config_whitelist: Remove CONFIG_MX6UL_14X14_EVK_EMMC_REWORK

2020-01-18 Thread Fabio Estevam
Since commit bcc70bc863af ("mx6ul_14x14_evk: Fix SPL boot hang") the symbol CONFIG_MX6UL_14X14_EVK_EMMC_REWORK is no longer used, so remove it from the white list too. Signed-off-by: Fabio Estevam --- scripts/config_whitelist.txt | 1 - 1 file changed, 1 deletion(-) diff --git a/scripts/confi

Re: [PATCH] arm: dts: i.mx8x: add #cooling-cells properties

2020-01-18 Thread Fabio Estevam
On Sat, Jan 18, 2020 at 12:12 PM Anatolij Gustschin wrote: > > Fix dtb building warnings: > Warning (cooling_device_property): > /thermal-zones/cpu-thermal0/cooling-maps/map0: > Missing property '#cooling-cells' in node /cpus/cpu@0 or bad phandle > (referred from cooling-device[0]) > > Signed-of

Re: Please pull u-boot-video

2020-01-18 Thread Tom Rini
On Sat, Jan 18, 2020 at 05:19:46PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > please pull a few fixes for v2020.04-rc1. > > gitlab CI: > https://gitlab.denx.de/u-boot/custodians/u-boot-video/pipelines/1914 > Travis-CI: https://travis-ci.org/vdsao/u-boot-video/builds/638817892 > > Thanks, >

Please pull u-boot-video

2020-01-18 Thread Anatolij Gustschin
Hi Tom, please pull a few fixes for v2020.04-rc1. gitlab CI: https://gitlab.denx.de/u-boot/custodians/u-boot-video/pipelines/1914 Travis-CI: https://travis-ci.org/vdsao/u-boot-video/builds/638817892 Thanks, Anatolij The following changes since commit 2d2f91a480f6849a8548414003d36fa030d434f1:

Re: [PATCH] arm: dts: i.mx8x: add #cooling-cells properties

2020-01-18 Thread Stefano Babic
On 18/01/20 16:12, Anatolij Gustschin wrote: > Fix dtb building warnings: > Warning (cooling_device_property): > /thermal-zones/cpu-thermal0/cooling-maps/map0: > Missing property '#cooling-cells' in node /cpus/cpu@0 or bad phandle > (referred from cooling-device[0]) > Thanks for fixing this. >

[PATCH] arm: dts: i.mx8x: add #cooling-cells properties

2020-01-18 Thread Anatolij Gustschin
Fix dtb building warnings: Warning (cooling_device_property): /thermal-zones/cpu-thermal0/cooling-maps/map0: Missing property '#cooling-cells' in node /cpus/cpu@0 or bad phandle (referred from cooling-device[0]) Signed-off-by: Anatolij Gustschin --- arch/arm/dts/fsl-imx8-ca35.dtsi | 4 1

Re: [PATCH] arm: Enable VIDEO_BPP32 on pinebook.

2020-01-18 Thread Anatolij Gustschin
On Sat, 18 Jan 2020 03:15:15 -0800 Vagrant Cascadian vagr...@debian.org wrote: ... > configs/pinebook_defconfig | 1 + > 1 file changed, 1 insertion(+) Applied to u-boot-video/master, thanks! -- Anatolij

Re: [PATCH] video: fix Coverity missing break issue

2020-01-18 Thread Anatolij Gustschin
On Mon, 6 Jan 2020 23:00:38 +0100 Anatolij Gustschin ag...@denx.de wrote: > Fix: > >>> CID 280902: Control flow issues (MISSING_BREAK) > >>> The case for value "VIDEO_BPP32" is not terminated > >>> by a 'break' statement. > > Reported-by: Tom Rini > Signed-off-by: Anatolij Gustschin > -

[PATCH] arm: Enable VIDEO_BPP32 on pinebook.

2020-01-18 Thread Vagrant Cascadian
Video output on the pinebook LCD screen was broken by: commit 2cc393f32fd9 ("video: make BPP and ANSI configs optional"). Enable VIDEO_BPP32 which was previously enabled by default when DM_VIDEO was set. Signed-off-by: Vagrant Cascadian --- configs/pinebook_defconfig | 1 + 1 file changed, 1