Re: [PATCH 1/2] ARM: at91: Enable SPL_SEPARATE_BSS by default

2020-01-23 Thread Eugen.Hristev
On 10.01.2020 08:32, Stefan Roese wrote: > On 09.01.20 17:30, Gregory CLEMENT wrote: >> According to the linker script for both armv7 and arm926ejs based SoC, >> BSS section was all the time separated for SPL but this symbol was >> only enabled on some boards. However, it is necessary to have it

RE: [PATCH] imx: distinguish POR from POR+WDOG reset cause for first wd

2020-01-23 Thread Flavio Suligoi
Hi Fabio, > > Hi Flavio, > > On Wed, Jan 22, 2020 at 11:18 AM Flavio Suligoi wrote: > > > > In some application the possibility to check if the reset > > is caused by a watchdog is essential, even if it occurs > > simultaneously with POR. > > > > Signed-off-by: Flavio Suligoi > > --- > > arch

[PATCH] Kconfig/fpga_zynq: Depend on FPGA

2020-01-23 Thread Olliver Schinagl
The zynq FPGA bits require the main FPGA bits to be enabled as we otherwise get the following compiler error: arch/arm/mach-zynq/cpu.c: In function 'arch_early_init_r': arch/arm/mach-zynq/cpu.c:118:37: error: 'const struct ' has no member named 'fpga_size' fpga.size = zynq_fpga_descs[cpu_id].fp

[PATCH] Kconfig/debug_uart: Enable proper drivers for debug on Zynq

2020-01-23 Thread Olliver Schinagl
When selecting CONFIG_DEBUG_UART_ZYNQ for one it is imperative that CONFIG_SERIAL_ZYNQ is enabled. Further more, the zynq serial driver is mostly?/all driver model based. However when compiling the early uart for the SPL, none of that is available yet, so for the SPL build this needs to be enabled

[PATCH] Kconfig/ehci/zynq: Add ULPI dependency

2020-01-23 Thread Olliver Schinagl
The ZYNQ has an ULPI interface to a USB PHY and thus depends on it. Prevents the following compilation problem. drivers/usb/host/built-in.o: In function `ehci_zynq_probe': drivers/usb/host/ehci-zynq.c:53: undefined reference to `ulpi_init' drivers/usb/host/ehci-zynq.c:60: u

[PATCH] Kconfig/zynq: Set default SPL_STACK_R_ADDR

2020-01-23 Thread Olliver Schinagl
The zynq architecture depends on SPL_STACK_R_ADDR to be set, and thus it makes sense for the ARCH_ZYNQ to depend on SPL_STACK_R. Further more that address needs to have a sane default. So lets follow the OMAP2PLUS and set a default for the Zynq as well. Signed-off-by: Olliver Schinagl --- arch/a

[PATCH] zynq/spl: Explain unsupported boot mode more

2020-01-23 Thread Olliver Schinagl
When hit with an 'unsupported boot mode' error, a user would be happy to know more, or the why. What boot mode is being tried. Was it as expected. Since we know the selected boot mode at the point of failure, lets print it so we have a better chance at figuring out what went wrong. Signed-off-by:

RE: [PATCH 1/2] board: solidrun lx2160a-cex7: new board

2020-01-23 Thread Priyanka Jain
>-Original Message- >From: Baruch Siach >Sent: Wednesday, December 4, 2019 6:59 PM >To: Priyanka Jain >Cc: u-boot@lists.denx.de; Rabeeh Khoury ; Jon >Nettleton ; Baruch Siach >Subject: [PATCH 1/2] board: solidrun lx2160a-cex7: new board > >Add board level support code for the SolidRun LX

Re: [PATCH 1/2] board: solidrun lx2160a-cex7: new board

2020-01-23 Thread Baruch Siach
Hi Priyanka, On Thu, Jan 23, 2020 at 09:25:29AM +, Priyanka Jain wrote: > >-Original Message- > >From: Baruch Siach > >Sent: Wednesday, December 4, 2019 6:59 PM > >To: Priyanka Jain > >Cc: u-boot@lists.denx.de; Rabeeh Khoury ; Jon > >Nettleton ; Baruch Siach > >Subject: [PATCH 1/2]

RE: [PATCH V2] ARM: dts: stm32: Add DH Electronics DHCOM SoM and PDK2 board

2020-01-23 Thread Patrick DELAUNAY
Hi Marek, > From: Marek Vasut > Sent: mardi 21 janvier 2020 22:39 > > Add support for DH Electronics DHCOM SoM and PDK2 rev. 400 carrier board. > This is an SoM with STM32MP157C and an evaluation kit. The baseboard > provides Ethernet, UART, USB, CAN and optional display. > > Signed-off-by: Mar

RE: [PATCH v2 4/4] board_f.c: Insure 16 alignment of start_addr_sp and reserved memory

2020-01-23 Thread Patrick DELAUNAY
Hi Stephen, > From: Stephen Warren > Sent: mercredi 22 janvier 2020 17:54 > > On 1/22/20 6:52 AM, Patrick Delaunay wrote: > > Add a function reserve_sp() to reserved memory with 16 bits alignment > > after the stack pointer (gd->start_addr_sp) and use this new function > > in board_f.c to reserv

Re: [PATCH v2 0/3] Ethernet support for Raspberry Pi 4

2020-01-23 Thread Andre Przywara
On Wed, 22 Jan 2020 19:05:10 +0100 Matthias Brugger wrote: Hi, Matthias, many thanks for looking at this and giving it a try! > On 22/01/2020 18:34, Andre Przywara wrote: > > On Wed, 22 Jan 2020 18:18:39 +0100 > > Matthias Brugger wrote: > > > > Hi Matthias, > > > >> On 17/01/2020 02:20, A

[PATCH v1 1/5] dt-bindings: pinctrl: imx8mm: add alternative uart muxings

2020-01-23 Thread Igor Opaniuk
From: Max Krummenacher Add alternative UART muxing defines. Signed-off-by: Max Krummenacher Signed-off-by: Igor Opaniuk --- arch/arm/dts/imx8mm-pinfunc.h | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/dts/imx8mm-pinfunc.h b/arch/arm/dts/imx8mm-pinfunc.h i

[PATCH v1 2/5] toradex: tdx-cfg-block: add Verdin i.MX8MM support

2020-01-23 Thread Igor Opaniuk
From: Marcel Ziswiler Add support for storing configuration for Verdin i.MX8MM SoM in Toradex config block. Signed-off-by: Marcel Ziswiler Signed-off-by: Igor Opaniuk --- board/toradex/common/tdx-cfg-block.c | 17 +++-- board/toradex/common/tdx-cfg-block.h | 1 + 2 files changed

[PATCH v1 0/5] board: toradex: add Verdin iMX8MM 2GB WB IT v1.0a

2020-01-23 Thread Igor Opaniuk
This add initial minimal support for the Toradex Verdin iMX8MM 2GB WB IT V1.0A module. They are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports booting from the on-module eMMC only, SDP support is disabled for now. Functionality

[PATCH v1 5/5] board: toradex: verdin-imx8mm: add MAINTAINERS

2020-01-23 Thread Igor Opaniuk
From: Igor Opaniuk Assign Igor Opaniuk as a board maintainer. Signed-off-by: Igor Opaniuk --- board/toradex/verdin-imx8mm/MAINTAINERS | 9 + 1 file changed, 9 insertions(+) create mode 100644 board/toradex/verdin-imx8mm/MAINTAINERS diff --git a/board/toradex/verdin-imx8mm/MAINTAINER

[PATCH v1 4/5] board: toradex: verdin-imx8mm: add README

2020-01-23 Thread Igor Opaniuk
From: Igor Opaniuk Add README with build steps for U-boot and TF-A for Verdin i.MX8MM SoM. Signed-off-by: Igor Opaniuk --- board/toradex/verdin-imx8mm/README | 81 ++ 1 file changed, 81 insertions(+) create mode 100644 board/toradex/verdin-imx8mm/README diff --gi

[PATCH v1 3/5] board: toradex: add Verdin iMX8MM 2GB WB IT v1.0a

2020-01-23 Thread Igor Opaniuk
From: Igor Opaniuk This introduces initial support for the Toradex Verdin iMX8MM 2GB WB IT V1.0A module. They are now strapped to boot from eFuses which are factory fused to properly boot from their on-module eMMC. U-Boot supports booting from the on-module eMMC only, SDP support is disabled for

[PATCH] lx2160a: Add the serdes configurtion details for QDS

2020-01-23 Thread Vikas Singh
Add 8_10_0 and 21_2_0 seredes protocol for QDS Add 10_12_3 seredes protocol for QDS Add the IOSLOT and the mezzanine card mapping against each serdes protocol. Signed-off-by: Vikas Singh --- board/freescale/lx2160a/eth_lx2160aqds.c | 84 +++- 1 file changed, 83 insert

[PATCH] lx2160a: Add the serdes configurtion details for QDS

2020-01-23 Thread Vikas Singh
Add 8_10_0 and 21_2_0 seredes protocol for QDS Add 10_12_3 seredes protocol for QDS Add the IOSLOT and the mezzanine card mapping against each serdes protocol. Signed-off-by: Vikas Singh --- board/freescale/lx2160a/eth_lx2160aqds.c | 84 +++- 1 file changed, 83 insert

Re: [PATCH v1 1/5] dt-bindings: pinctrl: imx8mm: add alternative uart muxings

2020-01-23 Thread Oleksandr Suvorov
On Thu, Jan 23, 2020 at 1:32 PM Igor Opaniuk wrote: > > From: Max Krummenacher > > Add alternative UART muxing defines. > > Signed-off-by: Max Krummenacher > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > arch/arm/dts/imx8mm-pinfunc.h | 21 + > 1 fi

Re: [PATCH v1 2/5] toradex: tdx-cfg-block: add Verdin i.MX8MM support

2020-01-23 Thread Oleksandr Suvorov
On Thu, Jan 23, 2020 at 1:32 PM Igor Opaniuk wrote: > > From: Marcel Ziswiler > > Add support for storing configuration for Verdin i.MX8MM SoM > in Toradex config block. > > Signed-off-by: Marcel Ziswiler > Signed-off-by: Igor Opaniuk > --- > > board/toradex/common/tdx-cfg-block.c | 17 +++

Re: [PATCH v1 4/5] board: toradex: verdin-imx8mm: add README

2020-01-23 Thread Oleksandr Suvorov
On Thu, Jan 23, 2020 at 1:32 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Add README with build steps for U-boot and TF-A for Verdin i.MX8MM SoM. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > board/toradex/verdin-imx8mm/README | 81

Re: [PATCH v1 5/5] board: toradex: verdin-imx8mm: add MAINTAINERS

2020-01-23 Thread Oleksandr Suvorov
On Thu, Jan 23, 2020 at 1:32 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > Assign Igor Opaniuk as a board maintainer. > > Signed-off-by: Igor Opaniuk Reviewed-by: Oleksandr Suvorov > --- > > board/toradex/verdin-imx8mm/MAINTAINERS | 9 + > 1 file changed, 9 insertions(+) > creat

Re: [PATCH v1 1/5] dt-bindings: pinctrl: imx8mm: add alternative uart muxings

2020-01-23 Thread Fabio Estevam
Hi Igor and Max, On Thu, Jan 23, 2020 at 8:32 AM Igor Opaniuk wrote: > > From: Max Krummenacher > > Add alternative UART muxing defines. > > Signed-off-by: Max Krummenacher > Signed-off-by: Igor Opaniuk > --- > > arch/arm/dts/imx8mm-pinfunc.h | 21 + > 1 file changed, 21 i

[PATCH] mx6sxsabresd: Convert to DM_ETH

2020-01-23 Thread Pedro Jardim
This fixes the following warning = WARNING == This board does not use CONFIG_DM_ETH (Driver Model for Ethernet drivers). Please update the board to use CONFIG_DM_ETH before the v2020.07 release. Failure to update by the deadline may result in board removal.

Re: [PATCH 1/1 v1] cmd: gpio: Correct do_gpio() return value

2020-01-23 Thread Tom Rini
On Sun, Jan 05, 2020 at 08:10:56PM +0100, Luka Kovacic wrote: > Use the correct return value in function do_gpio() and update > commands documentation with the return values from command_ret_t enum. > > CMD_RET_SUCCESS is returned on command success and CMD_RET_FAILURE is > returned on command fa

[PATCH 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-01-23 Thread Pedro Jardim
Function init_usb_clk() is not used anywhere, so it can simply be deleted. This was detected by the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:377:6: warning: no previous prototype for ‘init_usb_clk’ [-Wmissing-prototypes] void init_usb_clk(void) ^~~~ Signed-

[PATCH 2/4] clock_imx8mq: Make do_imx8m_showclocks() static

2020-01-23 Thread Pedro Jardim
Since do_imx8m_showclocks() is only used inside this file, make it 'static'. This fixes the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:836:5: warning: no previous prototype for ‘do_imx8m_showclocks’ [-Wmissing-prototypes] int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int flag,

[PATCH 4/4] clock_imx8mq: Make frac_pll_init() static

2020-01-23 Thread Pedro Jardim
Since frac_pll_init() is only used in this file, change it to 'static'. This fixes the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:662:5: warning: no previous prototype for ‘frac_pll_init’ [-Wmissing-prototypes] Signed-off-by: Pedro Jardim --- arch/arm/mach-imx/imx8m/clock

[PATCH 3/4] clock_imx8mq: Remove the function sscg_pll_init()

2020-01-23 Thread Pedro Jardim
Function sscg_pll_init() is not used anywhere, so it can simply be deleted. This was found because of the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:702:5: warning: no previous prototype for ‘sscg_pll_init’ [-Wmissing-prototypes] int sscg_pll_init(u32 pll) ^

Re: [PATCH] mx6sxsabresd: Convert to DM_ETH

2020-01-23 Thread Fabio Estevam
On Thu, Jan 23, 2020 at 8:53 AM Pedro Jardim wrote: > > This fixes the following warning > > = WARNING == > This board does not use CONFIG_DM_ETH (Driver Model > for Ethernet drivers). Please update the board to use > CONFIG_DM_ETH before the v2020.07 releas

[PATCH v2 2/4] clock_imx8mq: Make do_imx8m_showclocks() static

2020-01-23 Thread Pedro Jardim
Since do_imx8m_showclocks() is only used inside this file, make it 'static'. This fixes the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:836:5: warning: no previous prototype for ???do_imx8m_showclocks??? [-Wmissing-prototypes] int do_imx8m_showclocks(cmd_tbl_t *cmdtp, int f

U-Boot Logo showing incorrect colors with eLCDIF

2020-01-23 Thread Fabio Estevam
Hi, We are converting imx7d-sdb and imx6sx-sdb boards to DM_VIDEO, but we are seeing the Freescale logo with incorrect colors (white area is being shown blue, for example). imx6ul-evk has already been converted to DM_VIDEO and also show the incorrect colors. We haven't started to investigate thi

[PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-01-23 Thread Pedro Jardim
Function init_usb_clk() is not used anywhere, so it can simply be deleted. This was detected by the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:377:6: warning: no previous prototype for ???init_usb_clk??? [-Wmissing-prototypes] void init_usb_clk(void) ^~~~ Sig

[PATCH v2 3/4] clock_imx8mq: Remove the function sscg_pll_init()

2020-01-23 Thread Pedro Jardim
Function sscg_pll_init() is not used anywhere, so it can simply be deleted. This was found because of the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:702:5: warning: no previous prototype for ???sscg_pll_init??? [-Wmissing-prototypes] int sscg_pll_init(u32 pll) ^~~~

[PATCH v2 4/4] clock_imx8mq: Make frac_pll_init() static

2020-01-23 Thread Pedro Jardim
Since frac_pll_init() is only used in this file, change it to 'static'. This fixes the following sparse warning: arch/arm/mach-imx/imx8m/clock_imx8mq.c:662:5: warning: no previous prototype for ???frac_pll_init??? [-Wmissing-prototypes] Signed-off-by: Pedro Jardim --- Chages since v1: - Fixed

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Andrew F. Davis
On 1/22/20 11:10 PM, Keerthy wrote: > > > On 22/01/20 9:55 pm, Andrew F. Davis wrote: >> On 1/21/20 8:10 PM, keerthy wrote: >>> >>> >>> On 1/21/2020 6:26 PM, Andrew F. Davis wrote: On 1/21/20 6:07 AM, Keerthy wrote: > Add MAIN domain R5FSS0 remoteproc support from spl. This enables >

Re: imx8qxp mek: Booting mainline kernel with mainline U-Boot

2020-01-23 Thread Lokesh Vutla
On 23/01/20 7:23 PM, Oliver Graute wrote: > On 17/01/20, Lokesh Vutla wrote: > Just wondering if anyone else managed to boot mainline U-Boot with > mainline kernel on i.MX8QXP. I can test it for you with the revert patch for f0cc4eae9a applied tomorrow. >>> >>> Adding in Lokes

Re: imx8qxp mek: Booting mainline kernel with mainline U-Boot

2020-01-23 Thread Oliver Graute
On 17/01/20, Lokesh Vutla wrote: > >>> Just wondering if anyone else managed to boot mainline U-Boot with > >>> mainline kernel on i.MX8QXP. > >> I can test it for you with the revert patch for f0cc4eae9a applied > >> tomorrow. > > > > Adding in Lokesh as he nak'd the revert before because that w

[PATCH 1/4] rockchip: rk3288: Enable pre console buffer

2020-01-23 Thread Jagan Teki
Enable pre console buffer for rk3288 platform. This would help to capture the console messages prior to the console being initialised. Enabling this would help to capture all the console messages on video output source like HDMI. So we can find the full console messages of U-Boot proper on HDMI di

[PATCH 2/4] ARM: dts: rockchip: Sync rk3288-vyasa dts from linux

2020-01-23 Thread Jagan Teki
Sync rk3288-vyasa dts file from Linux. This sync has changes required to work HDMI output on Vyasa RK3288 board. This sync excludes the io_domains node since it is not available in rk3288.dtsi. Changes like vcc50_hdmi, vdd10_lcd and ddc-i2c-bus are not merged to Linux yet but wil resync later if

[PATCH 3/4] rk3288: tinker: Enable HDMI output

2020-01-23 Thread Jagan Teki
Enable HDMI output for Tinker RK3288 board. Signed-off-by: Jagan Teki --- configs/tinker-rk3288_defconfig | 6 ++ include/configs/tinker_rk3288.h | 6 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/configs/tinker-rk3288_defconfig b/configs/tinker-rk3288_defconfig index

[PATCH 4/4] rk3288: vyasa: Add console settings

2020-01-23 Thread Jagan Teki
Add console settings like stdin, stdout and stderr as cros-ec-keyb and vidconsole respectively for Vyasa Rk3288 board. This would certainly help to detect the attached video devices (like HDMI) and print the console message on display. Signed-off-by: Jagan Teki --- include/configs/vyasa-rk3288.

Re: U-Boot Logo showing incorrect colors with eLCDIF

2020-01-23 Thread Anatolij Gustschin
Hi Fabio, On Thu, 23 Jan 2020 10:19:08 -0300 Fabio Estevam feste...@gmail.com wrote: ... > We are converting imx7d-sdb and imx6sx-sdb boards to DM_VIDEO, but we > are seeing the Freescale logo with incorrect colors (white area is > being shown blue, for example). > > imx6ul-evk has already been c

Re: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-01-23 Thread Anatolij Gustschin
On Thu, 23 Jan 2020 10:20:14 -0300 Pedro Jardim jardim.c.pe...@gmail.com wrote: > Function init_usb_clk() is not used anywhere, so it can simply be deleted. > This was detected by the following sparse warning: > > arch/arm/mach-imx/imx8m/clock_imx8mq.c:377:6: warning: no previous prototype > for

[PATCH 00/10] Add Support for eMMC boot in AM65x and J721e

2020-01-23 Thread Faiz Abbas
The following patches add support for eMMC boot in TI's Am65x and J721e devices. Faiz Abbas (10): mmc: Add a saved_clock member arm: K3: sysfw-loader: Add a config_pm_pre_callback() configs: am65x_evm: Add CONFIG_SUPPORT_EMMC_BOOT spl: mmc: Fix spl_mmc_get_uboot_raw_sector() implementation

[PATCH 05/10] mmc: Merge SD_LEGACY and MMC_LEGACY bus modes

2020-01-23 Thread Faiz Abbas
MMC_LEGACY & SD_LEGACY are not differentiated timings in the spec and don't have any meaningful differences. Therefore, get rid of all references to SD_LEGACY and use MMC_LEGACY to mean both of them. Signed-off-by: Faiz Abbas --- drivers/mmc/fsl_esdhc_imx.c | 1 - drivers/mmc/mmc.c |

[PATCH 01/10] mmc: Add a saved_clock member

2020-01-23 Thread Faiz Abbas
Add a saved_clock member to struct mmc to store the previous clock speed in the clock needs to be stopped for some time. Signed-off-by: Faiz Abbas --- include/mmc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mmc.h b/include/mmc.h index b5cb514f57..2f21dbf1b7 100644 --- a/include

[PATCH 03/10] configs: am65x_evm: Add CONFIG_SUPPORT_EMMC_BOOT

2020-01-23 Thread Faiz Abbas
With CONFIG_SUPPORT_EMMC_BOOT moved to Kconfig, move it to defconfig files. Signed-off-by: Faiz Abbas --- configs/am65x_evm_a53_defconfig | 1 + configs/am65x_evm_r5_defconfig | 1 + include/configs/am65x_evm.h | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/a

[PATCH 02/10] arm: K3: sysfw-loader: Add a config_pm_pre_callback()

2020-01-23 Thread Faiz Abbas
System firmware does not guarantee that clocks going out of the device will be stable during power management configuration. There are some DCRC errors when SPL tries to get the next stage during eMMC boot after sysfw pm configuration. Therefore add a config_pm_pre_callback() to switch off the eMM

[PATCH 04/10] spl: mmc: Fix spl_mmc_get_uboot_raw_sector() implementation

2020-01-23 Thread Faiz Abbas
The call to spl_mmc_get_uboot_raw_sector() completely ignores and overwrites the raw_sect value passed from the caller of spl_mmc_load(). Fix this by passing raw_sect to the function and returning the same value in the default case. Signed-off-by: Faiz Abbas --- arch/arm/mach-imx/imx8/image.c |

[PATCH 06/10] mmc: sdhci_am654: Update output tap delay writes

2020-01-23 Thread Faiz Abbas
With the latest RIOT, there is a different otap delay value for each speed mode. Add a new binding with every supported speed mode. Also disable a given speed mode in the host caps if its corresponding otap-del-sel is not present. Signed-off-by: Faiz Abbas --- arch/arm/dts/k3-am65-main.dtsi

[PATCH 10/10] mmc: am654_sdhci: Implement workaround for card detect

2020-01-23 Thread Faiz Abbas
The 4 bit MMC controllers have an internal debounce for the SDCD line with a debounce delay of 1 second. Therefore, after clocks to the IP are enabled, software has to wait for this time before it can power on the controller. Add an init() callback which polls on sdcd for a maximum of 2 seconds be

Re: [PATCH v2 1/4] clock_imx8mq: Delete not used init_usb_clk()

2020-01-23 Thread Fabio Estevam
Hi Anatolij, On Thu, Jan 23, 2020 at 11:43 AM Anatolij Gustschin wrote: > > On Thu, 23 Jan 2020 10:20:14 -0300 > Pedro Jardim jardim.c.pe...@gmail.com wrote: > > > Function init_usb_clk() is not used anywhere, so it can simply be deleted. > > This was detected by the following sparse warning: > >

[PATCH 09/10] mmc: sdhci: Expose sdhci_init() as non-static

2020-01-23 Thread Faiz Abbas
Expose sdhci_init() as non-static. Signed-off-by: Faiz Abbas --- drivers/mmc/sdhci.c | 2 +- include/sdhci.h | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c index 01fa5a9d4d..4fce85a0ea 100644 --- a/drivers/mmc/sdhci.c +++ b/driv

[PATCH 08/10] mmc: Add init() API

2020-01-23 Thread Faiz Abbas
Add an init() API for platform specific init() operations. Signed-off-by: Faiz Abbas --- drivers/mmc/mmc.c | 15 +++ include/mmc.h | 7 +++ 2 files changed, 14 insertions(+), 8 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index 364d39bf3b..a055ecbc9d 1006

[PATCH 07/10] configs: j721e_evm: Add Support for eMMC boot

2020-01-23 Thread Faiz Abbas
Enable configs to support eMMC boot support. Signed-off-by: Faiz Abbas --- configs/j721e_evm_a72_defconfig | 3 +++ configs/j721e_evm_r5_defconfig | 3 +++ 2 files changed, 6 insertions(+) diff --git a/configs/j721e_evm_a72_defconfig b/configs/j721e_evm_a72_defconfig index 1cc75ce18a..553608c2

Re: U-Boot Logo showing incorrect colors with eLCDIF

2020-01-23 Thread Oleksandr Suvorov
Hi Fabio, On Thu, Jan 23, 2020 at 3:19 PM Fabio Estevam wrote: > > Hi, > > We are converting imx7d-sdb and imx6sx-sdb boards to DM_VIDEO, but we > are seeing the Freescale logo with incorrect colors (white area is > being shown blue, for example). > We had a similar issue when mxsfb driver tried

[PATCH 0/4] rockchip: rk3399: Fix HDMI out

2020-01-23 Thread Jagan Teki
Due to recent Linux dts(i) sync for rk3399. the existing vop driver is not working with HDMI out on RK3399. These patches fixing the same and enabled HDMI out new boards. Any inputs? Jagan. Jagan Teki (4): arm64: dts: rk3399-u-boot: Delete vop assigned-clocks/rates video: rockchip: Fix vop m

[PATCH 2/4] video: rockchip: Fix vop modes for rk3399

2020-01-23 Thread Jagan Teki
VOP display endpoint pipeline configuration is differs between rk3288 vs rk3399. These VOP pipeline configuration depends on how the different display interfaces connected in sequence to IN and OUT ports like for, RK3288: vopb_out: port { #address-cells = <1>; #size-cells = <0>;

[PATCH 3/4] rockchip: Enable pre console for rk3399

2020-01-23 Thread Jagan Teki
Enable pre console buffer for rk3399 platform. This would help to capture the console messages prior to the console being initialised. Enabling this would help to capture all the console messages on video output source like HDMI. So we can find the full console messages of U-Boot proper on HDMI di

[PATCH 4/4] rockchip: Enable HDMI output on rk3399 board w/ HDMI

2020-01-23 Thread Jagan Teki
Enable config options and console setting to respective rk3399 board for HDMI output. Boards supported and tested on this patch are: - NanoPc T4 - NanoPi M4 - NanoPi Neo4 - ROC-RK3399-PC Signed-off-by: Jagan Teki --- configs/nanopc-t4-rk3399_defconfig | 6 ++ configs/nanopi-m4-rk3399_defc

[PATCH 1/4] arm64: dts: rk3399-u-boot: Delete vop assigned-clocks/rates

2020-01-23 Thread Jagan Teki
Linux supporting assigned-clocks for VOP on rk3399 by assuming U-Boot not initializing it on this linux commit: commit <617f4472bdd3> ("arm64: dts: rockchip: init rk3399 vop clock rates") There is no specific need to initialize these assigned clock in U-Boot as video drivers still work with defau

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Keerthy
On 23/01/20 6:54 pm, Andrew F. Davis wrote: On 1/22/20 11:10 PM, Keerthy wrote: On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On 1/21/2020 6:26 PM, Andrew F. Davis wrote: On 1/21/20 6:07 AM, Keerthy wrote: Add MAIN domain R5FSS0 remoteproc support from

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Jagan Teki
On Mon, Jan 20, 2020 at 11:10 PM Alexander Graf wrote: > > > On 20.01.20 18:22, Tom Rini wrote: > > +A few people that may have insight to my question > > > > On Sat, Dec 21, 2019 at 01:24:31PM +0530, Jagan Teki wrote: > > > >> Add distro boot command support for SPI flash. > >> > >> This distro b

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Tom Rini
On Thu, Jan 23, 2020 at 10:25:50PM +0530, Jagan Teki wrote: > On Mon, Jan 20, 2020 at 11:10 PM Alexander Graf wrote: > > > > > > On 20.01.20 18:22, Tom Rini wrote: > > > +A few people that may have insight to my question > > > > > > On Sat, Dec 21, 2019 at 01:24:31PM +0530, Jagan Teki wrote: > > >

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Andrew F. Davis
On 1/23/20 11:44 AM, Keerthy wrote: > > > On 23/01/20 6:54 pm, Andrew F. Davis wrote: >> On 1/22/20 11:10 PM, Keerthy wrote: >>> >>> >>> On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: > > > On 1/21/2020 6:26 PM, Andrew F. Davis wrote: >> On 1/2

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Jagan Teki
On Thu, Jan 23, 2020 at 10:33 PM Tom Rini wrote: > > On Thu, Jan 23, 2020 at 10:25:50PM +0530, Jagan Teki wrote: > > On Mon, Jan 20, 2020 at 11:10 PM Alexander Graf wrote: > > > > > > > > > On 20.01.20 18:22, Tom Rini wrote: > > > > +A few people that may have insight to my question > > > > > > >

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Tom Rini
On Thu, Jan 23, 2020 at 10:41:15PM +0530, Jagan Teki wrote: > On Thu, Jan 23, 2020 at 10:33 PM Tom Rini wrote: > > > > On Thu, Jan 23, 2020 at 10:25:50PM +0530, Jagan Teki wrote: > > > On Mon, Jan 20, 2020 at 11:10 PM Alexander Graf wrote: > > > > > > > > > > > > On 20.01.20 18:22, Tom Rini wrote

Re: [PATCH v3 02/10] arm: k3: Add support for loading non linux remote cores

2020-01-23 Thread Keerthy
On 23/01/20 10:35 pm, Andrew F. Davis wrote: On 1/23/20 11:44 AM, Keerthy wrote: On 23/01/20 6:54 pm, Andrew F. Davis wrote: On 1/22/20 11:10 PM, Keerthy wrote: On 22/01/20 9:55 pm, Andrew F. Davis wrote: On 1/21/20 8:10 PM, keerthy wrote: On 1/21/2020 6:26 PM, Andrew F. Davis wrote

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Jagan Teki
On Thu, Jan 23, 2020 at 10:45 PM Tom Rini wrote: > > On Thu, Jan 23, 2020 at 10:41:15PM +0530, Jagan Teki wrote: > > On Thu, Jan 23, 2020 at 10:33 PM Tom Rini wrote: > > > > > > On Thu, Jan 23, 2020 at 10:25:50PM +0530, Jagan Teki wrote: > > > > On Mon, Jan 20, 2020 at 11:10 PM Alexander Graf wr

Re: [PATCH v4 08/16] efi_loader: image_loader: support image authentication

2020-01-23 Thread Heinrich Schuchardt
On 1/22/20 8:42 AM, AKASHI Takahiro wrote: Heinrich, On Wed, Jan 22, 2020 at 10:13:48AM +0900, AKASHI Takahiro wrote: On Tue, Jan 21, 2020 at 08:15:06AM +0100, Heinrich Schuchardt wrote: On 1/21/20 7:12 AM, AKASHI Takahiro wrote: On Fri, Jan 17, 2020 at 06:51:50AM +0100, Heinrich Schuchardt w

Re: [RFC PATCH 0/5] arm: Restore minimal support for ST-Ericsson U8500 SoC

2020-01-23 Thread Stephan Gerhold
On Wed, Jan 22, 2020 at 01:03:50PM -0500, Tom Rini wrote: > On Wed, Jan 22, 2020 at 05:47:07PM +0100, Stephan Gerhold wrote: > > Hi Tom, > > > > On Sat, Jan 04, 2020 at 06:45:14PM +0100, Stephan Gerhold wrote: > > > This patch series restores minimal U-Boot support for > > > the ST-Ericsson NovaTh

Re: [PATCH 02/11] distro_bootcmd: Add SF support

2020-01-23 Thread Tom Rini
On Thu, Jan 23, 2020 at 10:59:17PM +0530, Jagan Teki wrote: > On Thu, Jan 23, 2020 at 10:45 PM Tom Rini wrote: > > > > On Thu, Jan 23, 2020 at 10:41:15PM +0530, Jagan Teki wrote: > > > On Thu, Jan 23, 2020 at 10:33 PM Tom Rini wrote: > > > > > > > > On Thu, Jan 23, 2020 at 10:25:50PM +0530, Jagan

Re: Pull request: u-boot-rockchip-20200120

2020-01-23 Thread Tom Rini
On Mon, Jan 20, 2020 at 10:30:07AM +0800, Kever Yang wrote: > Hi Tom, > > Please pull the rockchip updates: > - Support SPI boot and redundant boot for rk3399 > - Support binman for rockchip platform > - Update ram driver and add ddr4 support for rk3328 > > Travis: > https://travis-ci.org/kevery

[PATCH v3 00/23] i2c: designware_ic2: Improvements to timing and general cleanup

2020-01-23 Thread Simon Glass
This series updates the Designware I2C driver to support reading its timing from the device tree and handling it in units of nanoseconds instead of clock cycles. A new function converts from nanoseconds to the units used by the I2C controller and makes sure that the requested bus speed is not exce

[PATCH v3 03/23] i2c: designware_i2c: Include clk.h in the header file

2020-01-23 Thread Simon Glass
We use struct clk here so really should include this header file to avoid build errors. Also switch the order of clk.h in the C file to match the required code style. Signed-off-by: Simon Glass Reviewed-by: Ley Foon Tan Reviewed-by: Jun Chen Reviewed-by: Heiko Schocher --- Changes in v3: None

[PATCH v3 09/23] i2c: designware_i2c: Drop scl_sda_cfg parameter

2020-01-23 Thread Simon Glass
Instead of passing this parameter into __dw_i2c_set_bus_speed(), pass in the driver's private data, from which the function can obtain that information. This allows the function to have access to the full state of the driver. Signed-off-by: Sicomp_param1mon Glass Reviewed-by: Heiko Schocher Sign

[PATCH v3 07/23] i2c: designware_i2c: Bring in the binding file

2020-01-23 Thread Simon Glass
Bring in this file from Linux v5.4. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None .../i2c/i2c-designware.txt| 73 +++ 1 file changed, 73 insertions(+) create mode 100644 doc/device-tree-bindings/i2c/i2c-

[PATCH v3 08/23] i2c: designware_i2c: Read device-tree properties

2020-01-23 Thread Simon Glass
The i2c controller defines a few timing properties. Read these in and store them for use by the driver. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/designware_i2c.c | 8 ++-- drivers/i2c/designware_i2c.h | 15

[PATCH v3 15/23] i2c: designware_i2c: Update to use standard enums for speed

2020-01-23 Thread Simon Glass
Update this driver to use the new standard enums for speed. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/designware_i2c.c | 10 +- drivers/i2c/designware_i2c.h | 13 - 2 files changed, 5 insertions(+), 18 de

[PATCH v3 19/23] i2c: Update drivers to use enum for speed

2020-01-23 Thread Simon Glass
Convert the obvious uses of i2c bus speeds to use the enum. Use livetree access for code changes. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/exynos_hs_i2c.c | 5 +++-- drivers/i2c/fsl_i2c.c| 3 ++- drivers/i2c/i2c

[PATCH v3 18/23] i2c: stm32: Update to use standard enums for speed

2020-01-23 Thread Simon Glass
Update this driver to use the new standard enums for speed. Signed-off-by: Simon Glass Reviewed-by: Patrick Delaunay Tested-by: Patrick Delaunay Reviewed-by: Heiko Schocher --- Changes in v3: - Drop note about moving to driver model - Use ARRAY_SIZE() for i2c_specs bounds check Changes in v2

[PATCH v3 12/23] i2c: designware_i2c: Add spike supression

2020-01-23 Thread Simon Glass
Some versions of this peripheral include a spike-suppression phase of the bus. Add support for this. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: - Add a few more clean-up patches for i2c drivers/i2c/designware_i2c.c | 10 +- drive

[PATCH v3 14/23] i2c: ast_i2c: Update to use standard enums for speed

2020-01-23 Thread Simon Glass
Update this driver to use the new standard enums for speed. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/ast_i2c.c | 2 +- drivers/i2c/ast_i2c.h | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/i2c/

[PATCH v3 10/23] i2c: designware_i2c: Put hold config in a struct

2020-01-23 Thread Simon Glass
Create a struct to hold the three timing parameters. This will make it easier to move these calculations into a separate function in a later patch. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/designware_i2c.c | 82

[PATCH v3 11/23] i2c: designware_i2c: Rewrite timing calculation

2020-01-23 Thread Simon Glass
At present the driver can end up with timing parameters which are slightly faster than those expected. It is possible to optimise the parameters to get the best possible result. Create a new function to handle the timing calculation. This uses a table of defaults for each speed mode rather than wr

[PATCH v3 16/23] i2c: kona_i2c: Update to use standard enums for speed

2020-01-23 Thread Simon Glass
Update this driver to use the new standard enums for speed. Note: This driver needs to move to driver model. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/kona_i2c.c | 28 +++- 1 file changed, 11 inserti

[PATCH v3 20/23] i2c: designware_i2c: Add support for fast-plus speed

2020-01-23 Thread Simon Glass
Fast-plus runs at 1MHz and is used by some devices. Add support for this. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch with support for fast-plus speed Changes in v2: None drivers/i2c/designware_i2c.c | 12 ++-- drivers/i2c/designware_i2c.h | 2 ++ 2 files changed, 1

[PATCH v3 17/23] i2c: omap: Update to use standard enums for speed

2020-01-23 Thread Simon Glass
Update this driver to use the new standard enums for speed. Note: This driver needs to move to driver model. Signed-off-by: Simon Glass Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/omap24xx_i2c.c | 2 +- drivers/i2c/omap24xx_i2c.h | 4 2 files chan

[PATCH v3 21/23] i2c: designware_i2c: Move dw_i2c_speed_config to header

2020-01-23 Thread Simon Glass
This is used to store the speed information for a bus. We want to provide this to ACPI so that it can tell the kernel. Move this struct to the header file so it can be accessed by the ACPI i2c implementation being added later. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to move

[PATCH v3 22/23] i2c: designware_i2c: Separate out the speed calculation

2020-01-23 Thread Simon Glass
We want to be able to calculate the speed separately from actually setting the speed, so we can generate the required ACPI tables. Split out the calculation into its own function. Drop the double underscore on __dw_i2c_set_bus_speed while we are here. That is reserved for compiler internals. Sign

[PATCH v3 23/23] i2c: designware_i2c: Do more in the probe() method

2020-01-23 Thread Simon Glass
Move some of the code currently in the ofdata_to_platdata() method to probe() so that it is not executed when generating ACPI tables. Signed-off-by: Simon Glass --- Changes in v3: - Add new patch to do more in the probe() method Changes in v2: None drivers/i2c/designware_i2c.c | 16 --

[PATCH v3 06/23] i2c: designware_i2c: Use an accurate bus clock instead of MHz

2020-01-23 Thread Simon Glass
At present the driver uses an approximation for the bus clock, e.g. 166MHz instead of 166 2/3 MHz. This can result in small errors in the resulting I2C speed, perhaps 0.5% or so. Adjust the existing code to start from the accurate figure, even if later rounding reduces this accuracy. Update the

[PATCH v3 13/23] i2c: Add enums for i2c speed and address size

2020-01-23 Thread Simon Glass
Some drivers define their own speed enums and use their own constants for speed. It makes sense to have a unified defition of the different speeds. Since many controllers have to do different things for fast/high speed, it is a good idea to have an enum for the mode. Add these as well as an enum

[PATCH] watchdog: Use dev_read only if OF_PLATDATA is not enabled

2020-01-23 Thread Walter Lozano
Currently watchdog tries to use dev_read_u32_default to get timeout configuration in case OF_CONTROL is enabled. However, if SPL is built with OF_PLATDATA this has no sense as there is no device tree. This patch fixes this issue by only use dev_read_u32_default if OF_CONTROL is enabled but OF_PLAT

[PATCH v3 01/23] i2c: designware_i2c: Add more registers

2020-01-23 Thread Simon Glass
Some versions of this peripherals provide more control of the bus behaviour. Add definitions for these registers. Signed-off-by: Simon Glass Reviewed-by: Ley Foon Tan Reviewed-by: Jun Chen Reviewed-by: Heiko Schocher --- Changes in v3: - Fix the address of comp_param1 by adding a gap Changes

[PATCH v3 05/23] i2c: designware_i2c: Use an enum for selected speed mode

2020-01-23 Thread Simon Glass
Group these #defines into an enum to make it easier to understand the relationship between them. Signed-off-by: Simon Glass Reviewed-by: Jun Chen Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c/designware_i2c.c | 2 +- drivers/i2c/designware_i2c.h | 10 ++

[PATCH v3 04/23] i2c: designware_i2c: Rename 'max' speed to 'high' speed

2020-01-23 Thread Simon Glass
Some SoCs support a higher speed than what is currently called 'max' in this driver. Rename it to 'high' speed, which is the official name of the 3.4MHz speed. Signed-off-by: Simon Glass Reviewed-by: Jun Chen Reviewed-by: Heiko Schocher --- Changes in v3: None Changes in v2: None drivers/i2c

  1   2   >