[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 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 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 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 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] [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

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

[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] 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

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] 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 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.

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] 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 >

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] [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

[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

[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 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 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

[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

[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] [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 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 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 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 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 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 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 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] 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 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] [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 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 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 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 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 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 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

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] [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

[U-Boot] [PATCH 01/11] lib: Import few bitmap functions from Linux

2019-11-14 Thread Vignesh Raghavendra
Import few basic bitmap functions (bitmap_{weight,fill,set,clear,or}()) and their dependencies from Linux. These are required for upcoming DMA resource allocation support for TI's K3 SoCs. Signed-off-by: Vignesh Raghavendra --- include/linux/bitmap.h | 133

[U-Boot] [PATCH 11/11] dma: ti: k3-udma: Add new compatible to J721e

2019-11-14 Thread Vignesh Raghavendra
Add new compatible to handle UDMA support for J721e SoC Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index ebf773d9ca67..7336bad99412 100644 --- a/drivers/dma/ti/k3-udma.c

[U-Boot] [PATCH 02/11] dma: ti: k3-udma: Query DMA channels allocated from Resource Manager

2019-11-14 Thread Vignesh Raghavendra
On K3 SoCs, DMA channels are shared across multiple entities, therefore U-Boot DMA driver needs to query resource range from centralised resource management controller i.e SystemFirmware and use DMA channels allocated for A72 host. Add support for the same. Signed-off-by: Vignesh Raghavendra ---

[U-Boot] [PATCH 04/11] soc: ti: k3-navss-ringacc: Get SYSFW reference from DT phandle

2019-11-14 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra --- drivers/soc/ti/k3-navss-ringacc.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)

[U-Boot] [PATCH 03/11] soc: ti: k3-navss-ringacc: Flush/invalidate caches on ring push/pop

2019-11-14 Thread Vignesh Raghavendra
Flush caches when pushing an element to ring and invalidate caches when popping an element from ring in Exposed Ring mode. Otherwise DMA transfers don't work properly in R5 SPL (with caches enabled) where the core is not in coherency domain. Reviewed-by: Grygorii Strashko Signed-off-by: Vignesh

[U-Boot] [PATCH 07/11] dma: ti: k3-udma: Fix debug prints during enabling MEM_TO_DEV transfers

2019-11-14 Thread Vignesh Raghavendra
Fix up the debug prints that were dumping state of TCHAN RT registers to use tchan for MEM_TO_DEV transfers. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c

[U-Boot] [PATCH 08/11] dma: ti: k3-udma: Switch to exposed ring mode

2019-11-14 Thread Vignesh Raghavendra
Exposed ring mode works well with 32 bit and 64 bit cores without need for Proxies for 32 bit cores. Therefore switch to exposed ring mode. Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 06/11] dma: ti: k3-udma: Remove coherency check for cache ops

2019-11-14 Thread Vignesh Raghavendra
Remove redundant coherency checks before calling cache ops in UDMA driver. This is now handled in arch specific cache operation implementation based on Kconfig option Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 50 +--- 1 file changed,

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/11 上午12:25, 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

[U-Boot] [PATCH 00/11] ti: k3-udma: Add support for J721e

2019-11-14 Thread Vignesh Raghavendra
This series adds DMA support for J721e using exist K3 UDMA driver. One main change is thati, on J721e, DMA resources such as DMA channels are shared between different entities running on different cores of the SoC. Therefore, U-Boot running on A72 core should request range of resources allocated

[U-Boot] [PATCH 09/11] dma: ti: k3-udma: Fix ring push operation for 32 bit cores

2019-11-14 Thread Vignesh Raghavendra
UDMA always expects 64 bit address pointer of the transfer descriptor in the Ring. But on 32 bit cores like R5, pointer is always 32 bit in size. Therefore copy over 32 bit pointer value to 64 bit variable before pushing it over to the ring, so that upper 32 bits are 0s. Signed-off-by: Vignesh

[U-Boot] [PATCH 05/11] dma: ti: k3-udma: Get SYSFW reference from DT phandle

2019-11-14 Thread Vignesh Raghavendra
Instead of looking getting reference to SYSFW device using name which is not guaranteed to be constant, use phandle supplied in the DT node to get reference to SYSFW Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff

[U-Boot] [PATCH 10/11] dma: ti: k3-udma: Fix build warnings when building for 32 bit platforms

2019-11-14 Thread Vignesh Raghavendra
Cast pointers properly so as to avoid warnings when driver is built for 32 bit platforms Signed-off-by: Vignesh Raghavendra --- drivers/dma/ti/k3-udma.c | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/drivers/dma/ti/k3-udma.c b/drivers/dma/ti/k3-udma.c index

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

2019-11-14 Thread Kever Yang
On 2019/11/11 上午12:25, Thomas Hebb wrote: 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 Reviewed-by: Kever Yang

Re: [U-Boot] [PATCH v3 9/9] doc: rockchip: Add documentation for rk3308 based boards

2019-11-14 Thread Kever Yang
On 2019/11/14 上午11:23, Andy Yan wrote: Add build documentation for rk3308 based boards. Signed-off-by: Andy Yan Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v3: - Doc update with more detail message. doc/README.rockchip | 92 - 1

Re: [U-Boot] [PATCH v3 8/9] rockchip: rk3308: Add support for ROC-RK3308-CC board

2019-11-14 Thread Kever Yang
On 2019/11/14 上午11:23, Andy Yan wrote: ROC-RK3308-CC is a rk3308 based board designed by Firelfy, with eMMC and 256MB DDR3 and RTL8188 Wifi on board. Signed-off-by: Andy Yan Reviewed-by: Kever Yang Thanks, - Kever --- Changes in v3: - rename config to roc-cc-rk3308_defconfig

Re: [U-Boot] [PATCH v3 7/9] rockchip: rk3308: Add dts for ROC-RK3308-CC

2019-11-14 Thread Kever Yang
On 2019/11/14 上午11:22, Andy Yan wrote: Add dts file for ROC-RK3308-CC from firefly. Sync form linux rockchip for v5.5-armsoc/dts64: "arm64: dts: rockchip: Add devicetree for board roc-rk3308-cc" (sha1: 4403e1237be3af0977aa23ef399e3496316317a0) Signed-off-by: Andy Yan Reviewed-by: Kever Yang

Re: [U-Boot] [PATCH 1/3] tools: dumpimage: Provide more feedback on internal errors

2019-11-14 Thread Lokesh Vutla
On 18/09/19 2:39 AM, Andrew F. Davis wrote: > The dumpimage utility errors out in a number of places without providing > sufficient feedback to allow the user to easily determine what has gone > wrong. Add additional error messages to make the cause of the failure > more obvious. > >

Re: [U-Boot] [PATCH 2/3] tools: fit_image: Use fit_image_get_data_and_size for getting offset/size

2019-11-14 Thread Lokesh Vutla
On 18/09/19 2:39 AM, Andrew F. Davis wrote: > This is very similar to fit_image_get_data but has the benefit of working > on FIT images with external data unlike fit_image_get_data. This is > useful for extracting sub-images from type of FIT image as this would > previously just silently fail.

Re: [U-Boot] [PATCH 3/3] tools: dumpimage: Fall-though to print usage for help command

2019-11-14 Thread Lokesh Vutla
On 18/09/19 2:39 AM, Andrew F. Davis wrote: > This has the same result but some compilers will warn about this > fall-through if there are statements as part of the label block. > > Signed-off-by: Andrew F. Davis Reviewed-by: Lokesh Vutla Thanks and regards, Lokesh

[U-Boot] [PATCH 05/42] configs: ls1012a: enable CONFIG_DM_GPIO to fix compilation error

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_GPIO to fix a compilation error as follows: - drivers/i2c/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined reference to

[U-Boot] [PATCH 03/42] board: freescale: ls1012ardb: ls1012ardb.c: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API for board LS1012ARDB Signed-off-by: Biwen Li --- board/freescale/ls1012ardb/ls1012ardb.c | 147 1 file changed, 123 insertions(+), 24 deletions(-) diff --git a/board/freescale/ls1012ardb/ls1012ardb.c b/board/freescale/ls1012ardb/ls1012ardb.c

[U-Boot] [PATCH 02/42] include/configs: arm: ls1012a: fix compilation error

2019-11-14 Thread Biwen Li
This fixes a compilation error as follow: - In file included from include/config.h:9:0, from ./include/common.h:23: include/config_fallbacks.h:51:4: error: #error "Cannot define CONFIG_SYS_I2C when CONFIG_DM_I2C is used" # error "Cannot define

[U-Boot] [PATCH 17/42] configs: ls1046a: enable CONFIG_DM_I2C

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_I2C for SoC LS1046A Signed-off-by: Biwen Li --- configs/ls1046afrwy_tfa_defconfig | 1 + configs/ls1046aqds_SECURE_BOOT_defconfig| 1 + configs/ls1046aqds_defconfig| 1 + configs/ls1046aqds_lpuart_defconfig | 1 +

[U-Boot] [PATCH 12/42] configs: arm: ls1043a: enable CONFIG_DM_GPIO

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_GPIO for SoC LS1043A to fix a compilation error as follows: - drivers/i2c/built-in.o: In function `mxc_i2c_probe':` drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined

[U-Boot] [PATCH 38/42] board: freescale: common: diu_ch7301: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API to fix compilation error as follows: - board/freescale/common/built-in.o: In function `diu_set_dvi_encoder: board/freescale/common/diu_ch7301.c:54: undefined reference to `i2c_write' board/freescale/common/diu_ch7301.c:61: undefined

[U-Boot] [PATCH 28/42] pmic: i2c: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API to fix compilation error as follows: - drivers/power/built-in.o: In function `pmic_reg_write': drivers/power/power_i2c.c:25: undefined reference to `I2C_SET_BUS' drivers/power/power_i2c.c:56: undefined reference to

[U-Boot] [PATCH 30/42] configs: arm: ls1021a: enable CONFIG_DM_I2C

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_I2C for SoC LS1021A Signed-off-by: Biwen Li --- configs/ls1021aiot_qspi_defconfig | 1 + configs/ls1021aiot_sdcard_defconfig | 1 + configs/ls1021aqds_ddr4_nor_defconfig | 1 + configs/ls1021aqds_ddr4_nor_lpuart_defconfig

[U-Boot] [PATCH 08/42] board: freescale: ls1012aqds: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API to fix compilation error when enabled CONFIG_DM_I2C as follows: - board/freescale/ls1012aqds/built-in.o: In function `misc_init_r: board/freescale/ls1012aqds/ls1012aqds.c:111: undefined reference to `i2c_set_bus_num'

[U-Boot] [PATCH 33/42] configs: arm: ls1021a: fix compilation error

2019-11-14 Thread Biwen Li
This fixes compilation error as follows: - drivers/i2c/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined reference to

[U-Boot] [PATCH 21/42] include/configs: ls1046a_common: do not define CONFIG_DM_I2C for spl

2019-11-14 Thread Biwen Li
This is used to fix build error as follows: - drivers/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:920: undefined reference to `fdt_stringlist_search' drivers/i2c/mxc_i2c.c:920:(.text.mxc_i2c_probe+0x7c): relocation truncated to fit: R_AARCH64_CALL26 against undefined

[U-Boot] [PATCH 24/42] armv8: dts: ls1046aqds: enable i2c0 DT node

2019-11-14 Thread Biwen Li
This enables i2c0 DT node Signed-off-by: Biwen Li --- arch/arm/dts/fsl-ls1046a-qds.dtsi | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/fsl-ls1046a-qds.dtsi b/arch/arm/dts/fsl-ls1046a-qds.dtsi index c95f44fc36..76dc397328 100644 --- a/arch/arm/dts/fsl-ls1046a-qds.dtsi +++

[U-Boot] [PATCH 34/42] ls1021aqds: dcu: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API to fix compilation error when enabled CONFIG_DM_I2C as follows: - board/freescale/ls1021aqds/built-in.o: In function `platform_dcu_init: board/freescale/ls1021aqds/dcu.c:54: undefined reference to `i2c_read'

[U-Boot] [PATCH 09/42] include/configs: ls1012a_common: define default i2c bus

2019-11-14 Thread Biwen Li
This defines default i2c bus with macro CONFIG_I2C_SET_DEFAULT_BUS_NUM and CONFIG_I2C_DEFAULT_BUS_NUMBER for ls1012a Signed-off-by: Biwen Li --- include/configs/ls1012a_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/ls1012a_common.h

[U-Boot] [PATCH 19/42] configs: arm: ls1046a: enable CONFIG_DM_GPIO

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_GPIO for SoC LS1046A to fix a compilation error as follows: - drivers/i2c/built-in.o: In function `mxc_i2c_probe: drivers/i2c/mxc_i2c.c:924: undefined reference to `gpio_request_by_name_nodev' drivers/i2c/mxc_i2c.c:927: undefined

[U-Boot] [PATCH 07/42] configs: ls1012a: enable CONFIG_DM_RTC

2019-11-14 Thread Biwen Li
This enables CONFIG_DM_RTC for SoC LS1012A to fix compilation error when enabled CONFIG_DM_I2C and CONFIG_CMD_DATE as follows: - cmd/date.c: In function ‘do_date’: cmd/date.c:51:12: warning: implicit declaration of function ‘I2C_GET_BUS’; did you mean ‘IDE_BUS’?

[U-Boot] [PATCH 20/42] board: freescale: ls1046aqds: fix build error

2019-11-14 Thread Biwen Li
This fixes build error as follows: - board/freescale/ls1046aqds/built-in.o: In function `board_early_init_f: board/freescale/ls1046aqds/ls1046aqds.c:333: undefined reference to `i2c_early_init_f' Signed-off-by: Biwen Li --- board/freescale/ls1046aqds/ls1046aqds.c | 2 ++ 1 file changed, 2

[U-Boot] [PATCH 06/42] gpio: do not include for ARCH_LS1012A

2019-11-14 Thread Biwen Li
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for SoC LS1012A. Compilation error as follows: - In file included from drivers/gpio/gpio-uclass.c:15:0: ./arch/arm/include/asm/gpio.h:7:10: fatal error: asm/arch/gpio.h: No such file or

[U-Boot] [PATCH 04/42] board: freescale: ls1012ardb: eth.c: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API for board LS1012ARDB Signed-off-by: Biwen Li --- board/freescale/ls1012ardb/eth.c | 35 1 file changed, 35 insertions(+) diff --git a/board/freescale/ls1012ardb/eth.c b/board/freescale/ls1012ardb/eth.c index b35d5343e4..0f33128996

[U-Boot] [PATCH 23/42] include/configs: ls1046a_common.h: define default i2c bus

2019-11-14 Thread Biwen Li
This defines default i2c bus with macro CONFIG_I2C_SET_DEFAULT_BUS_NUM and CONFIG_I2C_DEFAULT_BUS_NUMBER for SoC LS1046A Signed-off-by: Biwen Li --- include/configs/ls1046a_common.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/configs/ls1046a_common.h

[U-Boot] [PATCH 16/42] gpio: do not include for ARCH_LS1043A

2019-11-14 Thread Biwen Li
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for SoC LS1043A. Compilation error as follows: - In file included from drivers/gpio/gpio-uclass.c:15:0: ./arch/arm/include/asm/gpio.h:8:10: fatal error: asm/arch/gpio.h: No such file or

[U-Boot] [PATCH 40/42] armv8: fsl-layerscape: spl: fix build error when enabled CONFIG_DM_I2C

2019-11-14 Thread Biwen Li
This is used to fix build error as follows: - arch/arm/cpu/armv8/built-in.o: In function `board_init_f: arch/arm/cpu/armv8/fsl-layerscape/spl.c:74: undefined reference to `i2c_init_all' arch/arm/cpu/armv8/fsl-layerscape/spl.c:74:(.text.board_init_f+0x30): relocation truncated to fit:

[U-Boot] [PATCH 27/42] board: freescale: ls1046afrwy: support dm_i2c_* API

2019-11-14 Thread Biwen Li
This supports dm_i2c_* API to fix compilation error when enabled CONFIG_DM_I2C as follows: - board/freescale/ls1046afrwy/built-in.o: In function `select_i2c_ch_pca9547: board/freescale/ls1046afrwy/ls1046afrwy.c:42: undefined reference to `i2c_write'` Signed-off-by: Biwen Li

[U-Boot] [PATCH 42/42] Kconfigs: layerscape: use a convenient default value for SYS_MALLOC_F_LEN

2019-11-14 Thread Biwen Li
The default value of CONFIG_SYS_MALLOC_F_LEN (0x400) leaves U-Boot with not enough memory to do this, causing it to hang. Fix this problem by providing a convenient default value for CONFIG_SYS_MALLOC_F_LEN. Relative SoC: - LS1012A - LS1021A - LS1043A - LS1046A Signed-off-by: Biwen Li ---

[U-Boot] [PATCH 39/42] rtc: pcf8563: support driver model

2019-11-14 Thread Biwen Li
This supports driver model to drop warning as follows: - drivers/rtc/pcf8563.c: In function rtc_read: drivers/rtc/pcf8563.c:111:10: warning: implicit declaration of function i2c_reg_read; did you mean dm_i2c_reg_read? [-Wimplicit-function-declaration drivers/rtc/pcf8563.c: In function

[U-Boot] [PATCH 25/42] armv8: dts: ls1046afrwy: enable i2c0 DT node

2019-11-14 Thread Biwen Li
This enables i2c0 DT node Signed-off-by: Biwen Li --- arch/arm/dts/fsl-ls1046a-frwy.dts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/dts/fsl-ls1046a-frwy.dts b/arch/arm/dts/fsl-ls1046a-frwy.dts index 3d41e3bd44..d39159322a 100644 --- a/arch/arm/dts/fsl-ls1046a-frwy.dts +++

<    1   2   3   >