pull request u-boot-fsl-qoriq for v2020.04-rc1

2020-01-24 Thread Priyanka Jain
Dear Tom, Please find my pull-request for u-boot-fsl-qoriq/master to next branch https://travis-ci.org/p-priyanka-jain/u-boot/builds/641264692 Summary Updates and fixes for ls1028a, lx2160a, ls1012a, ls1021a, ls2080a, ls1088a platforms; lx2-rev2 pcie support, enetc related updates, layers

[PATCH] board: tbs2910: Add support for generic distro configuration

2020-01-24 Thread Denis 'GNUtoo' Carikli
This keeps the compatibility with the old bootcmd. Signed-off-by: Denis 'GNUtoo' Carikli --- include/configs/tbs2910.h | 39 ++- 1 file changed, 30 insertions(+), 9 deletions(-) diff --git a/include/configs/tbs2910.h b/include/configs/tbs2910.h index b598fca1

Re: [PATCH 2/2] test: verbatim character entry with CTRL-V

2020-01-24 Thread Tom Rini
On Sun, Jan 12, 2020 at 05:33:39PM +0100, Heinrich Schuchardt wrote: > Provide a unit test checking that CTRL-V can be used to add control > characters to the line buffer. > > Signed-off-by: Heinrich Schuchardt I don't know why but this test, run when built with clang fails. A log is here: htt

Re: [PATCH v4 00/10] am57xx: Implement Android 10 boot flow

2020-01-24 Thread Bajjuri, Praneeth
On 1/24/2020 9:53 AM, Sam Protsenko wrote: Android 10 brings a lot of new requirements for bootloaders: [1]. This patch series attempts to implement such a boot process on BeagleBoard X15 platform. Some common code is added too, which can be reused later for other platforms (see "abootimg" comm

Re: [PATCH v2 01/11] clk: Always use the supplied struct clk

2020-01-24 Thread Sean Anderson
On 1/24/20 9:27 AM, Lukasz Majewski wrote: > I saw your patches. Unfortunately, there was the Christmas/New year's > break and afterwards I had some more urgent tasks to do. Apologize for > that... > > What I would like to see here is to reuse (or better - make the code > less confusing) the code.

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Tom Rini
On Fri, Jan 24, 2020 at 06:58:13PM +, Alex Nemirovsky wrote: > one last thing, since we are moving SoC code out of the board tree. > would you prefer each SoC specific header directly in top level > include directory or within nclude/cortina subdirectory? i.e. > include/ca7774.h vs include/co

Re: U-Boot Logo showing incorrect colors with eLCDIF

2020-01-24 Thread Fabio Estevam
Hi Anatolij, On Thu, Jan 23, 2020 at 11:36 AM Anatolij Gustschin wrote: > Do you have 'bits-per-pixel' property in your display node in DT? > Is suitable CONFIG_VIDEO_BPPxx option enabled in your board_defconfig ? Yes, I have it, but it has the wrong value. It should be 24bpp instead of 16bpp.

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Alex Nemirovsky
one last thing, since we are moving SoC code out of the board tree. would you prefer each SoC specific header directly in top level include directory or within nclude/cortina subdirectory? i.e. include/ca7774.h vs include/cortina/ca7774.h? > On Jan 24, 2020, at 10:42 AM, Tom Rini wrote: > >

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Tom Rini
On Fri, Jan 24, 2020 at 06:34:40PM +, Alex Nemirovsky wrote: > Sounds good Tom. We will send the next series with the ARMv8 low_level.S > moved to arch/mach-ca/ > Thanks for you guidance. Did you see anything else in 2nd series that needs > modified before we send > series 3 or can we

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Alex Nemirovsky
Sounds good Tom. We will send the next series with the ARMv8 low_level.S moved to arch/mach-ca/ Thanks for you guidance. Did you see anything else in 2nd series that needs modified before we send series 3 or can we assume those are fine to avoid sending another series after this issues is

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Tom Rini
On Fri, Jan 24, 2020 at 05:55:29PM +, Alex Nemirovsky wrote: > Looking inside > grep -h CA board/cortina/common/armv8/lowlevel_init.S > #if defined(CONFIG_SOC_CA7774) > #if defined(CONFIG_SOC_CA8277B) > > as we understand it, the alternative would lead to maintaining duplicate but > slightly

Re: [BUG] binman: Add a library to access binman entries

2020-01-24 Thread Frank Wunderlich
Hi, a bit more info about this... this line [1] (in my case) breaks the init-chain: return log_msg_ret("binman node", -EINVAL); the binman_init [2] is added to init_sequence_r[] which is executed by initcall_run_list ./common/board_r.c:897: if (initcall_run_list(init_sequence_r)) exiting the

[PATCH] i2c: gpio: Add custom deblock sequence

2020-01-24 Thread Marek Vasut
Add custom deblock dequence for the I2C bus, needed on some devices. This sequence is issued once, when probing the driver, and is controlled by DT property, "i2c-gpio,deblock". Signed-off-by: Marek Vasut --- drivers/i2c/i2c-gpio.c | 67 ++ 1 file changed,

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Alex Nemirovsky
Looking inside grep -h CA board/cortina/common/armv8/lowlevel_init.S #if defined(CONFIG_SOC_CA7774) #if defined(CONFIG_SOC_CA8277B) as we understand it, the alternative would lead to maintaining duplicate but slightly different code for each ARM based SoC in arch/arm/mach-ca7774 arch/arm/mach-ca8

Re: [PATCH 0/4] sunxi: R40: Enable USB and Ethernet

2020-01-24 Thread Jagan Teki
On Thu, Jan 2, 2020 at 5:15 AM Andre Przywara wrote: > > This series enables the USB ports on boards with the Allwinner R40 SoC, > also updates the Bananapi M2 Berry board support. > Patch 1/4 updates the M2 Berry .dts file, so that we get the USB and > Ethernet nodes that we need to enable Ethern

Re: [PATCH 3/3] sunxi: Add Libre Computer ALL-H5-CC H5 board

2020-01-24 Thread Jagan Teki
On Sun, Jan 12, 2020 at 9:06 PM Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > The Libre Computer ALL-H5-CC board is an upgraded version of the > ALL-H3-CC. Changes include: > > - Gigabit Ethernet via external RTL8211E Ethernet PHY > - 16 MiB SPI NOR flash memory > - PoE tap header > - Li

Re: [PATCH 2/3] sunxi: Add Libre Computer ALL-H3-IT H5 board

2020-01-24 Thread Jagan Teki
On Sun, Jan 12, 2020 at 9:06 PM Chen-Yu Tsai wrote: > > From: Chen-Yu Tsai > > The Libre Computer ALL-H3-IT board is a small single board computer that > is roughly the same size as the Raspberry Pi Zero, or around 20% smaller > than a credit card. > > The board features: > > - H2, H3, or H5 So

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

2020-01-24 Thread Marek Vasut
On 1/24/20 1:38 PM, Patrick DELAUNAY wrote: > Hi Marek Hi, >> From: Marek Vasut >> Sent: jeudi 23 janvier 2020 23:45 >> >> On 1/23/20 10:57 AM, Patrick DELAUNAY wrote: >>> Hi Marek, >> >> Hi, >> From: Marek Vasut Sent: mardi 21 janvier 2020 22:39 Add support for DH Electroni

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

2020-01-24 Thread Marek Vasut
Add support for DH Electronics DHCOM SoM and PDK2 rev. 400 carrier board. This is an SoM with STM32MP15xx and an evaluation kit. The baseboard provides Ethernet, UART, USB, CAN and optional display. Signed-off-by: Marek Vasut Cc: Patrick Delaunay Cc: Patrice Chotard --- V2: Rebase on u-boot/mas

Re: [PATCH 1/6] sunxi: move CONFIG_SYS_SPI_U_BOOT_OFFS out of defconfig

2020-01-24 Thread Jagan Teki
On Mon, Jan 6, 2020 at 6:59 AM Andre Przywara wrote: > > For Allwinner SoCs the CONFIG_SYS_SPI_U_BOOT_OFFS value is not really a > board choice: The boot ROM only loads the SPL from offset 0 of the SPI > NOR flash, and loads at most 32KB. This is a similar situation as on MMC, > so consequently we

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Tom Rini
On Fri, Jan 24, 2020 at 05:22:50PM +, Alex Nemirovsky wrote: > We have many common features across ISAs and common ARM, MIPS, other ISA > modification across SoCs. Looking at how this was addressed > by other silicon vendors who support multiple ISAs, lead to this path. i.e. > TI, freesca

Re: tbs2910 patches

2020-01-24 Thread Tom Rini
On Fri, Jan 24, 2020 at 06:20:22PM +0100, Anatolij Gustschin wrote: > Hi Tom, > > I see that you have applied [1] and [2] for CI testing. But building > with [2] is broken unless you also apply patch [3]. > > [1] http://patchwork.ozlabs.org/patch/1221774 > [2] http://patchwork.ozlabs.org/patch/1

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Alex Nemirovsky
We have many common features across ISAs and common ARM, MIPS, other ISA modification across SoCs. Looking at how this was addressed by other silicon vendors who support multiple ISAs, lead to this path. i.e. TI, freescale, and others. ./board/BuR/common ./board/xilinx/common ./board/atmel/c

tbs2910 patches

2020-01-24 Thread Anatolij Gustschin
Hi Tom, I see that you have applied [1] and [2] for CI testing. But building with [2] is broken unless you also apply patch [3]. [1] http://patchwork.ozlabs.org/patch/1221774 [2] http://patchwork.ozlabs.org/patch/1221775 [3] http://patchwork.ozlabs.org/patch/1222015 -- Anatolij

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

2020-01-24 Thread Anatolij Gustschin
On Fri, 24 Jan 2020 10:27:35 -0500 Tom Rini tr...@konsulko.com wrote: > This seems like another commit (along with the question I saw about > i.MX FB not showing the right colors) 2cc393f32fd9 needs to be reworked > so that we default to enabling everything still but let boards opt out > rather th

[PATCH v4 10/10] arm: ti: boot: Use correct dtb and dtbo on Android boot

2020-01-24 Thread Sam Protsenko
Read correct dtb blob from boot.img/recovery.img and apply correct dtbo blobs from dtbo partition. Signed-off-by: Sam Protsenko --- include/configs/ti_armv7_common.h | 7 + include/environment/ti/boot.h | 43 --- 2 files changed, 47 insertions(+), 3 deletions

[PATCH v4 08/10] env: ti: boot: Respect slot_suffix in AVB commands

2020-01-24 Thread Sam Protsenko
Signed-off-by: Sam Protsenko --- include/environment/ti/boot.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/environment/ti/boot.h b/include/environment/ti/boot.h index 6313f3e328..bfbd76c3af 100644 --- a/include/environment/ti/boot.h +++ b/include/environment/ti/boo

[PATCH v4 09/10] env: ti: boot: Boot Android with dynamic partitions

2020-01-24 Thread Sam Protsenko
Changes: - use boot.img instead of boot_fit.img - use .dtb from boot.img v2 - implement recovery boot - always boot ramdisk from boot.img, we can't mount system as root now, as system is a logical partition inside of super partition - don't add "skip_initramfs" to cmdline anymore -

[PATCH v4 06/10] test/py: android: Add test for abootimg

2020-01-24 Thread Sam Protsenko
Unit test for 'abootimg' command. Right now it covers dtb/dtbo functionality in Android Boot Image v2, which was added recently. Running test: $ ./test/py/test.py --bd sandbox --build -k test_abootimg shows that 1/1 tests passes successfully. Signed-off-by: Sam Protsenko --- configs/sandb

[PATCH v4 05/10] doc: android: Convert to Sphinx format

2020-01-24 Thread Sam Protsenko
Convert Android documentation from regular txt format to Sphinx (RST). Also add Android index.rst file and reference it in root index.rst, so that Android documentation is visible. Test: $ make htmldocs $ xdg-open doc/output/index.html Signed-off-by: Sam Protsenko --- MAINTAINERS

[PATCH v4 07/10] configs: am57xx_evm: Enable Android commands

2020-01-24 Thread Sam Protsenko
Enable Android commands that will be needed for Android 10 boot flow implementation, for all AM57x variants. Commands enabled: 1. 'abootimg': - CONFIG_CMD_ABOOTIMG=y 2. 'ab_select': - CONFIG_ANDROID_AB=y - CONFIG_CMD_AB_SELECT=y 3. 'avb': - CONFIG_LIBAVB=y - CONFIG_A

[PATCH v4 03/10] cmd: abootimg: Add abootimg command

2020-01-24 Thread Sam Protsenko
This command can be used to extract fields and image payloads from Android Boot Image. It can be used for example to implement boot flow where dtb is taken from boot.img (as v2 incorporated dtb inside of boot.img). Using this command, one can obtain needed dtb blob from boot.img in scripting manner

[PATCH v4 02/10] image: android: Add routine to get dtbo params

2020-01-24 Thread Sam Protsenko
Android Boot Image v1 adds "Recovery DTB" field in image header and associate payload in boot image itself [1]. Payload should be in Android DTB/DTBO format [2]. That "Recovery DTB" area should be only populated for non-A/B devices, and only in recovery image. Add function to get an address and si

[PATCH v4 01/10] image: android: Add functions for handling dtb field

2020-01-24 Thread Sam Protsenko
Android Boot Image v2 adds "DTB" payload (and corresponding field in the image header). Provide functions for its handling: - android_image_get_dtb_by_index(): Obtain DTB blob from "DTB" part of boot image, by blob's index - android_image_print_dtb_contents(): Iterate over all DTB blobs in

[PATCH v4 04/10] doc: android: Add documentation for Android Boot Image

2020-01-24 Thread Sam Protsenko
Describe Android Boot Image format, how its support is implemented in U-Boot and associated commands usage. Signed-off-by: Sam Protsenko --- cmd/Kconfig| 2 + doc/android/boot-image.rst | 154 + 2 files changed, 156 insertions(+) create mode

[PATCH v4 00/10] am57xx: Implement Android 10 boot flow

2020-01-24 Thread Sam Protsenko
Android 10 brings a lot of new requirements for bootloaders: [1]. This patch series attempts to implement such a boot process on BeagleBoard X15 platform. Some common code is added too, which can be reused later for other platforms (see "abootimg" command and associated C API). Changes in v4: - f

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

2020-01-24 Thread Tom Rini
On Thu, Jan 23, 2020 at 09:58:45PM +0530, Jagan Teki wrote: > 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 >

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

2020-01-24 Thread Andrew F. Davis
On 1/24/20 3:42 AM, Tero Kristo wrote: > On 23/01/2020 19:19, Keerthy wrote: >> >> >> 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/

Re: [PATCH v2 0/7] Add Cortina Access basic DM drivers

2020-01-24 Thread Tom Rini
On Tue, Jan 21, 2020 at 10:19:01AM +, Alex Nemirovsky wrote: > > Cortina Access management has decided that we want to add formal > upstream support of u-boot going forward for our line of SoCs > and evaluation boards. [snip] > MAINTAINERS | 18 +++ > arch/ar

Re: [PATCH v4 06/10] arm: dts: k3-j721e-r5: Add fs_loader node

2020-01-24 Thread Tom Rini
On Wed, Jan 22, 2020 at 09:30:01AM +0530, Keerthy wrote: > Add fs_loader node which will be needed for loading firmwares > from the boot media/filesystem. > > Signed-off-by: Keerthy > Signed-off-by: Lokesh Vutla > --- > arch/arm/dts/k3-j721e-r5-common-proc-board.dts | 6 ++ > 1 file changed

Re: [PATCH v4 02/10] lib: elf: Move the generic elf loading/validating functions to lib

2020-01-24 Thread Tom Rini
On Wed, Jan 22, 2020 at 09:29:57AM +0530, Keerthy wrote: > Move the generic elf loading/validating functions to lib/ > so that they can be re-used and accessed by code existing > outside cmd. > > Signed-off-by: Keerthy > Suggested-by: Simon Goldschmidt > Reviewed-by: Simon Goldschmidt [snip] >

Re: [PATCH v4 01/10] env: nowhere: set default enviroment

2020-01-24 Thread Tom Rini
On Wed, Jan 22, 2020 at 09:29:56AM +0530, Keerthy wrote: > Set default enviroment so that set_env calls succeed when only > ENV_IS_NOWHERE set. > > Signed-off-by: Keerthy > --- > > Changes in v4: > > * Reworded commit log > > env/nowhere.c | 1 + > 1 file changed, 1 insertion(+) > > diff

Re: [PATCH v2 01/11] clk: Always use the supplied struct clk

2020-01-24 Thread Lukasz Majewski
Hi Sean, > > I am not sure the modifications of clk are ok for other people. > > It will be better to send pure riscv relative patch-sets. > > Hm, well at the moment removing the dependency on these two patches > would probably require a substantial rewrite of patch 11, which would > primarily

Re: [PATCH] [FS] Print error message for unknown device type

2020-01-24 Thread Wolfgang Denk
Hello Simon, ping... In message <20200122121253.7b0b3240...@gemini.denx.de> I wrote: > Dear Heiko, > > In message <3546d28c-f638-5357-a20f-5d03db762...@denx.de> you wrote: > > > > > File system commands like "ls" etc. require a device type parameter. > > > If an unknown type is specified, they re

Re: [PATCH] env: add prototypes for weak function

2020-01-24 Thread Wolfgang Denk
Dear Patrick, In message <20200124124142.392-1-patrick.delau...@st.com> you wrote: > > +/* allows to set ext4 interface */ > +const char *env_ext4_get_intf(void); Are you sure these comments are correct? A "get interface" function is not supposed to set anything? > +/* allows to set ext4 device

Re: [PATCH 3/5] cmd: env: check real location for env info command

2020-01-24 Thread Wolfgang Denk
Dear Patrick Delaunay, In message <2020012412.3.I42c79507524e5ad68e85fd60bbd686c4c59523ae@changeid> you wrote: > Check the current ENV location, dynamically provided by the weak > function env_get_location to be sure that the environment can be > persistent. > > The compilation flag ENV_IS_IN

[PATCH] mtd: add prototypes for weak function

2020-01-24 Thread Patrick Delaunay
This patch adds a prototype for the weak function board_mtdparts_default(). It solves one warning when compiling with W=1 on stm32mp1 board: board/st/stm32mp1/stm32mp1.c: warning: no previous prototype for 'board_mtdparts_default' [-Wmissing-prototypes] void board_mtdparts

[PATCH] env: add prototypes for weak function

2020-01-24 Thread Patrick Delaunay
This patch adds prototypes for several weak functions: - env_ext4_get_intf - env_ext4_get_dev_part - env_get_location It solves the following warnings when compiling with W=1 on stm32mp1 board: board/st/stm32mp1/stm32mp1.c:849:19: warning: no previous prototype for 'env_get_location' [-Wmissing-

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

2020-01-24 Thread Patrick DELAUNAY
Hi Marek > From: Marek Vasut > Sent: jeudi 23 janvier 2020 23:45 > > On 1/23/20 10:57 AM, Patrick DELAUNAY wrote: > > Hi Marek, > > Hi, > > >> From: Marek Vasut > >> Sent: mardi 21 janvier 2020 22:39 > >> > >> Add support for DH Electronics DHCOM SoM and PDK2 rev. 400 carrier board. > >> This

[PATCH 4/5] stm32mp1: use the command env info in env_check

2020-01-24 Thread Patrick Delaunay
Activate CMD_NVEDIT_INFO and use the new command "env info -d -p -q" to automatically save the environment on first boot. This patch allows to remove the env_default variable. Signed-off-by: Patrick Delaunay --- arch/arm/mach-stm32mp/Kconfig | 1 + include/configs/stm32mp1.h| 4 +--- 2 fil

[PATCH 1/5] cmd: env: add option for quiet output on env info

2020-01-24 Thread Patrick Delaunay
The "env info" can be use for test with -d and -p parameter, in scripting case the output of the command is not needed. This patch allows to deactivate this output with a new option "-q". For example, we can save the environment if default environment is used and persistent storage is managed wit

[PATCH 2/5] cmd: env: use ENV_IS_IN_DEVICE in env info

2020-01-24 Thread Patrick Delaunay
Use the define ENV_IS_IN_DEVICE to test if one the CONFIG_ENV_IS_IN_... is defined and correct the detection of persistent storage support in the command "env info" if CONFIG_ENV_IS_NOWHERE is activated. Since commit 60d5ed2593c9 ("env: allow ENV_IS_NOWHERE with other storage target") test CONFIG

[PATCH 5/5] stm32mp1: configs: activate CMD_ERASEENV

2020-01-24 Thread Patrick Delaunay
Activate the command env erase to reset the environment with the command: > env erase it is simpler than: > env default -a > env save Signed-off-by: Patrick Delaunay --- configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_optee_defconfig | 1 + configs/stm32mp15_trusted_defconfig |

[PATCH 3/5] cmd: env: check real location for env info command

2020-01-24 Thread Patrick Delaunay
Check the current ENV location, dynamically provided by the weak function env_get_location to be sure that the environment can be persistent. The compilation flag ENV_IS_IN_DEVICE is not enough when the board dynamically select the available storage location (according boot device for example). T

[PATCH v3 05/10] riscv: sifive: fu540: add DDR4 info

2020-01-24 Thread Pragnesh Patel
Add ddr4 controller and phy related files Signed-off-by: Pragnesh Patel --- board/sifive/fu540/Makefile|4 + board/sifive/fu540/ddr.c | 868 board/sifive/fu540/regconfig-ctl.h | 270 ++ board/sifive/fu540/regconfig-phy.h | 1220 +++

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

2020-01-24 Thread Keerthy
On 23/01/20 10:49 pm, Keerthy wrote: 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

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

2020-01-24 Thread Faiz Abbas
Enable configs to support eMMC boot support. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- 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_defconf

[PATCH v2 05/10] mmc: am654_sdhci: Update output tap delay writes

2020-01-24 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 Signed-off-by: Lokesh Vutla --- arch/a

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

2020-01-24 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 Signed-off-by: Lokesh Vutla --- arc

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

2020-01-24 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

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

2020-01-24 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 v2 09/10] configs: am65x_evm: Add CONFIG_SUPPORT_EMMC_BOOT

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

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

2020-01-24 Thread Faiz Abbas
Expose sdhci_init() as non-static. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- 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/d

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

2020-01-24 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 Signed-off-by: Lokesh Vutla --- drivers/mmc/fsl_esdhc_imx.c | 1 - d

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

2020-01-24 Thread Faiz Abbas
Add an init() API for platform specific init() operations. Signed-off-by: Faiz Abbas Signed-off-by: Lokesh Vutla --- drivers/mmc/mmc.c | 13 ++--- include/mmc.h | 7 +++ 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/mmc/mmc.c b/drivers/mmc/mmc.c index

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

2020-01-24 Thread Faiz Abbas
The following patches add support for eMMC boot in TI's Am65x and J721e devices. v2: 1. Reordered the patches according to Lokesh's preference 2. Fixed patch 2 breaking platforms where DM_MMC is not enabled. Faiz Abbas (10): mmc: Add a saved_clock member mmc: Add init() API mmc: Merge SD_LE

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

2020-01-24 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 Signed-off-by: Lokesh Vutla --- include/mmc.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/mmc.h b/include/mmc.h index b5cb514f57..2f

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

2020-01-24 Thread Stefano Babic
Hi Marcel, On 23/01/20 23:11, Marcel Ziswiler wrote: > Hi Igor > >> 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. > > Due to missing i.M

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

2020-01-24 Thread Tero Kristo
On 23/01/2020 19:19, Keerthy wrote: 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

Re: [PATCH 2/3] sunxi: Add Libre Computer ALL-H3-IT H5 board

2020-01-24 Thread Chen-Yu Tsai
On Fri, Jan 24, 2020 at 2:24 PM Jagan Teki wrote: > > On Tue, Jan 21, 2020 at 1:11 PM Chen-Yu Tsai wrote: > > > > On Tue, Jan 21, 2020 at 3:29 PM Jagan Teki > > wrote: > > > > > > On Sun, Jan 12, 2020 at 9:06 PM Chen-Yu Tsai wrote: > > > > > > > > From: Chen-Yu Tsai > > > > > > > > The Libre

AW: [EXT] Issue with saveenv() and the QSPI NOR memory MICRON MT25QU01GBBB

2020-01-24 Thread florian.man...@siemens.com
Hi Kuldeep, After bringing my local U-Boot to the v2020.01, applied your series of patch and do the necessary modifications. Our U-Boot is now correctly working with the QSPI NOR Flash. Even better, it's now compatible with the 2 variants of our board (32MiB <=> 128MiB QSPI NOR Flash) without a

RE: [PATCH v3 03/10] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-01-24 Thread Pragnesh Patel
>-Original Message- >From: Jagan Teki >Sent: 24 January 2020 11:58 >To: Pragnesh Patel >Cc: U-Boot-Denx ; Atish Patra >; palmerdabb...@google.com; Bin Meng >; Paul Walmsley ( Sifive) >; Troy Benjegerdes ( Sifive) >; Anup Patel ; Sagar >Kadam ; Simon Glass ; >AKASHI Takahiro ; Marek BehĂșn