Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-11-10 Thread Rick Chen
Hi Lukas > > Hi Rick, > > On Fri, 2019-11-08 at 15:27 +0800, Rick Chen wrote: > > Hi Atish > > > > > Hi Atish > > > > > > > On Thu, 2019-11-07 at 19:41 +0800, Rick Chen wrote: > > > > > Hi Anup & Lukas > > > > > > > > > > Anup Patel 於 2019年11月7日 週四 下午6:44寫道: > > > > > > On Thu, Nov 7, 2019 at 3:1

[U-Boot] Pull request: u-boot-rockchip-20191026

2019-11-10 Thread Kever Yang
ository at: https://gitlab.denx.de/u-boot/custodians/u-boot-rockchip.git tags/u-boot-rockchip-20191110 for you to fetch changes up to f74a089e47e0b485fb70dcadfbf093daf64a740a: rockchip: firefly-rk3288: Enable TPL support (2019-11-10 20:4

Re: [U-Boot] [PATCH 1/2] cosmetic: Fix spelling and whitespace errors

2019-11-10 Thread Chris Packham
On Mon, Nov 11, 2019 at 5:23 AM Thomas Hebb wrote: > > Signed-off-by: Thomas Hebb > --- > Makefile| 2 +- > README | 4 ++-- > arch/arm/cpu/armv8/sec_firmware.c | 2 +- > arch/arm/mach-rockchip/Kconfig | 2 +- > arch

Re: [U-Boot] [PATCH] env: Access Environment in SPI flashes before relocation

2019-11-10 Thread Heiko Schocher
Hello Simon, Am 10.11.2019 um 15:51 schrieb Simon Goldschmidt: Heiko Schocher mailto:h...@denx.de>> schrieb am Sa., 9. Nov. 2019, 05:02: Enable the new Kconfig option ENV_SPI_EARLY if you want to use Environment in SPI flash before relocation. Call env_init() and than you can use

Re: [U-Boot] [PATCH v2] spi: cadence_qspi: support DM_CLK

2019-11-10 Thread Simon Goldschmidt
Vignesh Raghavendra schrieb am Mo., 11. Nov. 2019, 05:22: > > > On 10/11/19 5:11 PM, Vignesh Raghavendra wrote: > > Hi Simon, > > > > On 24-Oct-19 11:53 PM, Simon Goldschmidt wrote: > >> From: Simon Goldschmidt > >> > >> Support loading clk speed via DM instead of requiring ad-hoc code. > >> > >

[U-Boot] pull request u-boot-fsl-qoriq

2019-11-10 Thread Priyanka Jain
Dear Tom, Please find my pull-request for u-boot-fsl-qoriq/master https://travis-ci.org/p-priyanka-jain/u-boot/builds/609183013 Summary Rename CONFIG_SECURE_BOOT to CONFIG_NXP_ESBC. Few bug fixes and updates related to SPI, hwconfig, ethernet, fsl-layerscape, pci, icid, PSCI priyankaja

Re: [U-Boot] [PATCH v2] spi: cadence_qspi: support DM_CLK

2019-11-10 Thread Vignesh Raghavendra
On 10/11/19 5:11 PM, Vignesh Raghavendra wrote: > Hi Simon, > > On 24-Oct-19 11:53 PM, Simon Goldschmidt wrote: >> From: Simon Goldschmidt >> >> Support loading clk speed via DM instead of requiring ad-hoc code. >> >> Signed-off-by: Simon Goldschmidt >> Signed-off-by: Simon Goldschmidt >> ---

[U-Boot] [PATCH 3/3] defconfigs: Migrate CONFIG_SYS_REDUNDAND_ENVIRONMENT

2019-11-10 Thread Tom Rini
Move this symbol to Kconfig. As part of this we can drop a UBI-specific symbol that was a stop-gap for not having this particular symbol in Kconfig. Signed-off-by: Tom Rini --- configs/MPC8308RDB_defconfig | 1 + configs/MPC8313ERDB_NAND_33_defconfig | 1 + configs/

[U-Boot] [PATCH] moveconfig.py: Fix more Python3 UTF issues

2019-11-10 Thread Tom Rini
With the move to using Python 3 for real, we encounter two different issues. First, the file include/video_font_data.h includes at least one UTF-16 character. Given that it does not include any CONFIG symbols it is easiest to just ignore this file. Next, we encounter similar problems with some d

[U-Boot] [PATCH 2/3] pfla02: Migrate CONFIG_ENV_IS_IN_SPI_FLASH to defconfig

2019-11-10 Thread Tom Rini
This board is setting CONFIG_ENV_IS_IN_SPI_FLASH in the header rather than defconfig, fix. Cc: Stefano Babic Signed-off-by: Tom Rini --- configs/pfla02_defconfig | 1 + include/configs/pfla02.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/pfla02_defconfig b/config

[U-Boot] [PATCH 1/3] evb-rk3128: Migrate CONFIG_ENV_IS_IN_MMC to defconfig

2019-11-10 Thread Tom Rini
This board is setting CONFIG_ENV_IS_IN_MMC in the header rather than defconfig, fix. Cc: Kever Yang Signed-off-by: Tom Rini --- configs/evb-rk3128_defconfig | 1 + include/configs/evb_rk3128.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/configs/evb-rk3128_defconfig b/con

Re: [U-Boot] [PATCH v2 0/4] usb: host: dwc2: use driver model for PHY and CLOCK

2019-11-10 Thread Simon Goldschmidt
On Sat, Nov 9, 2019 at 4:46 PM Patrick Delaunay wrote: > > Hi Marek, > > My ci travis build is failing after the last updates (raspberry pi). I am > testing a update with sub for clk disable bulk function: > > https://github.com/patrickdelaunay/u-boot/commit/1d053dd96e6623d02b84654398655a5563ccfd

Re: [U-Boot] [PATCH 1/2] rockchip: allow DRAM init in SPL and fix ordering

2019-11-10 Thread Michael Nazzareno Trimarchi
On Sun, Nov 10, 2019 at 6:12 PM Thomas Hebb wrote: > > b7abef2ecbcc ("rockchip: rk3399: Migrate to use common spl board file") > removed SoC-specific code for RK3399's SPL and in the process introduced > two regressions: > > 1. It caused the previously-unconditional DRAM initialization in > b

Re: [U-Boot] [PATCH 3/3] Makefile: add Rockchip idbloader.img to CLEAN_FILES

2019-11-10 Thread Michael Nazzareno Trimarchi
On Sun, Nov 10, 2019 at 6:13 PM Thomas Hebb wrote: > > This file is generated in the root during Rockchip builds and so should > be cleaned up. > > Signed-off-by: Thomas Hebb > --- > Makefile | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/Makefile b/Makefile > index 4

Re: [U-Boot] [PATCH v2] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-10 Thread Vasily Khoruzhick
On Sun, Nov 10, 2019 at 7:01 AM Peter Robinson wrote: > > On Sat, Nov 9, 2019 at 7:25 PM Vasily Khoruzhick wrote: > > > > rockpro64 needs to setup I/O domains in order for USB to work in u-boot. > > Since we currently don't have a driver to do that, split it into its own > > board file and initia

[U-Boot] [PATCH 2/3] Makefile: consolidate hardcoded lists of files to clean

2019-11-10 Thread Thomas Hebb
Currently, we have two places where we list files that should always be cleaned if they exist. One, the CLEAN_FILES variable, is from the Linux build system and is the proper place to list files. The other, a set of extra arguments passed in the xargs template used to remove files with certain ext

[U-Boot] [PATCH 1/2] rockchip: allow DRAM init in SPL and fix ordering

2019-11-10 Thread Thomas Hebb
b7abef2ecbcc ("rockchip: rk3399: Migrate to use common spl board file") removed SoC-specific code for RK3399's SPL and in the process introduced two regressions: 1. It caused the previously-unconditional DRAM initialization in board_init_f() to only happen when compiling a configuration that

[U-Boot] [PATCH 2/2] rockchip: imply instead of selecting SPL_SYS_MALLOC_SIMPLE

2019-11-10 Thread Thomas Hebb
We shouldn't force which allocator the SPL uses, since there's no platform requirement for one over the other: in fact, we currently allow selection of the TPL allocator but not the SPL one! Signed-off-by: Thomas Hebb --- arch/arm/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[U-Boot] [PATCH 3/3] Kconfig: make TPL_DM_SERIAL depend on TPL_DM

2019-11-10 Thread Thomas Hebb
This missing dependency seems like an oversight, since all other TPL_DM_* options have it. Signed-off-by: Thomas Hebb --- drivers/serial/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index d36a0108ea..ece7d87d4c 100644

[U-Boot] [PATCH 3/3] Makefile: add Rockchip idbloader.img to CLEAN_FILES

2019-11-10 Thread Thomas Hebb
This file is generated in the root during Rockchip builds and so should be cleaned up. Signed-off-by: Thomas Hebb --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4ac722cd44..2d172b29ef 100644 --- a/Makefile +++ b/Makefile @@ -1900,7 +1

[U-Boot] [PATCH 1/3] Kconfig: disambiguate config names for tiny printf

2019-11-10 Thread Thomas Hebb
27084c03d36a ("spl: Allow tiny printf() to be controlled in SPL and TPL") split this option in two for TPL and SPL, but didn't change the Kconfig names, making them hard to set quickly. Signed-off-by: Thomas Hebb --- lib/Kconfig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --g

[U-Boot] [PATCH 2/3] Kconfig: add description for TPL_ROCKCHIP_COMMON_BOARD

2019-11-10 Thread Thomas Hebb
SPL_ROCKCHIP_COMMON_BOARD, an almost identical option, has a title but this one doesn't for some reason. Add a description to make the menu easier to read. Signed-off-by: Thomas Hebb --- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/m

[U-Boot] [PATCH 1/3] Makefile: don't try to construct CLEAN_FILES based on config

2019-11-10 Thread Thomas Hebb
All of the clean targets (clean, dist-clean, mrproper) are run without loading a configuration. That means that any conditional modification of CLEAN_FILES will either always apply or never apply and so shouldn't be in a conditional in the first place. Since CLEAN_FILES is allowed to list nonexist

[U-Boot] [PATCH 2/2] Fix typo in macros, "FIRMEWARE" -> "FIRMWARE"

2019-11-10 Thread Thomas Hebb
Signed-off-by: Thomas Hebb --- arch/arm/cpu/armv8/Kconfig | 2 +- arch/arm/cpu/armv8/sec_firmware.c | 8 drivers/net/pfe_eth/pfe_firmware.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/arch/arm/cpu/armv8/Kconfig b/arch/arm/cpu/armv8/Kconfig index 92a2

[U-Boot] [PATCH 1/2] cosmetic: Fix spelling and whitespace errors

2019-11-10 Thread Thomas Hebb
Signed-off-by: Thomas Hebb --- Makefile| 2 +- README | 4 ++-- arch/arm/cpu/armv8/sec_firmware.c | 2 +- arch/arm/mach-rockchip/Kconfig | 2 +- arch/arm/mach-rockchip/bootrom.c| 4 ++-- arch/arm/mach-rockchip

[U-Boot] [PATCH] ARM: omapl138_lcdk: Allow early init to start instruction cache

2019-11-10 Thread Adam Ford
Currently the omapl138_lcdk has SKIP_LOWLEVEL_INIT set. The README states there is a variation of this for the ARM926EJ-S which allows the board to just skip the call to lowlevel_init() and do the normal CP15 init which enables the instruction cache. On the da850evm, this was shown to improve star

[U-Boot] [PATCH 5/9] mmc: tmio: sdhi: Adjust HS400 calibration offsets

2019-11-10 Thread Marek Vasut
Adjust the TMPPORT3 offsets according to the latest information from the chip vendor. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c

[U-Boot] [PATCH 7/9] mmc: tmio: sdhi: Add SCC error checking

2019-11-10 Thread Marek Vasut
Check SCC for errors after check command if applicable and optionally adjust the bus skew settings accordingly. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 85 ++ 1 file changed, 85 insertions(+) diff --git a/drivers/mmc/r

[U-Boot] [PATCH 2/9] mmc: tmio: sdhi: Track SMPCMP valu in private data

2019-11-10 Thread Marek Vasut
Retain the SMPCMP value from last calibration in private data. This will be later used for skipping bad taps. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 18 ++ drivers/mmc/tmio-common.h | 1 + 2 files changed, 11 insertions(+), 8 deletions(

[U-Boot] [PATCH 6/9] mmc: tmio: sdhi: Disable auto-retuning in HS400

2019-11-10 Thread Marek Vasut
Disable the auto-retuning in HS400 mode in favor of manual calibration. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 7967265

[U-Boot] [PATCH 3/9] mmc: tmio: sdhi: Use 4 tuning taps on M3W up to ES1.2

2019-11-10 Thread Marek Vasut
The M3W up to ES1.2 uses 4 tuning taps for HS400, make it so. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c index 2f34173d03..3f20

[U-Boot] [PATCH 9/9] mmc: tmio: sdhi: Add calibration tables

2019-11-10 Thread Marek Vasut
Instead of using single fixed value for the calibration offset, add tables which dynamically adjust this per calibration code from the SCC. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 97 -- drivers/mmc/tmio-common.h | 1

[U-Boot] [PATCH 8/9] mmc: tmio: sdhi: Skip bad taps

2019-11-10 Thread Marek Vasut
Some of the tuning taps produce suboptimal results. Add code which skips those "bad" taps. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 49 +- drivers/mmc/tmio-common.h | 1 + 2 files changed, 49 insertions(+), 1 deletion(

[U-Boot] [PATCH 4/9] mmc: tmio: sdhi: Adjust DT2FF settings for HS400 mode

2019-11-10 Thread Marek Vasut
Adjust the DT2FF offsets in HS400 according to latest information from the chip vendor. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/mmc/renesas-sdhi.c b/drivers/mmc/renesas-sdhi.c

[U-Boot] [PATCH 1/9] mmc: tmio: sdhi: Track current tap number in private data

2019-11-10 Thread Marek Vasut
Retain the tap number from last calibration in private data. This will be later used for SCC error checking after each command. Signed-off-by: Marek Vasut Cc: Masahiro Yamada --- drivers/mmc/renesas-sdhi.c | 31 --- drivers/mmc/tmio-common.h | 1 + 2 files changed,

Re: [U-Boot] [PATCH v2] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-10 Thread Peter Robinson
On Sat, Nov 9, 2019 at 7:25 PM Vasily Khoruzhick wrote: > > rockpro64 needs to setup I/O domains in order for USB to work in u-boot. > Since we currently don't have a driver to do that, split it into its own > board file and initialize I/O domains here. > > Signed-off-by: Vasily Khoruzhick > ---

Re: [U-Boot] [PATCH] env: Access Environment in SPI flashes before relocation

2019-11-10 Thread Simon Goldschmidt
Heiko Schocher schrieb am Sa., 9. Nov. 2019, 05:02: > Enable the new Kconfig option ENV_SPI_EARLY if you want > to use Environment in SPI flash before relocation. > Call env_init() and than you can use env_get_f() for > accessing Environment variables. > > Signed-off-by: Heiko Schocher > > --- >

Re: [U-Boot] [PATCH 1/3] rockchip: dts: rk3399: move the u-boot, dm-pre-reloc to the u-boot.dtsi

2019-11-10 Thread Peter Robinson
On Sun, Nov 10, 2019 at 2:35 PM Kever Yang wrote: > > > On 2019/11/10 上午4:30, Peter Robinson wrote: > > The u-boot specific pieces in the dts files should be in u-boot.dtsi > > not the main files, this allows easier sync with upstream. The > > rk3399.dtsi has a mix of both so move them all for con

Re: [U-Boot] [PATCH 11/12] rockchip: add px30 architecture core

2019-11-10 Thread Heiko Stuebner
Hi Kever, Am Sonntag, 10. November 2019, 15:13:52 CET schrieb Kever Yang: > On 2019/10/25 下午3:47, Heiko Stübner wrote: > > Am Freitag, 25. Oktober 2019, 04:49:54 CEST schrieb Kever Yang: > >> On 2019/10/25 上午7:28, Heiko Stuebner wrote: > >>> From: Kever Yang > >>> > >>> Add core architecture code

[U-Boot] [PATCH] omap34xx: SPL: enable MMC raw boot with u-boot.img

2019-11-10 Thread Denis 'GNUtoo' Carikli
The following commit enabled raw SPL booting: 22d90d560a omap3: Use raw SPL by default for mmc1 but it was reverted by the following commit: 821c89d38c Revert "omap3: Use raw SPL by default for mmc1" because SPL is unable to distinguish between RAW images and garbage. However if CONFIG_SPL_RAW

Re: [U-Boot] [PATCH v2] rockchip: rk3399: split rockpro64 out of evb_rk3399

2019-11-10 Thread Kever Yang
On 2019/11/10 上午3:24, Vasily Khoruzhick wrote: rockpro64 needs to setup I/O domains in order for USB to work in u-boot. Since we currently don't have a driver to do that, split it into its own board file and initialize I/O domains here. Signed-off-by: Vasily Khoruzhick Reviewed-by: Kever Yan

Re: [U-Boot] [PATCH] rockchip: Fix spl boot order path of booting device

2019-11-10 Thread Kever Yang
On 2019/11/9 下午8:26, Michael Trimarchi wrote: Fix rk3288, rk3188, rk322x, rk3368 Tested on rk3288 U-Boot SPL 2019.10-rc4-00014-g0493073dc4-dirty (Nov 09 2019 - 13:04:06 +0100) board_spl_was_booted_from: brom_bootdevice_id 2 maps to 'dwmmc@ff0f' board_boot_order: could not find dwmmc@ff0f00

Re: [U-Boot] [PATCH v2] spi: cadence_qspi: support DM_CLK

2019-11-10 Thread Simon Goldschmidt
Vignesh Raghavendra schrieb am So., 10. Nov. 2019, 12:41: > Hi Simon, > > On 24-Oct-19 11:53 PM, Simon Goldschmidt wrote: > > From: Simon Goldschmidt > > > > Support loading clk speed via DM instead of requiring ad-hoc code. > > > > Signed-off-by: Simon Goldschmidt > > Signed-off-by: Simon Gold

Re: [U-Boot] [PATCH 1/2] rockchip: dts: tinker: Move u-boot dmc initialization to specific section

2019-11-10 Thread Kever Yang
On 2019/11/10 下午8:57, Michael Trimarchi wrote: dmc is used to initialize the memory controller. It's needed by u-boot. Move it in the specific section Signed-off-by: Michael Trimarchi Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3288-tinker-u-boot.dtsi | 12

Re: [U-Boot] [PATCH 2/2] rockchip: dts: tinker: Add tinker-s board support

2019-11-10 Thread Kever Yang
On 2019/11/10 下午8:57, Michael Trimarchi wrote: Support tinker-s board. The board is equivalent of tinker board except of emmc. TODO: - support of usb current burst when the board is powered from pc Signed-off-by: Michael Trimarchi Reviewed-by: Kever Yang Thanks, - Kever --- Changes:

Re: [U-Boot] [PATCH 3/3] rockchip: dts: rk3399-firefly: move u-boot, spl-boot-order to to the u-boot.dtsi

2019-11-10 Thread Kever Yang
On 2019/11/10 上午4:30, Peter Robinson wrote: The u-boot specific device tree directives should be in u-boot.dtsi Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3399-firefly-u-boot.dtsi | 6 ++ arch/arm/dts/rk3399-firefly.dts | 1 -

Re: [U-Boot] [PATCH 1/3] rockchip: dts: rk3399: move the u-boot, dm-pre-reloc to the u-boot.dtsi

2019-11-10 Thread Kever Yang
On 2019/11/10 上午4:30, Peter Robinson wrote: The u-boot specific pieces in the dts files should be in u-boot.dtsi not the main files, this allows easier sync with upstream. The rk3399.dtsi has a mix of both so move them all for consistency. Signed-off-by: Peter Robinson Reviewed-by: Kever Yan

Re: [U-Boot] [PATCH 2/3] rockchip: dts: rk3399-evb: move u-boot, spl-boot-order to to the u-boot.dtsi

2019-11-10 Thread Kever Yang
On 2019/11/10 上午4:30, Peter Robinson wrote: The u-boot specific device tree directives should be in u-boot.dtsi Signed-off-by: Peter Robinson Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/dts/rk3399-evb-u-boot.dtsi | 6 ++ arch/arm/dts/rk3399-evb.dts | 2 -- 2 files

Re: [U-Boot] [PATCH V2] rockchip: dts: tinker: Add tinker-s board support

2019-11-10 Thread Kever Yang
On 2019/11/10 上午3:09, Michael Trimarchi wrote: Support tinker-s board. The board is equivalent of tinker board except of emmc. TODO: - support of usb current burst when the board is powered from pc Signed-off-by: Michael Trimarchi Reviewed-by: Kever Yang Thanks, - Kever --- Changes V1->V

Re: [U-Boot] [PATCH v4 7/7] doc: boards: Add rockchip documentation

2019-11-10 Thread Jagan Teki
I tried, it is hard to move all the data from doc/README.rochchip in one instance. I will mark it my TODO, it require close attention of existing doc to move. Please merge this an initial step. On Sun, 10 Nov, 2019, 8:00 PM Kever Yang, wrote: > Jagan, > > On 2019/10/24 上午3:56, Jagan Teki wrote:

Re: [U-Boot] [PATCH v1] rockchip: clk: pll: add common pll setting funcs

2019-11-10 Thread Kever Yang
On 2019/10/25 上午9:42, Elaine Zhang wrote: Common PLL setup function, compatible with different SOC. Mainly for the subsequent new SOC use. Signed-off-by: Elaine Zhang Reviewed-by: Kever Yang Thanks, - Kever --- arch/arm/include/asm/arch-rockchip/clock.h | 76 + drivers/clk/rockchi

Re: [U-Boot] [PATCH v4 7/7] doc: boards: Add rockchip documentation

2019-11-10 Thread Kever Yang
Jagan, On 2019/10/24 上午3:56, Jagan Teki wrote: Rockchip has documentation file, doc/README.rockchip but which is not so readable to add or understand the existing contents. Even the format that support is legacy readme in U-Boot. Add rockchip specific documentation file using new rst format, wh

Re: [U-Boot] [PATCH v4 6/7] rockchip: Add Single boot image (with binman, pad_cat)

2019-11-10 Thread Kever Yang
On 2019/10/24 上午3:56, Jagan Teki wrote: All rockchip platforms support TPL or SPL-based bootloader in mainline with U-Boot proper as final stage. For each stage we need to burn the image on to flash with respective offsets. This patch creates a single boot image component using - binman, for ar

Re: [U-Boot] [PATCH v4 5/7] arm: dts: rk3036: Add rk3036-u-boot.dtsi

2019-11-10 Thread Kever Yang
On 2019/10/24 上午3:56, Jagan Teki wrote: Add U-Boot specific dtsi file for rk3036 SoC. This would help to add U-Boot specific dts nodes, properties which are common across rk3036. Right now, the file is empty, will add required changes in future patches. Signed-off-by: Jagan Teki Reviewed-by

Re: [U-Boot] [PATCH v4 3/7] Makefile: rockchip: Support SPL-alone mkimage

2019-11-10 Thread Kever Yang
On 2019/10/24 上午3:56, Jagan Teki wrote: Add SPL-alone mkimage tooling support via Makefile for few platforms or boards used in rockchip family. With this users would get rid of explicitly creating mkimage tool for rockchip rksd or rkspi boot modes. Signed-off-by: Jagan Teki Reviewed-by: Kev

Re: [U-Boot] [PATCH v4 2/7] Makefile: rockchip: Suffix platform type with tpl name

2019-11-10 Thread Kever Yang
On 2019/10/24 上午3:56, Jagan Teki wrote: Most of the platforms uses the platform type on their boot stage image naming conventions in makefile like, u-boot-x86-start16-tpl.bin - x86 start16 TPL bin u-boot-spl-mtk.bin - Mediatek SPL bin This would help to understand the users to what that partic

Re: [U-Boot] [PATCH v4 1/7] Makefile: Add rockchip image type

2019-11-10 Thread Kever Yang
On 2019/10/24 上午3:56, Jagan Teki wrote: Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, -

Re: [U-Boot] [PATCH v3 1/5] Makefile: Add rockchip image type

2019-11-10 Thread Kever Yang
On 2019/10/18 上午3:07, Jagan Teki wrote: Add rockchip image type support. right now the image type marked with rksd, So create image type variable with required image type like rksd or rkspi. Cc: Kever Yang Cc: Matwey V. Kornilov Signed-off-by: Jagan Teki Reviewed-by: Kever Yang Thanks, -

Re: [U-Boot] [PATCH 11/12] rockchip: add px30 architecture core

2019-11-10 Thread Kever Yang
On 2019/10/25 下午3:47, Heiko Stübner wrote: Hi Kever, Am Freitag, 25. Oktober 2019, 04:49:54 CEST schrieb Kever Yang: On 2019/10/25 上午7:28, Heiko Stuebner wrote: From: Kever Yang Add core architecture code to support the px30 soc. This includes a separate tpl board file due to very limited s

Re: [U-Boot] [PATCH v4 2/5] omap: mmc: Avoid using libfdt with of-platdata

2019-11-10 Thread Adam Ford
On Sun, Nov 10, 2019 at 5:08 AM Adam Ford wrote: > > On Sun, Nov 10, 2019 at 1:22 AM Peter Howard > wrote: > > > > On Thu, 2019-11-07 at 15:05 -0500, Tom Rini wrote: > > > On Thu, Nov 07, 2019 at 08:53:09AM -0700, Simon Glass wrote: > > > > > > > At present this driver is enabled in SPL on omapl

[U-Boot] [PATCH 1/3] ARM: omapl138_lcdk: Separate BSS in SPL

2019-11-10 Thread Adam Ford
In preparation to use full device tree support, SPL can separate BSS from text region. This patch enables SPL_SEPARATE_BSS. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index 16287a4ac2..cceb0c408e 100644 --- a/configs/omapl138_lcdk_def

[U-Boot] [PATCH 2/3] ARM: omapl138_lcdk: Increase malloc pool before relocation

2019-11-10 Thread Adam Ford
Driver model requires a malloc pool to allocate memory before relocations to operate serial and some other devices. This patch increases the pool size to 2K. Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig index cceb0c408e..376bb9f953 1006

[U-Boot] [PATCH 3/3] ARM: omapl138_lcdk: Enable SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE

2019-11-10 Thread Adam Ford
In order to further prepare for full device tree support in SPL, this patch enables both SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE. Both of these are already enabled in U-Boot, so SPL will have the same functionality Signed-off-by: Adam Ford diff --git a/configs/omapl138_lcdk_defconfig b/configs/oma

Re: [U-Boot] [PATCH v2 4/4] mx6cuboxi: enable OF_CONTROL with DM_MMC and DM_USB

2019-11-10 Thread Fabio Estevam
On Sun, Nov 10, 2019 at 9:39 AM Baruch Siach wrote: > > Make first step in DT/DM migration. Enable OF_CONTROL only for the main > U-Boot image for now. > > Remove mmc_init_main() because board_mmc_init() is not called when > DM_MMC is enabled. > > DM_MMC requires DM_GPIO for card-detect to work. T

[U-Boot] [PATCH 2/2] rockchip: dts: tinker: Add tinker-s board support

2019-11-10 Thread Michael Trimarchi
Support tinker-s board. The board is equivalent of tinker board except of emmc. TODO: - support of usb current burst when the board is powered from pc Signed-off-by: Michael Trimarchi --- Changes: v2->v3: drop dmc section v1->v2: Add boot configuration for emmc --- arch/arm/dts/

Re: [U-Boot] [PATCH v2 3/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 2 of 2)

2019-11-10 Thread Fabio Estevam
On Sun, Nov 10, 2019 at 9:40 AM Baruch Siach wrote: > > These DT files are copied from kernel v5.3 with no changes. > > This is part 2 of 2 commits. Included are DT files for SOM rev 1.5, and > Hummingboard2 Gate/Edge. > > Signed-off-by: Baruch Siach Reviewed-by: Fabio Estevam _

Re: [U-Boot] [PATCH v2 2/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 1 of 2)

2019-11-10 Thread Fabio Estevam
On Sun, Nov 10, 2019 at 9:38 AM Baruch Siach wrote: > > These DT files are copied from kernel v5.3 with no changes. > > This is part 1 of 2 commits. Included are DT files for the original > Cubox-i and Hummingboard Base/Pro. > > Signed-off-by: Baruch Siach Reviewed-by: Fabio Estevam ___

Re: [U-Boot] [PATCH v2 1/4] dt-bindings: add imx-audmux macro definitions

2019-11-10 Thread Fabio Estevam
On Sun, Nov 10, 2019 at 9:38 AM Baruch Siach wrote: > > Import fsl-imx-audmux.h from Linux as of v5.4-rc6. The header is > unchanged since v4.18. > > That would make it easier to import DT files that depend on imx-audmux > definitions from the kernel tree. > > Signed-off-by: Baruch Siach Reviewe

[U-Boot] [PATCH 1/2] rockchip: dts: tinker: Move u-boot dmc initialization to specific section

2019-11-10 Thread Michael Trimarchi
dmc is used to initialize the memory controller. It's needed by u-boot. Move it in the specific section Signed-off-by: Michael Trimarchi --- arch/arm/dts/rk3288-tinker-u-boot.dtsi | 12 arch/arm/dts/rk3288-tinker.dts | 12 2 files changed, 12 insertions(+), 12 d

[U-Boot] [PATCH v2 3/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 2 of 2)

2019-11-10 Thread Baruch Siach
These DT files are copied from kernel v5.3 with no changes. This is part 2 of 2 commits. Included are DT files for SOM rev 1.5, and Hummingboard2 Gate/Edge. Signed-off-by: Baruch Siach --- v2: Splits into two commits to comply with list size limits --- arch/arm/dts/Makefile

[U-Boot] [PATCH v2 4/4] mx6cuboxi: enable OF_CONTROL with DM_MMC and DM_USB

2019-11-10 Thread Baruch Siach
Make first step in DT/DM migration. Enable OF_CONTROL only for the main U-Boot image for now. Remove mmc_init_main() because board_mmc_init() is not called when DM_MMC is enabled. DM_MMC requires DM_GPIO for card-detect to work. That in turn makes gpio request mandatory. Add code to request/free

[U-Boot] [PATCH v2 1/4] dt-bindings: add imx-audmux macro definitions

2019-11-10 Thread Baruch Siach
Import fsl-imx-audmux.h from Linux as of v5.4-rc6. The header is unchanged since v4.18. That would make it easier to import DT files that depend on imx-audmux definitions from the kernel tree. Signed-off-by: Baruch Siach --- v2: New patch in this series. Suggested by Fabio Estevam. --- include/

[U-Boot] [PATCH v2 2/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 1 of 2)

2019-11-10 Thread Baruch Siach
These DT files are copied from kernel v5.3 with no changes. This is part 1 of 2 commits. Included are DT files for the original Cubox-i and Hummingboard Base/Pro. Signed-off-by: Baruch Siach --- v2: Don't remove imx-audmux macros (Fabio Estevam) Split into two commits to comply with list siz

[U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb

2019-11-10 Thread Adam Ford
SPL has limited available resources, and the performance between ARM and Thumb isn't that significant. This patch builds using Thumb instruction set to reduce the code size by nearly 6K. Original: textdata bss dec hex filename 2652640041376 319067ca2 spl/u-boot-

Re: [U-Boot] [PATCH v2] spi: cadence_qspi: support DM_CLK

2019-11-10 Thread Vignesh Raghavendra
Hi Simon, On 24-Oct-19 11:53 PM, Simon Goldschmidt wrote: > From: Simon Goldschmidt > > Support loading clk speed via DM instead of requiring ad-hoc code. > > Signed-off-by: Simon Goldschmidt > Signed-off-by: Simon Goldschmidt > --- [...] > @@ -22,12 +23,29 @@ static int cadence_spi_write_spe

Re: [U-Boot] [PATCH v4 2/5] omap: mmc: Avoid using libfdt with of-platdata

2019-11-10 Thread Adam Ford
On Sun, Nov 10, 2019 at 1:22 AM Peter Howard wrote: > > On Thu, 2019-11-07 at 15:05 -0500, Tom Rini wrote: > > On Thu, Nov 07, 2019 at 08:53:09AM -0700, Simon Glass wrote: > > > > > At present this driver is enabled in SPL on omapl138_lcdk, which > > > uses > > > of-platdata. The driver needs to b

[U-Boot] Best way to use UCLASS_GPIO board id

2019-11-10 Thread Michael Nazzareno Trimarchi
Hi Simon + project_id: project-id { + pid0: bid0 { + rockchip,pins = <2 RK_PA1 RK_FUNC_GPIO &pcfg_pull_up>; + }; + + pid1: pid1 { + rockchip,pins = <2 RK_PA2 RK_FUNC_GPIO &pcfg_pull_up>; + };

Re: [U-Boot] [BUG] U-Boot hangs on fatload, commit ee88eacbdd840199a3dec707234579fb15ddd46a

2019-11-10 Thread Heinrich Schuchardt
On 11/9/19 10:31 PM, Gray Remlin wrote: On Sat, 9 Nov 2019 at 20:50, Heinrich Schuchardt mailto:xypron.g...@gmx.de>> wrote: On 11/9/19 8:42 PM, Gray Remlin wrote: > On Sat, 9 Nov 2019 at 18:40, Heinrich Schuchardt mailto:xypron.g...@gmx.de> >