[U-Boot] [PATCH v2 2/2] env: Access Environment in SPI flashes before relocation

2019-11-14 Thread Heiko Schocher
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 --- Changes in v2: - env_sf_init_early() always return 0 now. If we do

[U-Boot] [PATCH v2 1/2] env: split env_import_redund() into 2 functions

2019-11-14 Thread Heiko Schocher
split from env_import_redund() the part which checks which Environment is valid into a separate function called env_check_redund() and call it from env_import_redund(). So env_check_redund() can be used from places which also need to do this checks. Signed-off-by: Heiko Schocher --- The return

[U-Boot] [PATCH v2 0/2] env: Access Environment in SPI flashes before relocation

2019-11-14 Thread Heiko Schocher
Add the possibility to access Environment stored in SPI NOR Flash before relocation. This is used in DM/DTS rework for the aristainetos boards. There mutliple DTS are packed into a FIT image and through a variable in the Environment the correct DTS will be selected. For this we need very early

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

2019-11-14 Thread Michael Nazzareno Trimarchi
Hi Kever On Fri, Nov 15, 2019 at 8:02 AM Kever Yang wrote: > > Hi Michael, > > Could send a patch to add maintainer for Tinker-s board? > > The board maintainer is needed and other patches are ready to merge. > I going to send it today Michael > Thanks, > > - Kever > > On 2019/11/10

Re: [U-Boot] [v2] include/configs: ls1012a: add pfe stop command

2019-11-14 Thread Biwen Li
> -Original Message- > From: Priyanka Jain > Sent: 2019年11月15日 12:57 > To: Biwen Li ; Shengzhou Liu ; > Alison Wang ; Jagdish Gediya > ; Rajesh Bhagat > Cc: Jiafei Pan ; Xiaobo Xie ; > u-boot@lists.denx.de; Biwen Li > Subject: RE: [v2] include/configs: ls1012a: add pfe stop command >

[U-Boot] [v3] include/configs: ls1012a: add pfe stop command

2019-11-14 Thread Biwen Li
This adds pfe stop command before boot linux kernel to fix a problem that ethernet won't be workable after enter linux. Because there is a h/w limitation in LS1012A PFE, to re-initialize PFE it has to be safe shutdown, these steps are done through PFE stop. Signed-off-by: Biwen Li --- Changes in

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

2019-11-14 Thread Kever Yang
Hi Michael,     Could send a patch to add maintainer for Tinker-s board?     The board maintainer is needed and other patches are ready to merge. Thanks, - Kever On 2019/11/10 下午8:57, Michael Trimarchi wrote: Support tinker-s board. The board is equivalent of tinker board except of emmc.

[U-Boot] U-Boot: problems with travis build

2019-11-14 Thread Heiko Schocher
Hello Tom, I tried to trigger a travis build for patches I want to post, see: https://travis-ci.org/hsdenx/u-boot-test/builds/611740123 I see now 2 problems with travis builds: - "NXP ARM32" and "32bit sun8i" take too long, I splitted them into 2 jobs locally, see patches:

Re: [U-Boot] [PATCH v3 2/5] Makefile: Rename idbloader.img with u-boot-spl-rockchip.bin

2019-11-14 Thread Kever Yang
Hi Jagan, On 2019/10/22 下午6:10, Jagan Teki wrote: On Mon, Oct 21, 2019 at 1:43 PM Mark Kettenis wrote: From: Jagan Teki Date: Mon, 21 Oct 2019 10:56:39 +0530 Hi Kever, On Fri, Oct 18, 2019 at 4:26 PM Kever Yang wrote: Jagan, On 2019/10/18 上午3:07, Jagan Teki wrote: idbloader.img name

Re: [U-Boot] [PATCH 01/42] configs: ls1012a: enable CONFIG_DM_I2C

2019-11-14 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, November 14, 2019 4:06 PM >To: Jagdish Gediya ; Priyanka Jain >; h...@denx.de; ja...@amarulasolutions.com; >aford...@gmail.com; Alison Wang ; >bhaskar.upadh...@nxp.com; feng.l...@nxp.com; jh80.ch...@samsung.com; >Pramod Kumar ; Rajesh

Re: [U-Boot] [v2] armv8: ls1028a: disable multimedia feature when not supported

2019-11-14 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Wen He >Sent: Thursday, November 14, 2019 12:39 PM >To: u-boot@lists.denx.de >Cc: Andy Tang >Subject: [U-Boot] [v2] armv8: ls1028a: disable multimedia feature when not >supported > >From: Yuantian Tang > >Ls1028a has 4 personalities:

Re: [U-Boot] [v2] armv8: ls1043aqds: modify the qspi_bootcmd definition

2019-11-14 Thread Priyanka Jain
>-Original Message- >From: U-Boot On Behalf Of Wen He >Sent: Thursday, November 14, 2019 12:38 PM >To: u-boot@lists.denx.de >Subject: [U-Boot] [v2] armv8: ls1043aqds: modify the qspi_bootcmd definition > >Fix the kernel offset of qspi_bootcmd scripts, followed the >qoriq_memory_layout

Re: [U-Boot] [v2] include/configs: ls1012a: add pfe stop command

2019-11-14 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Thursday, November 14, 2019 10:15 AM >To: Shengzhou Liu ; Alison Wang >; Jagdish Gediya ; Rajesh >Bhagat ; Priyanka Jain >Cc: Jiafei Pan ; Xiaobo Xie ; u- >b...@lists.denx.de; Biwen Li >Subject: [v2] include/configs: ls1012a: add pfe stop

[U-Boot] [PATCH v3 20/22] ram: rk3399: Sync the io setting from Rockchip vendor code

2019-11-14 Thread Kever Yang
The io setting are updated after some bugfix in different rk3399 boards, sync the code from vendor. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram_rk3399.c | 44 + 1 file changed, 14

[U-Boot] [PATCH v3 15/22] ram: rk3399: Clean up code

2019-11-14 Thread Kever Yang
From: YouMin Chen Clean up rk3399 dram driver source code for more readable. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram_rk3399.c | 176 +++- 1 file changed, 93 insertions(+), 83

[U-Boot] [PATCH v3 17/22] ram: rk3399: update the function of sdram_init

2019-11-14 Thread Kever Yang
From: YouMin Chen Clean up the sdram_init to keep sync with rockchip source code. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram_rk3399.c | 419 1 file changed, 296 insertions(+), 123

[U-Boot] [PATCH v3 21/22] ram: rk3399: update calculate_stride

2019-11-14 Thread Kever Yang
Update the calculation of the stride to support all the DRAM case. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None .../include/asm/arch-rockchip/sdram_rk3399.h | 9 + drivers/ram/rockchip/sdram_rk3399.c | 158 +- 2

[U-Boot] [PATCH v3 16/22] ram: rk3399: fix error about get_ddrc0_con reg addr

2019-11-14 Thread Kever Yang
From: YouMin Chen Correct the register to its correct name. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram_rk3399.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCH v3 22/22] ram: rk3399: Fix dram setting to make dram more stable

2019-11-14 Thread Kever Yang
From: YouMin Chen There are some code different with rockchip vendor code which may lead to different bugs, including: 1) Fix setting error about LPDDR3 dram size ODT. 2) Set phy io speed to 0x2. 3) Fix setting error about phy_pad_fdbk_drive. 4) Fix setting error about PI_WDQLVL_VREF_EN

[U-Boot] [PATCH v3 13/22] ram: rk3328: use common sdram driver

2019-11-14 Thread Kever Yang
From: YouMin Chen RK3328 has a similar controller and phy with PX30, so we can use the common driver for it and remove the duplicate codes. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None arch/arm/dts/rk3328-sdram-ddr3-666.dtsi | 4 +

[U-Boot] [PATCH v3 04/22] rockchip: sdram: extend to use sys_reg3 for capacity info

2019-11-14 Thread Kever Yang
Since we have new DRAM type and to support different DRAM size in different CS, we need more bits, so introduce sys_reg3 to record the info. Note that the info in sys_reg3 is extension to sys_reg2 and the info in sys_reg2 is the same as before. We define the DRAM_INFO with sys_reg3 as VERSION2.

[U-Boot] [PATCH v3 18/22] ram: rk3399: add support detect capacity

2019-11-14 Thread Kever Yang
From: YouMin Chen Add capacity detect for rk3399 so that the driver able to detect the capacity automatically. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram_rk3399.c | 236 +--- 1 file

[U-Boot] Please pull u-boot-dm

2019-11-14 Thread Simon Glass
Hi Tom, Passing run here: https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/1306 The following changes since commit 3ff1ff3ff76c15efe0451309af084ee6c096c583: Merge branch '2019-11-12-migrate-SYS_REDUNDAND_ENVIRONMENT' (2019-11-12 13:40:58 -0500) are available in the Git

[U-Boot] [PATCH v3 19/22] ram: rockchip: update lpddr4 timing for rk3399

2019-11-14 Thread Kever Yang
Update lpddr timing in lpddr4-400 and lpddr4-800 file from rockchip vendor code; Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/sdram-rk3399-lpddr4-400.inc | 12 ++--

[U-Boot] [PATCH v3 12/22] ram: px30: add sdram driver

2019-11-14 Thread Kever Yang
From: YouMin Chen Add the sdram driver for PX30 to support ddr3, ddr4, lpddr2 and lpddr3. For TPL_BUILD, the driver implement full dram init and without DM support due to the limit of internal SRAM size. For SPL and U-Boot proper, it's a simple driver with dm for get dram_info like other SoCs.

[U-Boot] [PATCH v3 08/22] ram: rockchip: Default enable DRAM debug info

2019-11-14 Thread Kever Yang
The debug info for dram is main about the capacity related info which is very important the board init, so set this default enable. Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v3 10/22] ram: rockchip: add phy driver code for PX30

2019-11-14 Thread Kever Yang
This sdram_phy_px30.c is based on PX30 SoC, the functions are common for phy, other SoCs with similar hardware could re-use it. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None .../asm/arch-rockchip/sdram_phy_px30.h| 62 ++

[U-Boot] [PATCH v3 11/22] ram: rockchip: add common msch reg definition

2019-11-14 Thread Kever Yang
The noc register bit definition may be the same for different SoC while the offset of the register may be different, add the struction definition as common code. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 09/22] ram: rockchip: add controller code for PX30

2019-11-14 Thread Kever Yang
This sdram_pctl_px30.c is based on PX30 SoC, the functions are common for controller, other SoCs with similar hardware could re-use it. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None .../asm/arch-rockchip/sdram_pctl_px30.h | 139

[U-Boot] [PATCH v3 07/22] ram: rockchip: move sdram_debug function into sdram_common

2019-11-14 Thread Kever Yang
The functions for dram info print are part of common code. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None drivers/ram/rockchip/Makefile | 1 - drivers/ram/rockchip/sdram_common.c | 144 +++

[U-Boot] [PATCH v3 06/22] ram: rockchip: add common code for sdram driver

2019-11-14 Thread Kever Yang
There are some function like os_reg setting, capacity detect functions, can be used as common code for different Rockchip SoCs, add a sdram_common.c for all these functions. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 03/22] rockchip: sdram: move cap structure and debug function to sdram_common.h

2019-11-14 Thread Kever Yang
The sdram.h suppose to be helper file for sdram.c which including dram size decode and some u-boot related dram init interface, and all structure and function for dram driver move to sdram_common.h Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v3 02/22] ram: rockchip: rename sdram_common.c/h to sdram.c

2019-11-14 Thread Kever Yang
rename sdram_common.c in arch/arm/mach-rockchip to sdram.c; so that we can use the file name sdram_common.c in dram driver for better understand the code; clean the related file who has use the header file at the same time. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in

[U-Boot] [PATCH v3 14/22] ram: rk3399: migrate to use common code

2019-11-14 Thread Kever Yang
From: YouMin Chen For there are some structures and functions are common for all rockchip SoCs, migrate to use the common code so that we can clean up reduandent codes. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: - split code other than migration to separate

[U-Boot] [PATCH v3 01/22] ram: rockchip: rename sdram.h to sdram_rk3288.h

2019-11-14 Thread Kever Yang
The header file sdram.h is used for rk3288 and similar SoCs, rename it to make it more understandable. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None arch/arm/include/asm/arch-rockchip/{sdram.h => sdram_rk3288.h} | 0

[U-Boot] [PATCH v3 05/22] rockchip: sdram: update the sys_reg to sys_reg2

2019-11-14 Thread Kever Yang
We are using sys_reg2 and sys_reg3 as ddr cap info, sync the variable name to what we real use to avoid confuse people. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-rockchip/sdram.c | 32 1

[U-Boot] [PATCH v3 00/22] rockchip: ram: add common code for sdram driver

2019-11-14 Thread Kever Yang
The sdram drivers for Rockchip SoCs was all separate, some of the SoCs has similar hardware controller and phy, so we have a change to share the flow and some of the functions between different SoCs. This patch set implement a first version common code based on PX30, other SoCs has similar

[U-Boot] [PATCH 3/3] Kconfig: Enable building of u-boot.itb on Rockchip platform

2019-11-14 Thread Kever Yang
For all the Rockchip SoCs with SPL_LOAD_FIT enable, we need to build u-boot.itb with U-Boot proper and ATF/OPTEE. All the Rockchip boards with SPL_LOAD_FIT now supports FIT generator to get ATF/OPTEE binary path from environment and pass the build even if no ATF/OPTEE binary exist, so we can

[U-Boot] [PATCH 1/3] rockchip: Convert to use FIT generator for optee

2019-11-14 Thread Kever Yang
Use generator script so that we can use environment for TEE source. $TEE for tee.bin, and if file not exist, the script can report a warning, and meke the build success without a error. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/fit_spl_optee.its | 50 ---

[U-Boot] [PATCH 2/3] rockchip: lion-rk3368: Migrate to use common FIT generator

2019-11-14 Thread Kever Yang
The RK3368 lion board ATF can use bl31.elf like RK3399 and get the FIT source with generic FIT generator script at: arch/arm/mach-rockchip/make_fit_atf.py And then we can use 'BL31' environment to get the path of bl31.elf instead of copy it into U-Boot folder. CC: Philipp Tomsich Signed-off-by:

[U-Boot] [v3] armv8: ls1028a: disable multimedia feature when not supported

2019-11-14 Thread Wen He
From: Yuantian Tang Ls1028a has 4 personalities: Ls1028a, Ls1027a, Ls1017a and Ls1018a. Both Ls1027a and Ls1017a personalities are lower functionality version which doesn't support the multimedia subsystems, like LCD, GPU. To disable multimedia feature on non-multimedia version, set the status

Re: [U-Boot] [PATCH 00/16] efi_loader: add secure boot support

2019-11-14 Thread AKASHI Takahiro
Heinrich, This patch set won't be applied cleanly to v2020.01-rc2 due to bef18454044e ("freescale/powerpc: Rename the config CONFIG_SECURE_BOOT name") 5536c3c9d0d1 ("freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name") Do you want to see another re-spin version

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

2019-11-14 Thread Tom Hebb
Thank you for the review! I will split the patch and send a v2. On Thu, Nov 14, 2019, 17:17 Kever Yang wrote: > Hi Thomas, > On 2019/11/15 上午12:09, Tom Hebb wrote: > > Hi Kever, > > On Thu, Nov 14, 2019 at 1:25 AM Kever Yang > wrote: > >> Hi Thomas, >> >> On 2019/11/11 上午12:25, Thomas Hebb

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

2019-11-14 Thread Kever Yang
Hi Thomas, On 2019/11/15 上午12:09, Tom Hebb wrote: Hi Kever, On Thu, Nov 14, 2019 at 1:25 AM Kever Yang > wrote: Hi Thomas, On 2019/11/11 上午12:25, Thomas Hebb wrote: > b7abef2ecbcc ("rockchip: rk3399: Migrate to use common spl board file")

Re: [U-Boot] SPL NAND FIT support working?

2019-11-14 Thread Tim Harvey
On Thu, Nov 14, 2019 at 2:02 PM Tim Harvey wrote: > > Lokesh, > > I'm trying to convert the imx6 Gateworks Ventana boards to DM which > requires using NAND based FIT images for the multiple DTB's. > > You apparently added support for this in > 8bd887727913e9393ef467cdf8b0146babb2673d but I find

[U-Boot] SPL NAND FIT support working?

2019-11-14 Thread Tim Harvey
Lokesh, I'm trying to convert the imx6 Gateworks Ventana boards to DM which requires using NAND based FIT images for the multiple DTB's. You apparently added support for this in 8bd887727913e9393ef467cdf8b0146babb2673d but I find it fails because the raw nand read functions take byte offset/size

Re: [U-Boot] [RFC PATCH] rockchip: tinker: Add boot from capability

2019-11-14 Thread Michael Nazzareno Trimarchi
Hi Drop it +int mmc_get_env_dev(void) +{ + u32 bootdevice_brom_id = readl(BROM_BOOTSOURCE_ID_ADDR); + + if (bootdevice_brom_id == BROM_BOOTSOURCE_EMMC) + return 0; + + return 1; +} THis is enough for tinker Michael On Wed, Nov 13, 2019 at 8:50 AM Michael

Re: [U-Boot] [PATCH] rockchip: rk3399: Add Pinebook Pro laptop support

2019-11-14 Thread Vasily Khoruzhick
On Wed, Nov 13, 2019 at 4:51 PM Peter Robinson wrote: > > Add initial support for Pinebook Pro laptop. Hi Peter, > Specification > - Rockchip RK3399 > - 4GB Dual-Channel LPDDR4 > - SD card slot > - eMMC socket > - 128Mb SPI Flash > - PCIe 4X slot > - AP6256 for WiFi + BT > - 1920*1080 screen >

[U-Boot] [PATCH v4 37/42] common: Move board_get_usable_ram_top() out of common.h

2019-11-14 Thread Simon Glass
Move this function into init.h which seems to be designed for this sort of thing. Also update the header to declare struct global_data so that it can be included without global_data.h being needed. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None

[U-Boot] [PATCH v4 42/42] common: Move old EEPROM functions into a new header

2019-11-14 Thread Simon Glass
These functions do not use driver model but are still used. Move them to a new eeprom.h header file. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - Rename eeprom_legacy.h to eeprom.h since this may not be legacy code - Update the commit message

[U-Boot] [PATCH v4 29/42] common: Move some cache and MMU functions out of common.h

2019-11-14 Thread Simon Glass
These functions belong in cpu_func.h. Another option would be cache.h but that code uses driver model and we have not moved these cache functions to use driver model. Since they are CPU-related it seems reasonable to put them here. Move them over. Signed-off-by: Simon Glass --- Changes in v4:

[U-Boot] [PATCH v4 31/42] common: Move ARM cache operations out of common.h

2019-11-14 Thread Simon Glass
These functions are CPU-related and do not use driver model. Move them to cpu_func.h Signed-off-by: Simon Glass --- Changes in v4: - Use cpu_func.h instead of cpu_legacy.h - Use irq_func.h instead of irq_legacy.h Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/lpc32xx/cpu.c

[U-Boot] [PATCH v4 39/42] common: Move pci_init_board() out of common.h

2019-11-14 Thread Simon Glass
This function can be dropped when all boards use driver model for PCI. For now, move it into init.h with a comment. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None board/armltd/integrator/pci.c | 1 +

[U-Boot] [PATCH v4 33/42] common: Move interrupt functions into a new header

2019-11-14 Thread Simon Glass
These functions do not use driver model but are fairly widely used in U-Boot. But it is not clear that they will use driver model anytime soon, so we don't want to label them as 'legacy'. Move them to a new irq_func.h header file. Avoid the name 'irq.h' since it is widely used in U-Boot already.

[U-Boot] Most appropriate and scriptable way of creating partition image files

2019-11-14 Thread Arji Cot
Hi, I'm new at this, my problem is that I have the kernel, busybox and u-boot already build for my target platform, I'm not sure what is the most appropriate way of creating the final ".img" file out of the files that I already have . I need to create 2 partitions, 1 vfat/fat32 for the boot and 1

[U-Boot] [PATCH v4 40/42] common: Move trap_init() out of common.h

2019-11-14 Thread Simon Glass
Move this function into the init.h header file. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - Add init.h header Changes in v2: - Move trap_init() into init.h instead; update commit message arch/m68k/lib/traps.c | 1 + arch/mips/lib/traps.c | 1 +

[U-Boot] [PATCH v4 27/42] common: Move some SMP functions out of common.h

2019-11-14 Thread Simon Glass
These functions belong in cpu_func.h so move them over. Signed-off-by: Simon Glass --- Changes in v4: - Use cpu_func.h instead of cpu_legacy.h Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/ls102xa/cpu.c| 1 + arch/arm/cpu/armv7/virt-v7.c| 1 +

[U-Boot] [PATCH v4 32/42] arm: powerpc: Tidy up code style for interrupt functions

2019-11-14 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm11/cpu.c | 2 +- arch/arm/cpu/arm920t/cpu.c| 2 +- arch/arm/cpu/arm926ejs/cpu.c |

[U-Boot] [PATCH v4 38/42] common: Move some board functions out of common.h

2019-11-14 Thread Simon Glass
A number of board function belong in init.h with the others. Move them. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/soc.c | 1 + arch/arm/mach-imx/mx6/opos6ul.c

[U-Boot] [PATCH v4 28/42] arm: powerpc: Tidy up code style for cache functions

2019-11-14 Thread Simon Glass
Remove the unwanted space before the bracket. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/lib/cache-cp15.c| 12 ++-- arch/microblaze/cpu/cache.c | 18 +++---

[U-Boot] [PATCH v4 41/42] common: Drop get_endaddr()

2019-11-14 Thread Simon Glass
This is not used in U-Boot. Drop it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/common.h b/include/common.h index e946e4d9b7..64d0cf542e 100644

[U-Boot] [PATCH v4 36/42] common: Drop board_show_dram()

2019-11-14 Thread Simon Glass
This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None cmd/mem.c| 9 ++--- include/common.h | 9 - 2 files changed, 2 insertions(+),

[U-Boot] [PATCH v4 35/42] common: Move command functions out of common.h

2019-11-14 Thread Simon Glass
Move these functions into the command.h header file which is a better fit. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/mach-kirkwood/cpu.c| 1 + arch/sandbox/cpu/start.c| 1 +

[U-Boot] [PATCH v4 21/42] common: Move timer_get_us() function out of common.h

2019-11-14 Thread Simon Glass
This function belongs in time.h so move it over and update the comment style. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 3 --- include/time.h | 7 +++ 2 files changed, 7 insertions(+), 3

[U-Boot] [PATCH v4 20/42] arm: pxa: Drop pxa_wait_ticks()

2019-11-14 Thread Simon Glass
This function has a similar name to the common wait_ticks(). It is only used in one place and seems small enough to drop. Inline it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - Add new patch to inline pxa_wait_ticks() Changes in v2: None

[U-Boot] [PATCH v4 23/42] common: Move mii_init() function out of common.h

2019-11-14 Thread Simon Glass
This function belongs in mii.h so move it over. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 1 + drivers/net/fsl_mcdmafec.c | 1 + drivers/net/ldpaa_eth/ls1088a.c

[U-Boot] [PATCH v4 25/42] common: Drop cpu_init()

2019-11-14 Thread Simon Glass
This function is not defined anywhere. Drop it. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/common.h b/include/common.h index

[U-Boot] [PATCH v4 34/42] common: Move enable/disable_interrupts out of common.h

2019-11-14 Thread Simon Glass
Move these two functions into the irq_funcs.h header file. Also move interrupt_handler_t as this is used by the irq_install_handler() function. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - Rename irq_legacy to irq_func to avoid the 'legacy' label -

[U-Boot] [PATCH v4 07/42] crc: Fix code style with crc functions

2019-11-14 Thread Simon Glass
Some of these have a space before the bracket. Drop it to fix the style. Add some missing function comments while here. Note that u32 and u8 cannot be used here since crc.h is included on the host side. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3:

[U-Boot] [PATCH v4 14/42] serial: usb: Correct the usbtty_...() prototypes

2019-11-14 Thread Simon Glass
The function declarations in serial.h are not in sync with what is currently used in usbtty. Fix this by updating the header and including it, to help catch future such problems. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None

[U-Boot] [PATCH v4 22/42] common: Move get_ticks() function out of common.h

2019-11-14 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm920t/ep93xx/timer.c| 1 + arch/arm/cpu/arm920t/imx/timer.c | 1 +

[U-Boot] [PATCH v4 19/42] common: Move wait_ticks functions out of common.h

2019-11-14 Thread Simon Glass
This function belongs in time.h so move it over and add a comment. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: - Drop include in pxa2xx.c since this is for pxa_wait_ticks() - Update comment to wait_ticks() to indicate it is an internal function

[U-Boot] [PATCH v4 30/42] common: Drop checkicache() and checkdcache()

2019-11-14 Thread Simon Glass
These are used by only one arch and only within a single file. Drop the declarations from the common file. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/powerpc/cpu/mpc8xx/cpu.c | 130 +-

[U-Boot] [PATCH v4 16/42] common: Move serial functions out of common.h

2019-11-14 Thread Simon Glass
These functions belong in serial.h so move them over. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/arm926ejs/mxs/spl_boot.c | 1 + board/amarula/vyasa-rk3288/vyasa-rk3288.c | 1 +

[U-Boot] [PATCH v4 10/42] common: Move bootcount functions to their header file

2019-11-14 Thread Simon Glass
These don't need to be in common.h so move them out. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None board/BuR/brppt1/board.c | 1 + include/bootcount.h | 10 ++ include/common.h | 4 3 files

[U-Boot] [PATCH v4 17/42] common: Add a new lz4.h header file

2019-11-14 Thread Simon Glass
Add a header file to house the lz4 compression function. Add a comment while we are here, since it not even clear from the name what the function actuall does. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None common/image.c

[U-Boot] [PATCH v4 26/42] common: Move checkcpu() out of common.h

2019-11-14 Thread Simon Glass
This function belongs in cpu_func.h so move it over. Signed-off-by: Simon Glass --- Changes in v4: - Use cpu_func.h instead of cpu_legacy.h Changes in v3: None Changes in v2: None arch/powerpc/cpu/mpc83xx/cpu.c | 1 + arch/powerpc/cpu/mpc8xx/cpu.c| 1 +

[U-Boot] [PATCH v4 15/42] common: Move serial_printf() to the serial header

2019-11-14 Thread Simon Glass
Move this function header to serial.h since this function is clearly related to serial. The function itself stays in console.c since we don't have a single serial file. DM and non-DM each has a separate file so we would have to either create a new common serial file, or repeat the function in both

[U-Boot] [PATCH v4 24/42] common: Move some CPU functions out of common.h

2019-11-14 Thread Simon Glass
These functions belong in cpu_func.h since they do not use driver model. Move them over. Don't bother adding comments since these functions should be deleted. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv8/fsl-layerscape/cpu.c

[U-Boot] [PATCH v4 12/42] Move strtomhz() to vsprintf.h

2019-11-14 Thread Simon Glass
At present this function sits in its own file but it does not really justify it. There are similar string functions in vsprintf.h, so move it there. Also add the missing function comment. Use the vsprintf.h include file explicitly where needed. Signed-off-by: Simon Glass --- Changes in v4:

[U-Boot] [PATCH v4 13/42] common: Move env_get_ip() to net.h

2019-11-14 Thread Simon Glass
This function relates to networking, so move it out of the common.h header file. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 4 include/net.h| 21 - 2 files changed, 20

[U-Boot] [PATCH v4 18/42] common: Move some time functions out of common.h

2019-11-14 Thread Simon Glass
These functions belong in time.h so move them over and add comments. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/arm/cpu/armv7/ls102xa/timer.c| 1 + arch/arm/cpu/armv8/generic_timer.c| 1 +

[U-Boot] [PATCH v4 08/42] crc32: Use the crc.h header for crc functions

2019-11-14 Thread Simon Glass
Drop inclusion of crc.h in common.h and use the correct header directly instead. With this we can drop the conflicting definition in fw_env.h and rely on the crc.h header, which is already included. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None

[U-Boot] [PATCH v4 09/42] spl: bootcount: Move code out of header file

2019-11-14 Thread Simon Glass
It is not good practice to write code in a header file. If it is included multiple times then the code can cause duplicate functions. Move the bootcount_store() and bootcount_load() functions into SPL. Note: bootcount is a bit strange in that it uses driver model but does not define proper

[U-Boot] [PATCH v4 04/42] status_led: Tidy up the code style

2019-11-14 Thread Simon Glass
There are a few whitespace problems with this code. Tidy them up. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None arch/powerpc/lib/interrupts.c | 2 +- drivers/misc/status_led.c | 8 include/status_led.h |

[U-Boot] [PATCH v4 05/42] common: Move random-number functions into their own header

2019-11-14 Thread Simon Glass
Create a new rand.h header file and move functions into it, to reduce the size of common.h Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None include/common.h | 6 -- include/net.h| 1 + include/rand.h | 40

[U-Boot] [PATCH v4 06/42] common: Drop linux/crc8.h

2019-11-14 Thread Simon Glass
We have an existing U-Boot header for the one function that this defines. Use that instead of the linux/ one. Move over the nice comment. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None board/theadorable/theadorable.c | 2 +-

[U-Boot] [PATCH v4 11/42] common: Move sorting functions to their own header file

2019-11-14 Thread Simon Glass
These don't need to be in common.h so move them out into a new header. Also add some missing comments. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None cmd/efi.c | 1 + common/bootstage.c | 1 + env/common.c

[U-Boot] [PATCH v4 03/42] common: Drop global inclusion of status_led.h

2019-11-14 Thread Simon Glass
This is only used by a few files so it should not be in the common header. Move it out. Signed-off-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None board/alliedtelesis/SBx81LIFKW/sbx81lifkw.c | 1 + board/atmel/at91sam9261ek/led.c

[U-Boot] [PATCH v4 02/42] Drop CONFIG_SHOW_ACTIVITY

2019-11-14 Thread Simon Glass
This feature is not enabled by any board. Drop it. Signed-off-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None arch/powerpc/lib/interrupts.c | 13 - common/cli_readline.c | 6 -- drivers/timer/mpc83xx_timer.c | 4 include/common.h

[U-Boot] [PATCH v4 01/42] common: Move older CPU functions to their own header

2019-11-14 Thread Simon Glass
These should be moved to driver model, but in the meantime, move them out of the common header to help reduce its size. Signed-off-by: Simon Glass --- Changes in v4: - Rename cpu_legacy.h to cpu_func.h Changes in v3: None Changes in v2: None README | 2 +-

[U-Boot] [PATCH v4 00/42] common: Further reduce common.h

2019-11-14 Thread Simon Glass
This series drops the size of common.h down further, by moving things out into existing and new header files. It is now down to about 200 lines. Changes in v4: - Rename cpu_legacy.h to cpu_func.h - Use cpu_func.h instead of cpu_legacy.h - Use irq_func.h instead of irq_legacy.h Changes in v3: -

Re: [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY

2019-11-14 Thread Alexandru Marginean
On 11/14/2019 7:19 PM, Alexandru Marginean wrote: Hi Michael, On 11/14/2019 6:41 PM, Michael Walle wrote: Hi, sorry for being so late.. We're going to try to get this binding accepted in Linux too. shouldn't we try to get it accepted to linux first? To avoid any incompatibilities? I can

Re: [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY

2019-11-14 Thread Alexandru Marginean
Hi Michael, On 11/14/2019 6:41 PM, Michael Walle wrote: Hi, sorry for being so late.. We're going to try to get this binding accepted in Linux too. shouldn't we try to get it accepted to linux first? To avoid any incompatibilities? I can propagate any changes kernel crows asks us to do

Re: [U-Boot] [PATCH v4 0/5] Add helper function for linking a DM Eth device to a PHY

2019-11-14 Thread Michael Walle
Hi, sorry for being so late.. We're going to try to get this binding accepted in Linux too. shouldn't we try to get it accepted to linux first? To avoid any incompatibilities? -michael ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [External] Re: Quickboot in u-boot

2019-11-14 Thread Pankaj Suryawanshi
Hi Igor, Thanks for the video link. Still question is where i need to change in u-boot code ? any patches available ? Regards, Pankaj From: Igor Opaniuk Sent: 13 November 2019 20:49 To: Pankaj Suryawanshi Cc: u-boot@lists.denx.de; Pankaj Suryawanshi

Re: [U-Boot] [PATCH] ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

2019-11-14 Thread Bartosz Golaszewski
śr., 13 lis 2019 o 16:46 Adam Ford napisał(a): > > Currently, the da850-lcdk uses SPL_OF_PLATDATA and manually loads > the necessary source code instead of using the auto-generated, > because the drivers don't properly autogenerate the code. > > This patch simply enables the various device tree

Re: [U-Boot] [PATCH] tools/Makefile: fix HOSTCFLAGS with CROSS_BUILD_TOOLS

2019-11-14 Thread Tom Rini
On Thu, Nov 14, 2019 at 05:52:36PM +0100, Jan Kiszka wrote: > On 14.11.19 17:41, Tom Rini wrote: > > On Thu, Nov 14, 2019 at 05:28:06PM +0100, Jan Kiszka wrote: > > > On 26.08.19 08:43, Fabrice Fontaine wrote: > > > > Le lun. 26 août 2019 à 07:57, Jan Kiszka a écrit : > > > > > > > > > > On

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

2019-11-14 Thread Auer, Lukas
On Thu, 2019-11-14 at 12:57 +0530, Anup Patel wrote: > On Wed, Nov 13, 2019 at 9:13 AM Rick Chen wrote: > > Hi Lukas > > > > > Hi Rick, > > > > > > On Mon, 2019-11-11 at 15:19 +0800, Rick Chen wrote: > > > > Hi Lukas > > > > > > > > > Hi Rick, > > > > > > > > > > On Fri, 2019-11-08 at 15:27

Re: [U-Boot] [PATCH 3/5] smart-gateway-mt7688: Correct build time check for overwriting factory data

2019-11-14 Thread Tom Rini
On Thu, Nov 14, 2019 at 05:50:19PM +0100, Stefan Roese wrote: > Hi Tom, > > On 14.11.19 15:54, Tom Rini wrote: > > The board file has a build time check to ensure that we do not have the > > redundant environment overwriting the factory data. However, > > multiplying the redundant offset by two

  1   2   3   >