Re: [U-Boot] [PATCH v7 4/7] ARM: socfpga: Add the configuration for FPGA SoCFPGA A10 SoCDK

2019-01-31 Thread Marek Vasut
On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Update the default configuration file to enable the necessary functionality > to get the SoCFPGA loadfs driver support. This would enable the > implementation of programming bitstream into FPGA from MMC. > > Signed-of

Re: [U-Boot] [PATCH v7 7/7] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-01-31 Thread Marek Vasut
On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > After some series of patches to maximise reusable of memory pool, here come > to result of reasonable size required for whole SDMMC boot working on A10 > SoCDK. Size required come from default max cluster(0x10) +

Re: [U-Boot] [PATCH v7 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-01-31 Thread Marek Vasut
On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Add default fitImage file bundling FPGA bitstreams for Arria10. > > Signed-off-by: Tien Fong Chee > --- > board/altera/arria10-socdk/fit_spl_fpga.its | 31 > + > 1 file changed, 31 inser

Re: [U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-01-31 Thread Marek Vasut
On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Add FPGA driver to support program FPGA with FPGA bitstream loading from > filesystem. The driver are designed based on generic firmware loader > framework. The driver can handle FPGA program operation from loading FPG

Re: [U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-01-31 Thread Marek Vasut
On 1/31/19 3:51 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > This patch adds description on properties about file name used for both > peripheral bitstream and core bitstream. > > Signed-off-by: Tien Fong Chee > > --- > > changes for v7 > - Provided example of setting FPGA F

Re: [U-Boot] [PATCH v2 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-01-31 Thread Marek Vasut
On 1/31/19 1:42 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Release cluster block immediately when no longer use would help to reduce > 64KiB memory allocated to the memory pool. > > Signed-off-by: Tien Fong Chee > > --- > > changes for v2 > - Assigned NULL to itr after fre

Re: [U-Boot] [PATCH v2 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-01-31 Thread Marek Vasut
On 1/31/19 1:42 PM, tien.fong.c...@intel.com wrote: > From: Tien Fong Chee > > Drop the statically allocated get_contents_vfatname_block and > dynamically allocate a buffer only if required. This saves > 64KiB of memory. > > Signed-off-by: Stefan Agner > Signed-off-by: Tien Fong Chee > > ---

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Simon Goldschmidt
On Thu, Jan 31, 2019 at 4:02 PM Tom Rini wrote: > > On Thu, Jan 31, 2019 at 03:58:25PM +0100, Simon Goldschmidt wrote: > > On Thu, Jan 31, 2019 at 3:54 PM Tom Rini wrote: > > > > > > On Thu, Jan 31, 2019 at 08:21:29PM +0530, Jagan Teki wrote: > > > > On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschm

[U-Boot] [PATCH] initcall: Move to inline function

2019-01-31 Thread Alexander Graf
The board_r init function was complaining that we are looping through an array, calling all our tiny init stubs sequentially via indirect function calls (which can't be speculated, so they are slow). The solution to that is pretty easy though. All we need to do is inline the function that loops th

Re: [U-Boot] [PATCH 4/4] i2c: mux: Add support for not listed sub-buses

2019-01-31 Thread Michal Simek
On 31. 01. 19 11:04, Simon Glass wrote: > Hi Michal, > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: >> >> Before this patch is applied all i2c sub-buses are using number -1 and >> they can't be addresses(switch to). If all busses are listed in DT alias >> they will get proper numbers and U

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Tom Rini
On Thu, Jan 31, 2019 at 03:58:25PM +0100, Simon Goldschmidt wrote: > On Thu, Jan 31, 2019 at 3:54 PM Tom Rini wrote: > > > > On Thu, Jan 31, 2019 at 08:21:29PM +0530, Jagan Teki wrote: > > > On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschmidt > > > wrote: > > > > > > > > On Thu, Jan 31, 2019 at 3:4

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Jagan Teki
On Thu, Jan 31, 2019 at 8:24 PM Tom Rini wrote: > > On Thu, Jan 31, 2019 at 08:21:29PM +0530, Jagan Teki wrote: > > On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschmidt > > wrote: > > > > > > On Thu, Jan 31, 2019 at 3:43 PM Tom Rini wrote: > > > > > > > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, J

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Simon Goldschmidt
On Thu, Jan 31, 2019 at 3:54 PM Tom Rini wrote: > > On Thu, Jan 31, 2019 at 08:21:29PM +0530, Jagan Teki wrote: > > On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschmidt > > wrote: > > > > > > On Thu, Jan 31, 2019 at 3:43 PM Tom Rini wrote: > > > > > > > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, J

Re: [U-Boot] [PATCH] arm: dts: am33xx: add u-boot, dm-spl to ocp bus

2019-01-31 Thread Tom Rini
On Thu, Jan 31, 2019 at 08:03:19AM +0100, Hannes Schmelzer wrote: > commit fdce9d35dc36 ("arm: dts: am33xx: Sync dts with Linux 4.20.0") > did remove the "u-boot,dm-spl" flag from the 'ocp' bus which was > introduced with > commit 19aa4ac09db9 ("dts: am33xx: add u-boot, dm-spl to ocp bus") > > Du

Re: [U-Boot] [PATCH 9/9] mmc: sunxi: Mark end of DM_MMC #ifdefs

2019-01-31 Thread Andre Przywara
On Thu, 31 Jan 2019 03:04:21 -0700 Simon Glass wrote: > Hi Andre, > > On Fri, 18 Jan 2019 at 18:33, Andre Przywara > wrote: > > > > The Allwinner MMC supports both the legacy approach and the driver > > model, at the cost of quite some #ifdefs. > > > > Mark the closing #endifs with their respec

Re: [U-Boot] [PATCH 2/2] efi_loader: set the dhcp ack received flag

2019-01-31 Thread Patrick Wildt
On Thu, Jan 31, 2019 at 03:31:34PM +0100, Alexander Graf wrote: > On 01/31/2019 03:25 PM, Patrick Wildt wrote: > > On Sun, Dec 02, 2018 at 10:21:12PM +0100, Alexander Graf wrote: > > > On 27.03.18 18:05, Heinrich Schuchardt wrote: > > > > On 03/27/2018 02:24 PM, Patrick Wildt wrote: > > > > > The P

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Tom Rini
On Thu, Jan 31, 2019 at 08:21:29PM +0530, Jagan Teki wrote: > On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschmidt > wrote: > > > > On Thu, Jan 31, 2019 at 3:43 PM Tom Rini wrote: > > > > > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, Jagan Teki wrote: > > > > On Tue, Jan 29, 2019 at 11:19 AM Vignesh

[U-Boot] [PATCH v7 5/7] spl : socfpga: Implement fpga bitstream loading with socfpga loadfs

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add support for loading FPGA bitstream to get DDR up running before U-Boot is loaded into DDR. Boot device initialization, generic firmware loader and SPL FAT support are required for this whole mechanism to work. Signed-off-by: Tien Fong Chee --- changes for v7 - Removed

[U-Boot] [PATCH v7 3/7] ARM: socfpga: Add FPGA drivers for Arria 10 FPGA bitstream loading

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add FPGA driver to support program FPGA with FPGA bitstream loading from filesystem. The driver are designed based on generic firmware loader framework. The driver can handle FPGA program operation from loading FPGA bitstream in flash to memory and then to program FPGA. Sign

[U-Boot] [PATCH v7 4/7] ARM: socfpga: Add the configuration for FPGA SoCFPGA A10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality to get the SoCFPGA loadfs driver support. This would enable the implementation of programming bitstream into FPGA from MMC. Signed-off-by: Tien Fong Chee --- changes for v7 - Removed limit set for

[U-Boot] [PATCH v7 7/7] ARM: socfpga: Increase Malloc pool size to support FAT filesystem in SPL

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee After some series of patches to maximise reusable of memory pool, here come to result of reasonable size required for whole SDMMC boot working on A10 SoCDK. Size required come from default max cluster(0x10) + others(0x2000) + additional memory for headroom(0x3000). Signe

[U-Boot] [PATCH v7 1/7] ARM: socfpga: Description on FPGA bitstream type and file name for Arria 10

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee This patch adds description on properties about file name used for both peripheral bitstream and core bitstream. Signed-off-by: Tien Fong Chee --- changes for v7 - Provided example of setting FPGA FIT image for both early IO release and full release FPGA configuration.

[U-Boot] [PATCH v7 0/7] Add support for loading FPGA bitstream

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee These series of patches enable peripheral bitstream being programmed into FPGA to get the DDR up running. This's also called early IO release, because the peripheral bitstream is only initializing FPGA IOs, PLL, IO48 and DDR. Once DDR is up running, core bitstream from MMC w

[U-Boot] [PATCH v7 6/7] ARM: socfpga: Synchronize the configuration for A10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Update the default configuration file to enable the necessary functionality the get the kit working. Signed-off-by: Tien Fong Chee --- changes for v7 - Keep minimal configs --- configs/socfpga_arria10_defconfig | 17 +++-- 1 file changed, 11 insertions(+), 6

[U-Boot] [PATCH v7 2/7] ARM: socfpga: Add default FPGA bitstream fitImage for Arria10 SoCDK

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Add default fitImage file bundling FPGA bitstreams for Arria10. Signed-off-by: Tien Fong Chee --- board/altera/arria10-socdk/fit_spl_fpga.its | 31 + 1 file changed, 31 insertions(+) create mode 100644 board/altera/arria10-socdk/fit_spl_fpga.it

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Jagan Teki
On Thu, Jan 31, 2019 at 8:18 PM Simon Goldschmidt wrote: > > On Thu, Jan 31, 2019 at 3:43 PM Tom Rini wrote: > > > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, Jagan Teki wrote: > > > On Tue, Jan 29, 2019 at 11:19 AM Vignesh R wrote: > > > > > > > > Here is the v3 of SPI NOR migration(github bran

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Simon Goldschmidt
On Thu, Jan 31, 2019 at 3:43 PM Tom Rini wrote: > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, Jagan Teki wrote: > > On Tue, Jan 29, 2019 at 11:19 AM Vignesh R wrote: > > > > > > Here is the v3 of SPI NOR migration(github branch at [1]). I have > > > retained Tested-by from v2 as this is just re s

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Jagan Teki
On Thu, Jan 31, 2019 at 8:12 PM Tom Rini wrote: > > On Thu, Jan 31, 2019 at 08:10:53PM +0530, Jagan Teki wrote: > > On Tue, Jan 29, 2019 at 11:19 AM Vignesh R wrote: > > > > > > Here is the v3 of SPI NOR migration(github branch at [1]). I have > > > retained Tested-by from v2 as this is just re s

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Tom Rini
On Thu, Jan 31, 2019 at 08:10:53PM +0530, Jagan Teki wrote: > On Tue, Jan 29, 2019 at 11:19 AM Vignesh R wrote: > > > > Here is the v3 of SPI NOR migration(github branch at [1]). I have > > retained Tested-by from v2 as this is just re split of patches and > > minor fixups. > > > > Travis ci repor

Re: [U-Boot] [PATCH v3 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-31 Thread Tom Rini
On Thu, Jan 31, 2019 at 12:59:19PM +, Abel Vesa wrote: > On 19-01-30 13:58:19, Tom Rini wrote: > > On Wed, Jan 30, 2019 at 01:39:50PM +, Abel Vesa wrote: > > > > > The second version is here: > > > https://lists.denx.de/pipermail/u-boot/2019-January/356557.html > > > > > > Changes since v

Re: [U-Boot] [PATCH 2/4 v3] pci: pci_mvebu: Add DM_PCI support and move CONFIG_PCI_MVEBU to defconfig

2019-01-31 Thread Bin Meng
Hi Stefan, On Fri, Jan 25, 2019 at 6:53 PM Stefan Roese wrote: > > This patch adds DM_PCI support to the MVEBU PCIe driver. This is > necessary, since all PCI drivers have to be moved to DM (driver model) > until the v2019.07 release. > > To not break git bisect'ablility, this patch also moves CO

Re: [U-Boot] [PATCH v3 00/20] SF: Migrate to Linux SPI NOR framework

2019-01-31 Thread Jagan Teki
On Tue, Jan 29, 2019 at 11:19 AM Vignesh R wrote: > > Here is the v3 of SPI NOR migration(github branch at [1]). I have > retained Tested-by from v2 as this is just re split of patches and > minor fixups. > > Travis ci reports all green. > > Change log: > Since v2: > Split sync up patches into sma

Re: [U-Boot] [PATCH 1/4 v3] pci: Add pci_get_devfn() to extract devfn from the fdt_pci_addr

2019-01-31 Thread Bin Meng
On Fri, Jan 25, 2019 at 6:52 PM Stefan Roese wrote: > > This function will be used by the Marvell Armada XP/38x PCIe driver, > which is moved to DM right now. So let's extract the functionality > from pci_uclass_child_post_bind() to make it available. > > Signed-off-by: Stefan Roese > Cc: Simon G

Re: [U-Boot] [PATCH 2/2] efi_loader: set the dhcp ack received flag

2019-01-31 Thread Alexander Graf
On 01/31/2019 03:25 PM, Patrick Wildt wrote: On Sun, Dec 02, 2018 at 10:21:12PM +0100, Alexander Graf wrote: On 27.03.18 18:05, Heinrich Schuchardt wrote: On 03/27/2018 02:24 PM, Patrick Wildt wrote: The PXE object contains a flag that specifies whether or not a DHCP ACK has been received. Th

[U-Boot] [PATCH 09/13] board: ge: bx50v3: Specific ARP timeout removed

2019-01-31 Thread Ian Ray
From: Joonas Aijala Specific ARP timeout sometimes causes ARP timeout during nfs loading of the fitImage. Signed-off-by: Joonas Aijala Signed-off-by: Ian Ray --- include/configs/ge_bx50v3.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/ge_bx50v3.h b/include/configs/ge_bx5

[U-Boot] [PATCH 06/13] arm: imx: Add esdhc3/4 nodes to imx53.dtsi

2019-01-31 Thread Ian Ray
These nodes are required by mx53ppd when built with CONFIG_DM_MMC=y. They are copied from Linux 4.20.5. Signed-off-by: Ian Ray --- arch/arm/dts/imx53.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/arm/dts/imx53.dtsi b/arch/arm/dts/imx53.dtsi index e1300

Re: [U-Boot] [PATCH 2/2] efi_loader: set the dhcp ack received flag

2019-01-31 Thread Patrick Wildt
On Sun, Dec 02, 2018 at 10:21:12PM +0100, Alexander Graf wrote: > On 27.03.18 18:05, Heinrich Schuchardt wrote: > > On 03/27/2018 02:24 PM, Patrick Wildt wrote: > >> The PXE object contains a flag that specifies whether or not a DHCP > >> ACK has been received. This can be used by EFI Applications

[U-Boot] [PATCH 13/13] bootcount: i2c: Delay after writing

2019-01-31 Thread Ian Ray
Since 2018.11, the pattern of bootcount load and store has changed such that bootcount_inc() and bootcount_error() will load, increment, store, and load *again*. The second load exposes a timing problem whereby the i2c read fails. The root cause _seems_ to relate to performance of the 24c08 EEPRO

[U-Boot] [PATCH 03/13] board: ge: bx50v3: Enable CONFIG_DM_GPIO

2019-01-31 Thread Ian Ray
Enable CONFIG_DM_GPIO as a pre-requisite for enabling CONFIG_DM_SPI. Add explicit gpio_requests. Signed-off-by: Ian Ray --- board/ge/bx50v3/bx50v3.c| 11 ++- configs/ge_bx50v3_defconfig | 1 + 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/board/ge/bx50v3/bx50v3.c b

[U-Boot] [PATCH 01/13] board: ge: bx50v3: Enable CONFIG_DM

2019-01-31 Thread Ian Ray
Add simplified, generalised, bx50v3 device tree and enable CONFIG_DM. Signed-off-by: Ian Ray --- arch/arm/dts/Makefile | 2 ++ arch/arm/dts/imx6q-bx50v3.dts | 15 +++ configs/ge_bx50v3_defconfig | 4 3 files changed, 21 insertions(+) create mode 100644 arch/arm/dts/

[U-Boot] [PATCH 05/13] board: ge: ppd: Enable CONFIG_DM

2019-01-31 Thread Ian Ray
Add simplified, generalised, ppd device tree and enable CONFIG_DM. Signed-off-by: Ian Ray --- arch/arm/dts/Makefile | 1 + arch/arm/dts/imx53-ppd.dts | 14 ++ configs/mx53ppd_defconfig | 4 3 files changed, 19 insertions(+) create mode 100644 arch/arm/dts/imx53-ppd.dts

[U-Boot] [PATCH 10/13] board: ge: bx50v3: Network booting of fitImage with nfs rootfs

2019-01-31 Thread Ian Ray
From: Joonas Aijala New boot command introduced to automate network booting. Signed-off-by: Joonas Aijala Signed-off-by: Ian Ray --- include/configs/ge_bx50v3.h | 29 - 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/include/configs/ge_bx50v3.h b/incl

[U-Boot] [PATCH 08/13] board: ge: store version information in fdt

2019-01-31 Thread Ian Ray
Add board-specific FDT function to store U-Boot version in device tree. Signed-off-by: Ian Ray --- board/ge/bx50v3/bx50v3.c| 11 +++ board/ge/mx53ppd/mx53ppd.c | 11 +++ configs/ge_bx50v3_defconfig | 1 + configs/mx53ppd_defconfig | 1 + 4 files changed, 24 insertions(+)

[U-Boot] [PATCH 02/13] board: ge: bx50v3: Enable CONFIG_DM_MMC

2019-01-31 Thread Ian Ray
Use MMC device model, and remove USDHC pin configuration code since the pinctrl driver is used. Signed-off-by: Ian Ray --- arch/arm/dts/imx6q-bx50v3.dts | 47 ++ board/ge/bx50v3/bx50v3.c | 113 -- configs/ge_bx50v3_defconfig | 4 +

[U-Boot] [PATCH 12/13] mx53ppd: fix unsupported set command

2019-01-31 Thread Ian Ray
Fix the NFS commands which used `set' to instead use `setenv'. Signed-off-by: Ian Ray --- include/configs/mx53ppd.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/configs/mx53ppd.h b/include/configs/mx53ppd.h index efc2f31..e34693e 100644 --- a/include/configs/

[U-Boot] [PATCH 00/13] board: ge: initial dm support

2019-01-31 Thread Ian Ray
This series is primarily (patches 01-07) about converting ge_bx50v3 and mx53ppd boards to use the Driver Model and Device Tree. Four additional patches (08-13) include recent additional functionality and fixes. Patches applicable on top of master: * SHA1: 535d74a8ae8d194269cefdf59ae17a92cd6e75

[U-Boot] [PATCH 07/13] board: ge: ppd: Enable CONFIG_DM_MMC

2019-01-31 Thread Ian Ray
Use MMC device model, and remove USDHC pin configuration code since the pinctrl driver is used. Signed-off-by: Ian Ray --- arch/arm/dts/imx53-ppd.dts | 29 ++ board/ge/mx53ppd/mx53ppd.c | 73 -- configs/mx53ppd_defconfig | 4 +++ incl

[U-Boot] [PATCH 04/13] board: ge: bx50v3: Enable CONFIG_DM_SPI, CONFIG_DM_SPI_FLASH

2019-01-31 Thread Ian Ray
Use SPI flash device model, and remove SPI pin configuration code since the pinctrl driver is used. Signed-off-by: Ian Ray --- arch/arm/dts/imx6q-bx50v3.dts | 27 +++ board/ge/bx50v3/bx50v3.c | 25 - configs/ge_bx50v3_defconfig | 2 ++ 3 fi

[U-Boot] [PATCH 11/13] mx53ppd: bring dock out of reset at boot

2019-01-31 Thread Ian Ray
Configure GPIO BUFFERED_HOST_CONTROLLED_RESET_TO_DOCKING_CONNECTOR_N to bring the dock out of reset at boot. Signed-off-by: Ian Ray --- board/ge/mx53ppd/ppd_gpio.h | 4 1 file changed, 4 insertions(+) diff --git a/board/ge/mx53ppd/ppd_gpio.h b/board/ge/mx53ppd/ppd_gpio.h index e3b84c7..ba2

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-01-31 Thread Jagan Teki
On Thu, 31 Jan, 2019, 7:16 PM Vignesh R On 31/01/19 7:06 PM, Jagan Teki wrote: > [...] > > >> configs/xilinx_zynqmp_mini_qspi_defconfig| 1 - > > >> configs/xilinx_zynqmp_zc1232_revA_defconfig | 1 - > > >> configs/xilinx_zynqmp_zc1254_revA_defconfig | 1 - > > >>

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-01-31 Thread Vignesh R
On 31/01/19 7:06 PM, Jagan Teki wrote: [...] > >>  configs/xilinx_zynqmp_mini_qspi_defconfig        | 1 - > >>  configs/xilinx_zynqmp_zc1232_revA_defconfig      | 1 - > >>  configs/xilinx_zynqmp_zc1254_revA_defconfig      | 1 - > >>  configs/xilinx_zynqmp_zc1275_revA_defconfig     

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-01-31 Thread Jagan Teki
On Thu, 31 Jan, 2019, 7:02 PM Vignesh R > > On 31/01/19 6:48 PM, Jagan Teki wrote: > > On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: > >> > >> Now that new SPI NOR layer uses stateless 4 byte opcodes by default, > >> don't enable SPI_FLASH_BAR. For SPI controllers that cannot support > >> 4-b

Re: [U-Boot] [PATCH v3 02/20] bitops: Fix GENMASK definition for Sandbox

2019-01-31 Thread Vignesh R
On 31/01/19 6:11 AM, Simon Glass wrote: > On Mon, 28 Jan 2019 at 22:49, Vignesh R wrote: >> >> In arch/sandbox/include/asm/types.h we have >> Therefore for 32 bit Sandbox build BITS_PER_LONG turns out to be 32 as >> CONFIG_PHYS64 is not set >> >> This messes up the current logic of GENMASK macro

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-01-31 Thread Vignesh R
On 31/01/19 6:48 PM, Jagan Teki wrote: > On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: >> >> Now that new SPI NOR layer uses stateless 4 byte opcodes by default, >> don't enable SPI_FLASH_BAR. For SPI controllers that cannot support >> 4-byte addressing, (stm32_qspi.c, fsl_qspi.c, mtk_qspi.c

Re: [U-Boot] Problems to build i.MX8MQ EVK board

2019-01-31 Thread Breno Matheus Lima
Hi Stefano, Em qui, 31 de jan de 2019 às 11:21, Stefano Babic escreveu: > > Hi Breno, > > On 31/01/19 14:16, Breno Matheus Lima wrote: > > Hi Peng, > > > > I'm trying to build imx8mq_evk_defconfig target by following the > > README file under board/freescale/imx8mq_evk/. > > > > I'm seeing the fo

Re: [U-Boot] Problems to build i.MX8MQ EVK board

2019-01-31 Thread Stefano Babic
Hi Breno, On 31/01/19 14:16, Breno Matheus Lima wrote: > Hi Peng, > > I'm trying to build imx8mq_evk_defconfig target by following the > README file under board/freescale/imx8mq_evk/. > > I'm seeing the following error with latest U-Boot: > > ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin

Re: [U-Boot] [PATCH v3 19/20] configs: Don't use SPI_FLASH_BAR as default

2019-01-31 Thread Jagan Teki
On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: > > Now that new SPI NOR layer uses stateless 4 byte opcodes by default, > don't enable SPI_FLASH_BAR. For SPI controllers that cannot support > 4-byte addressing, (stm32_qspi.c, fsl_qspi.c, mtk_qspi.c, ich.c, > renesas_rpc_spi.c) add an imply clau

[U-Boot] Problems to build i.MX8MQ EVK board

2019-01-31 Thread Breno Matheus Lima
Hi Peng, I'm trying to build imx8mq_evk_defconfig target by following the README file under board/freescale/imx8mq_evk/. I'm seeing the following error with latest U-Boot: ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.bin: unexpected operator ./tools/imx8m_image.sh: 15: [: signed_hdmi_imx8m.b

Re: [U-Boot] [PATCH v3 1/2] x86: Add efi runtime reset

2019-01-31 Thread Bin Meng
On Thu, Jan 31, 2019 at 7:38 PM Heinrich Schuchardt wrote: > > On 1/31/19 8:31 AM, Bin Meng wrote: > > On Thu, Jan 31, 2019 at 3:30 PM Bin Meng wrote: > >> > >> On Thu, Jan 31, 2019 at 9:24 AM Simon Glass wrote: > >>> > >>> Hi, > >>> > >>> On Wed, 30 Jan 2019 at 12:03, Heinrich Schuchardt > >>

Re: [U-Boot] [PATCH v3 00/22] mx6sabre: Add DM and SPL FIT support

2019-01-31 Thread Abel Vesa
On 19-01-30 13:58:19, Tom Rini wrote: > On Wed, Jan 30, 2019 at 01:39:50PM +, Abel Vesa wrote: > > > The second version is here: > > https://lists.denx.de/pipermail/u-boot/2019-January/356557.html > > > > Changes since v2: > > * Removed the unecessary SYS_MALLOC_F_LEN from both defocnfig > >

Re: [U-Boot] [PATCH v3 14/20] mtd: spi: Switch to new SPI NOR framework

2019-01-31 Thread Jagan Teki
On Thu, Jan 31, 2019 at 6:24 PM Vignesh R wrote: > > > > On 31/01/19 6:09 PM, Jagan Teki wrote: > > On Thu, Jan 31, 2019 at 6:08 PM Vignesh R wrote: > >> > >> > >> > >> On 31/01/19 5:53 PM, Jagan Teki wrote: > >>> On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: > > Switch spi_flash_*

Re: [U-Boot] [PATCH v1 06/15] dm: clk: imx: Add support for controlling imx6q clocks via Driver Model

2019-01-31 Thread Lukasz Majewski
Hi Jagan, > On Tue, Jan 29, 2019 at 1:35 PM Lukasz Majewski wrote: > > > > Hi Jagan, > > > > > On Tue, Jan 29, 2019 at 12:46 PM Lukasz Majewski > > > wrote: > > > > > > > > Hi Stefano, Fabio, > > > > > > > > > Hi Lukasz, > > > > > > > > > > On 21/01/19 15:19, Lukasz Majewski wrote: > > >

Re: [U-Boot] [PATCH v3 14/20] mtd: spi: Switch to new SPI NOR framework

2019-01-31 Thread Vignesh R
On 31/01/19 6:09 PM, Jagan Teki wrote: > On Thu, Jan 31, 2019 at 6:08 PM Vignesh R wrote: >> >> >> >> On 31/01/19 5:53 PM, Jagan Teki wrote: >>> On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD layer. Fix u

[U-Boot] [PATCH v2 1/2] fs: fat: dynamically allocate memory for temporary buffer

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Drop the statically allocated get_contents_vfatname_block and dynamically allocate a buffer only if required. This saves 64KiB of memory. Signed-off-by: Stefan Agner Signed-off-by: Tien Fong Chee --- changes for v2 - Removed the change for debug message. - Set allocation

[U-Boot] [PATCH v2 2/2] fs: fat: Reduce default max clustersize 64KiB from malloc pool

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Release cluster block immediately when no longer use would help to reduce 64KiB memory allocated to the memory pool. Signed-off-by: Tien Fong Chee --- changes for v2 - Assigned NULL to itr after free. - Added NULL checking to itr, avoid freeing twice. --- fs/fat/fat.c |

Re: [U-Boot] Please pull u-boot-video

2019-01-31 Thread Anatolij Gustschin
On Thu, 31 Jan 2019 13:36:00 +0100 Anatolij Gustschin ag...@denx.de wrote: ... > please pull some video updates for v2019.04-rc1. Travis CI: https://travis-ci.org/vdsao/u-boot-video/builds/485617069 -- Anatolij ___ U-Boot mailing list U-Boot@lists.denx.

Re: [U-Boot] [PATCH v3 14/20] mtd: spi: Switch to new SPI NOR framework

2019-01-31 Thread Jagan Teki
On Thu, Jan 31, 2019 at 6:08 PM Vignesh R wrote: > > > > On 31/01/19 5:53 PM, Jagan Teki wrote: > > On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: > >> > >> Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD > >> layer. Fix up sf_dataflash to work in legacy way. And updat

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Otavio Salvador
On Thu, Jan 31, 2019 at 9:54 AM Offouga Joris wrote: > > On 31 Jan 2019, at 12:36, Otavio Salvador > > wrote: > >> On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris > >> wrote: > >> The PMIC problem occurs after the dm conversion > > > > It'd be good if you could rework the things I commented on t

Re: [U-Boot] [PATCH v3 14/20] mtd: spi: Switch to new SPI NOR framework

2019-01-31 Thread Vignesh R
On 31/01/19 5:53 PM, Jagan Teki wrote: > On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: >> >> Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD >> layer. Fix up sf_dataflash to work in legacy way. And update sandbox to >> use new interfaces/definitions >> >> Signed-off-

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

2019-01-31 Thread Anatolij Gustschin
Hi Tom, please pull some video updates for v2019.04-rc1. Thanks, Anatolij The following changes since commit 2f41ade79e5969ebea03a7dcadbeae8e03787d7e: linker: Modify linker scripts to be more generic (2019-01-26 22:55:53 -0500) are available in the Git repository at: git://git.denx.de/u-b

Re: [U-Boot] [PATCH v3 14/20] mtd: spi: Switch to new SPI NOR framework

2019-01-31 Thread Jagan Teki
On Tue, Jan 29, 2019 at 11:28 AM Vignesh R wrote: > > Switch spi_flash_* interfaces to call into new SPI NOR framework via MTD > layer. Fix up sf_dataflash to work in legacy way. And update sandbox to > use new interfaces/definitions > > Signed-off-by: Vignesh R > Tested-by: Simon Goldschmidt >

[U-Boot] [PATCH] drivers: serial: lpuart: Enable Little Endian Support

2019-01-31 Thread Vabhav Sharma
By default LPUART driver with compatible string "fsl,ls1021a-lpuart" support big-endian mode.On NXP SoC like LS1028A LPUART IP is little-endian,Added support to Fetch LPUART IP Endianness from lpuart device-tree node. Signed-off-by: Vabhav Sharma --- drivers/serial/serial_lpuart.c | 4 1 fi

Re: [U-Boot] [PATCH v3 16/20] mtd: spi: Add lightweight SPI flash stack for SPL

2019-01-31 Thread Jagan Teki
On Tue, Jan 29, 2019 at 11:29 AM Vignesh R wrote: > > Add a tiny SPI flash stack that just supports reading data/images from > SPI flash. This is useful for boards that have SPL size constraints and > would need to use SPI flash framework just to read images/data from > flash. There is approximate

[U-Boot] [PATCH v2 00/17] imx: dm: Update mccmon6 board to only use DM/DTS in u-boot proper

2019-01-31 Thread Lukasz Majewski
This patch series converts mccmon6 to use Driver Model and Device Tree in u-boot proper. As the SPL is size constrained (and most notably the device has a strict boot time requirements) for this board (and uses falcon boot) - its conversion to DM/DTB will be added with separate patch series. In th

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Offouga Joris
> On 31 Jan 2019, at 12:36, Otavio Salvador > wrote: > >> On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris wrote: >> The PMIC problem occurs after the dm conversion > > It'd be good if you could rework the things I commented on the > patchset and refresh the patches on top of imx/master so we c

Re: [U-Boot] [PATCH v1 06/15] dm: clk: imx: Add support for controlling imx6q clocks via Driver Model

2019-01-31 Thread Jagan Teki
On Tue, Jan 29, 2019 at 1:35 PM Lukasz Majewski wrote: > > Hi Jagan, > > > On Tue, Jan 29, 2019 at 12:46 PM Lukasz Majewski > > wrote: > > > > > > Hi Stefano, Fabio, > > > > > > > Hi Lukasz, > > > > > > > > On 21/01/19 15:19, Lukasz Majewski wrote: > > > > > Hi Fabio, > > > > > > > > > >> Hi Luka

Re: [U-Boot] [PATCH] lmb: handle more than one DRAM BANK

2019-01-31 Thread Simon Goldschmidt
On Thu, Jan 31, 2019 at 12:34 PM Heinrich Schuchardt wrote: > > On 1/31/19 11:04 AM, Simon Glass wrote: > > Hi Simon, > > > > On Sat, 26 Jan 2019 at 14:13, Simon Goldschmidt > > wrote: > >> > >> This fixes the automatic lmb initialization and reservation for boards > >> with more than one DRAM ba

Re: [U-Boot] [PATCH v3 1/2] x86: Add efi runtime reset

2019-01-31 Thread Heinrich Schuchardt
On 1/31/19 8:31 AM, Bin Meng wrote: > On Thu, Jan 31, 2019 at 3:30 PM Bin Meng wrote: >> >> On Thu, Jan 31, 2019 at 9:24 AM Simon Glass wrote: >>> >>> Hi, >>> >>> On Wed, 30 Jan 2019 at 12:03, Heinrich Schuchardt >>> wrote: On 1/30/19 11:46 AM, Alexander Graf wrote: > Our selftest

Re: [U-Boot] [RFC 1/9] Arm: dts: imx7d-pico: Import Linux pico-pi dts

2019-01-31 Thread Otavio Salvador
On Thu, Jan 31, 2019 at 1:59 AM Offouga Joris wrote: > The PMIC problem occurs after the dm conversion It'd be good if you could rework the things I commented on the patchset and refresh the patches on top of imx/master so we can all be on same page. -- Otavio Salvador

Re: [U-Boot] [PATCH] lmb: handle more than one DRAM BANK

2019-01-31 Thread Heinrich Schuchardt
On 1/31/19 11:04 AM, Simon Glass wrote: > Hi Simon, > > On Sat, 26 Jan 2019 at 14:13, Simon Goldschmidt > wrote: >> >> This fixes the automatic lmb initialization and reservation for boards >> with more than one DRAM bank. >> >> This fixes the CVE-2018-18439 and -18440 fixes that only allowed to

[U-Boot] [PATCH v4] misc: fs_loader: Add support for initializing block device

2019-01-31 Thread tien . fong . chee
From: Tien Fong Chee Firmware loader would encounter problem if the block device is accessed before initializing it. This patch would adding the support of probing block device and initializing block before the block device is accessed by firmware loader. Signed-off-by: Tien Fong Chee --- cha

Re: [U-Boot] [PATCH v2 03/17] dm: clk: Define clk_get_parent_rate() for clk operations

2019-01-31 Thread Lukasz Majewski
Hi Simon, > +Stephen > > Hi Lukasz, > > On Thu, 31 Jan 2019 at 02:04, Lukasz Majewski wrote: > > > > This commit adds the clk_get_parent_rate() function, which is > > responsible for getting the rate of parent clock. > > Unfortunately, u-boot's DM support for getting parent is different > > (th

Re: [U-Boot] [PATCH 3/4] i2c: dm: Record maximum id of devices before probing devices

2019-01-31 Thread Michal Simek
On 31. 01. 19 11:04, Simon Glass wrote: > Hi Michal, > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: >> >> There is a need to find out the first free i2c ID which can be used for >> i2s buses (including i2c buses connected to i2c mux). Do it early in >> init and share this variable with oth

Re: [U-Boot] [PATCH v2 04/17] dm: clk: Define clk_get_by_id() for clk operations

2019-01-31 Thread Lukasz Majewski
Hi Simon, > On Thu, 31 Jan 2019 at 02:04, Lukasz Majewski wrote: > > > > This commit adds the clk_get_by_id() function, which is responsible > > for getting the udevice with matching clk->id. Such approach allows > > re-usage of inherit DM list relationship for the same class > > (UCLASS_CLK). As

Re: [U-Boot] [PATCH] core: ofnode: Add ofnode_pci_get_devfn()

2019-01-31 Thread Stefan Roese
Hi Simon, On 31.01.19 11:04, Simon Glass wrote: Hi Stefan, On Tue, 22 Jan 2019 at 02:36, Stefan Roese wrote: Hi Simon, (added Bin, whom I forgot in this PCI patches) On 21.01.19 19:15, Simon Glass wrote: On Sat, 19 Jan 2019 at 00:46, Stefan Roese wrote: This function will be used by th

Re: [U-Boot] [RFC PATCH] dm: device: Do not probe parents which are probed already

2019-01-31 Thread Michal Simek
On 31. 01. 19 11:04, Simon Glass wrote: > Hi Michal, > > On Fri, 18 Jan 2019 at 02:41, Michal Simek wrote: >> >> From the first look there is no reason to probe parent nodes if they are >> active already. >> >> Signed-off-by: Michal Simek >> --- >> >> I have created this just for showing status

Re: [U-Boot] rockchip: dts: rk3399-firely: add 'same-as-spl'

2019-01-31 Thread Mark Kettenis
> From: Philipp Tomsich > Date: Thu, 31 Jan 2019 11:15:03 +0100 > > > Like on rk3399-puma we want to continue booting the fill U-Boot from > > the same device as the SPL stage. > > > > Signed-off-by: Mark Kettenis > > --- > > arch/arm/dts/rk3399-firefly.dts | 2 +- > > 1 file changed, 1 insert

Re: [U-Boot] [U-Boot, v2, 9/9] ARM: dts: rk322x: Correct the uart2 default pin configuration

2019-01-31 Thread Philipp Tomsich
> To match the iomux setting of uart2 at SPL, correct the uart2 > default pin configuration, if not changed, the evb-rk3229 can't > output the log message. > > Signed-off-by: David Wu > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > arch/arm/dts/rk322x.dtsi | 11 +-- > 1 fi

Re: [U-Boot] [PATCH v3] misc: fs_loader: Add support for initializing block device

2019-01-31 Thread Chee, Tien Fong
On Thu, 2019-01-31 at 03:04 -0700, Simon Glass wrote: > Hi, > > On Thu, 24 Jan 2019 at 03:24, wrote: > > > > > > From: Tien Fong Chee > > > > Firmware loader would encounter problem if the block device is > > accessed > > before initializing it. This patch would adding the support of > > prob

Re: [U-Boot] [U-Boot, v2, 5/9] rk3288: chrome: defconfig: Enable FDT for new pinctrl driver

2019-01-31 Thread Philipp Tomsich
> The FDT is requested for new pinctrl driver, disable SPL_OF_PLATDATA > and enable SPL_OF_LIBFDT to make FDT be built in. > > Signed-off-by: David Wu > --- > > Changes in v2: None > > configs/chromebit_mickey_defconfig | 2 -- > configs/chromebook_jerry_defconfig | 2 -- > configs/chromeboo

Re: [U-Boot] [PATCH 2/3] net: add higmacv300 Ethernet driver for HiSilicon platform

2019-01-31 Thread Shawn Guo
Hi Igor, On Tue, Jan 29, 2019 at 11:50:33PM +0200, Igor Opaniuk wrote: > Hi Shawn, > > Please see inline comments (mostly minor stuff). > I'll also test the driver a bit later and leave my T-b. Thanks. I appreciate the effort of testing. > > On Mon, 28 Jan 2019 at 11:15, Shawn Guo wrote: > >

Re: [U-Boot] [PATCH 1/4] dm: core: Add of_alias_get_highest_id()

2019-01-31 Thread Michal Simek
On 31. 01. 19 11:04, Simon Glass wrote: > Hi Michal, > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: >> >> The same functionality was added to Linux for i2c bus registration with this >> commit message: >> >> " >> of: base: add function to get highest id of an alias stem >> >> I2C supports

Re: [U-Boot] rockchip: dts: rk3399-firely: add 'same-as-spl'

2019-01-31 Thread Philipp Tomsich
> Like on rk3399-puma we want to continue booting the fill U-Boot from > the same device as the SPL stage. > > Signed-off-by: Mark Kettenis > --- > arch/arm/dts/rk3399-firefly.dts | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, v2, 8/9] pinctrl: rockchip: Clean the unused rockchip pinctrl drivers

2019-01-31 Thread Philipp Tomsich
> If we used the pinctrl-rockchip driver, these code is not needed, > so remove them. > > Signed-off-by: David Wu > Reviewed-by: Simon Glass > Tested-by: Simon Glass > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > drivers/pinctrl/rockchip/pinctrl_rk3036.c | 671 --- >

Re: [U-Boot] [PATCH 2/4] fdt: Introduce fdtdec_get_alias_highest_id()

2019-01-31 Thread Michal Simek
On 31. 01. 19 11:04, Simon Glass wrote: > Hi Michal, > > On Fri, 18 Jan 2019 at 08:13, Michal Simek wrote: >> >> Find out the highest alias ID used for certain subsystem. >> This call will be used for alocating IDs for i2c buses which are not >> described in DT. >> >> Signed-off-by: Michal Simek

Re: [U-Boot] [U-Boot, v2, 2/9] ARM: rockchip: rk3188: Remove the pinctrl setup and enable uart at SPL

2019-01-31 Thread Philipp Tomsich
> When the boot ROM sets up MMC we don't need to do it again. Remove the > MMC setup code entirely, but we also need to enable uart for debug message. > > Signed-off-by: David Wu > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > arch/arm/mach-rockchip/rk3188-board-spl.c | 41 ++-

Re: [U-Boot] [U-Boot, v2, 1/9] rockchip: rk3399-evb: defconfig: Enable FDT for new pinctrl driver

2019-01-31 Thread Philipp Tomsich
> The FDT is requested for new pinctrl driver, disable SPL_OF_PLATDATA > to make FDT be built in. > > Signed-off-by: David Wu > Reviewed-by: Simon Glass > Tested-by: Simon Glass > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > configs/evb-rk3399_defconfig | 1 - > 1 file changed,

Re: [U-Boot] [U-Boot, v2, 3/9] ARM: rockchip: Kconfig: Remove the SPL_PINCTRL for rk3188

2019-01-31 Thread Philipp Tomsich
> It seems that pinctrl is not requested for rk3188 SPL, remove it so > that can save more space for SPL image size. > > Signed-off-by: David Wu > Reviewed-by: Philipp Tomsich > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > arch/arm/mach-rockchip/Kconfig | 1 - > 1 file changed,

Re: [U-Boot] [U-Boot, v3] rockchip: add support for veyron-speedy (ASUS Chromebook C201)

2019-01-31 Thread Philipp Tomsich
> This adds support for the ASUS C201, a RK3288-based clamshell > device. The device tree comes from linus's linux tree at > 3f16503b7d2274ac8cbab11163047ac0b4c66cfe. The SDRAM parameters > are for 4GB Samsung LPDDR3, decoded from coreboot's > src/mainboard/google/veyron/sdram_inf/sdram-lpddr3-sams

Re: [U-Boot] [U-Boot, v2, 7/9] rockchip: defconfig: Clean the unused pinctrl config

2019-01-31 Thread Philipp Tomsich
> If we used the pinctrl-rockchip driver, these config is not needed, > so remove them. > > Signed-off-by: David Wu > Reviewed-by: Kever Yang > --- > > Changes in v2: None > > configs/chromebit_mickey_defconfig | 2 -- > configs/chromebook_jerry_defconfig | 2 -- > configs/chromebook_minnie

<    1   2   3   >