Re: [U-Boot] [PATCH] misc: fs_loader: Replace label with DT phandle

2019-03-10 Thread Chee, Tien Fong
On Sun, 2019-03-10 at 15:51 -0600, Simon Glass wrote: > Hi Tien Fong, > > On Tue, 26 Feb 2019 at 05:37, Chee, Tien Fong om> wrote: > > > > > > On Fri, 2019-02-15 at 14:35 +0800, tien.fong.c...@intel.com wrote: > > > > > > From: Tien Fong Chee > > > > > > In previously label which will be

Re: [U-Boot] [BUG] efi_loader: self-tests fail on qemu-x86_defconfig when compiled with GCC 8.3 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y

2019-03-10 Thread Bin Meng
HI Heinrich, On Mon, Mar 11, 2019 at 10:11 AM Heinrich Schuchardt wrote: > > Debian has recently (march 8th) upgraded GCC from 8.2 to 8.3. > > When I compile qemu-x86_defconfig with CONFIG_CC_OPTIMIZE_FOR_SIZE=y > some of the UEFI selftests (bootefi selftest) fail. It looks to me like > ebx is

[U-Boot] [PATCHv4 08/12] pci: ls_pcie_g4: add Workaround for A-011577

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang PCIe configuration access to non-existent function triggered SERROR interrupt exception. Workaround: Disable error reporting on AXI bus during the Vendor ID read transactions in enumeration. This ERRATA is only for LX2160A Rev1.0 and will be fixed in Rev2.0. Signed-off-by:

[U-Boot] [PATCHv4 12/12] pci: ls_pcie_g4: add Workaround for A-011452

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang For PCIe controllers with SRIOV, MSIx table entries of all the VFs are not accessible if BAR size is set to less than 8MB. This ERRATA is only for LX2160A Rev1.0 and will be fixed in Rev2.0. Signed-off-by: Hou Zhiqiang --- V4: - No change

[U-Boot] [PATCHv4 07/12] armv8: lx2160a: enable PCIe support

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang Enable the PCIe Gen4 controller driver and e1000 for LX2160ARDB and LX2160AQDS boards. Signed-off-by: Hou Zhiqiang --- V4: - Add PCI command support - Enable PCIe in more LX2160A defconfigs configs/lx2160aqds_tfa_SECURE_BOOT_defconfig | 5 +

[U-Boot] [PATCHv4 11/12] pci: ls_pcie_g4: Add Workaround for A-011451

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang When LAYERSCAPE Gen4 PCIe controller is sending multiple split completions and ACK latency expires indicating that ACK should be send at priority. But because of large number of split completions and FC update DLLP, the controller does not give priority to ACK transmission.

[U-Boot] [PATCHv4 06/12] armv8: lx2160a: add PCIe controller DT nodes

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang The LX2160A integrated 6 PCIe Gen4 controllers. Signed-off-by: Hou Zhiqiang --- V4: - No change arch/arm/dts/fsl-lx2160a.dtsi | 85 +++ 1 file changed, 85 insertions(+) diff --git a/arch/arm/dts/fsl-lx2160a.dtsi

[U-Boot] [PATCHv4 04/12] kconfig: add dependency PCIE_LAYERSCAPE_GEN4 for FSL_PCIE_COMPAT

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang The LX2160A PCIe is using driver PCIE_LAYERSCAPE_GEN4 instead of PCIE_LAYERSCAPE. Signed-off-by: Hou Zhiqiang --- V4: - No change arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[U-Boot] [PATCHv4 09/12] dm: pci: add APIs for capability accessors

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang This patch introduce a set of PCI/PCIe capability accessors, including 16-bit and 32-bit read, write and clear_and_set operations. Signed-off-by: Hou Zhiqiang --- V4: - New patch drivers/pci/pci-uclass.c | 153 +++ include/pci.h

[U-Boot] [PATCHv4 10/12] dm: pci: add APIs for MPS and MRRS accessors

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang This patch introduce APIs for getting and updating the MPS and MRRS fields of Device capability Device control register. Signed-off-by: Hou Zhiqiang --- V4: - New patch drivers/pci/pci-uclass.c | 92 include/pci.h| 13

[U-Boot] [PATCHv4 03/12] pci: Add PCIe Gen4 controller driver for NXP Layerscape SoCs

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe Gen4 driver for the NXP Layerscape SoCs. This PCIe controller is based on the Mobiveil IP, which is compatible with the PCI Express™ Base Specification, Revision 4.0. Signed-off-by: Hou Zhiqiang Signed-off-by: Bao Xiaowei --- V4: - No change drivers/pci/Kconfig

[U-Boot] [PATCHv4 05/12] pci: ls_pcie_g4: add device tree fixups for PCI Stream IDs

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang Add the infrastructure for Layerscape SoCs PCIe Gen4 controller to update device tree nodes to convey SMMU stream IDs in the device tree. Signed-off-by: Hou Zhiqiang --- V4: - No change drivers/pci/Makefile | 3 +- drivers/pci/pcie_layerscape_gen4.c

[U-Boot] [PATCHv4 02/12] armv8: lx2160a: add MMU table entries for PCIe

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang The lx2160a have up to 6 PCIe controllers and have different address and size of PCIe region. Signed-off-by: Hou Zhiqiang --- V4: - No change arch/arm/cpu/armv8/fsl-layerscape/cpu.c| 12 arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 2 ++

[U-Boot] [PATCHv4 01/12] armv8: fsl-layerscpae: correct the PCIe controllers' region size

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang The LS2080A has 8GB region for each PCIe controller, while the other platforms have 32GB. Signed-off-by: Hou Zhiqiang --- V4: - No change arch/arm/include/asm/arch-fsl-layerscape/cpu.h | 7 +++ 1 file changed, 7 insertions(+) diff --git

[U-Boot] [PATCHv4 00/12] pci: Add PCIe Gen4 controller driver for NXP Layerscape SoCs

2019-03-10 Thread Z.q. Hou
From: Hou Zhiqiang Add PCIe Gen4 driver for the NXP Layerscape series SoCs. Hou Zhiqiang (12): armv8: fsl-layerscpae: correct the PCIe controllers' region size armv8: lx2160a: add MMU table entries for PCIe pci: Add PCIe Gen4 controller driver for NXP Layerscape SoCs kconfig: add

Re: [U-Boot] [U-Boot, 2/2] rockchip: Drop call to rockchip_dnl_mode_check() for now【请注意,邮件由u-boot-boun...@lists.denx.de代发】【请注意,邮件由s...@google.com代发】

2019-03-10 Thread Simon Glass
Hi Andy, On Wed, 6 Mar 2019 at 03:52, Andy Yan wrote: > > Hi Simon: > > On 2019/2/12 下午11:31, Simon Glass wrote: > > HI Andy, > > > > On Tue, 12 Feb 2019 at 04:05, Andy Yan wrote: > >> Hi Philipp: > >> > >> Sorry for the late reply, we just come back from the Chinese Spring > >> Festival.

[U-Boot] [BUG] efi_loader: self-tests fail on qemu-x86_defconfig when compiled with GCC 8.3 and CONFIG_CC_OPTIMIZE_FOR_SIZE=y

2019-03-10 Thread Heinrich Schuchardt
Debian has recently (march 8th) upgraded GCC from 8.2 to 8.3. When I compile qemu-x86_defconfig with CONFIG_CC_OPTIMIZE_FOR_SIZE=y some of the UEFI selftests (bootefi selftest) fail. It looks to me like ebx is not conserved. With CONFIG_CC_OPTIMIZE_FOR_SIZE=n everything is fine. Best regards

[U-Boot] [PATCH v3 1/1] efi_loader: Fix serial console size detection

2019-03-10 Thread Heinrich Schuchardt
From: Matthias Brugger Function term_read_reply tries to read from the serial console until the end_char was read. This can hang forever if we are, for some reason, not able to read the full response (e.g. serial buffer too small, frame error). This patch moves the timeout detection into

[U-Boot] [PATCH v4 1/1] efi_loader: Patch non-runtime code out at ExitBootServices already

2019-03-10 Thread Heinrich Schuchardt
From: Alexander Graf While discussing something compeltely different, Ard pointed out that it might be legal to omit calling SetVirtualAddressMap altogether. There is even a patch on the Linux Kernel Mailing List that implements such behavior by now:

[U-Boot] [PATCH v2 1/1] efi_loader: Patch non-runtime code out at ExitBootServices already

2019-03-10 Thread Heinrich Schuchardt
From: Alexander Graf While discussing something compeltely different, Ard pointed out that it might be legal to omit calling SetVirtualAddressMap altogether. There is even a patch on the Linux Kernel Mailing List that implements such behavior by now:

Re: [U-Boot] [PATCH v3 1/7] cmd: part: Add 'number' sub-command

2019-03-10 Thread Eugeniu Rosca
Hi Igor, On Mon, Feb 18, 2019 at 06:21:51PM +0200, Igor Opaniuk wrote: > From: Ruslan Trofymenko > > This sub-command serves for getting the partition index from > partition name. [..] > CMD_PART_INFO_SIZE, > + CMD_PART_INFO_NUMBER IMHO 's/number/index/' (when referring to the id

Re: [U-Boot] [PATCH 2/4] lib: fdt: Split fdtdec_setup_memory_banksize()

2019-03-10 Thread Simon Glass
On Mon, 4 Mar 2019 at 20:26, Marek Vasut wrote: > > Split fdtdec_setup_memory_banksize() into fdtdec_setup_memory_banksize_fdt(), > which allows the caller to pass custom blob into the function and the > original fdtdec_setup_memory_banksize(), which uses the gd->fdt_blob. This > is useful when

Re: [U-Boot] [PATCH 4/6] fdtdec: Implement fdtdec_add_reserved_memory()

2019-03-10 Thread Simon Glass
On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > This function can be used to add subnodes in the /reserved-memory node. > > Signed-off-by: Thierry Reding > --- > include/fdtdec.h | 17 + > lib/fdtdec.c | 158

Re: [U-Boot] [PATCH 1/2] syscon: update syscon_regmap_lookup_by_phandle

2019-03-10 Thread Simon Glass
On Thu, 7 Mar 2019 at 01:57, Patrick Delaunay wrote: > > Change the function syscon_regmap_lookup_by_phandle() > introduced by commit 6c3af1f24e4b ("syscon: dm: Add a > new method to get a regmap from DTS") to have > Linux-compatible syscon API. > > Same modification than commit e151a1c288bd

Re: [U-Boot] [U-Boot-DM] pre-reloc fdt scan for non-top-level nodes

2019-03-10 Thread Simon Glass
Hi Viktor, On Wed, 6 Mar 2019 at 13:26, Simon Glass wrote: > > (We don't use the -dm mailing list...perhaps it should be deleted?) > > On Wed, 27 Feb 2019 at 09:22, viktor babrian wrote: >> >> Hi, >> >> as far as I understood, the pre-reloc device binding of drivers having >> DM_FLAG_PRE_RELOC

Re: [U-Boot] [PATCH 1/4] lib: fdt: Split fdtdec_setup_mem_size_base()

2019-03-10 Thread Simon Glass
On Mon, 4 Mar 2019 at 20:26, Marek Vasut wrote: > > Split fdtdec_setup_mem_size_base() into fdtdec_setup_mem_size_base_fdt(), > which allows the caller to pass custom blob into the function and the > original fdtdec_setup_mem_size_base(), which uses the gd->fdt_blob. This > is useful when

Re: [U-Boot] [PATCH] core: ofnode: Fix ASAN-reported stack-buffer-overflow in of_get_address

2019-03-10 Thread Simon Glass
On Sat, 9 Mar 2019 at 09:27, Eugeniu Rosca wrote: > > v2019.04-rc3 sandbox U-Boot fails to boot when compiled with > -fsanitize=address and linked against -lasan, reporting [1]. > > Git bisecting shows that the issue is contributed by v2019.01 commit > 1678754f5e2c ("core: ofnode: Fix

Re: [U-Boot] [PATCHv1 2/4] dm: cache: Create a uclass for cache controller

2019-03-10 Thread Simon Glass
Hi Dinh, On Fri, 8 Mar 2019 at 09:17, Dinh Nguyen wrote: > > The cache controller driver configures the cache settings that can be > found in the device tree files. > > This initial revision only configures basic settings(data & instruction > prefetch, shared-override, data & tag latency). I

Re: [U-Boot] [PATCH] dm: check OF_LIVE is enabled

2019-03-10 Thread Simon Glass
Hi Ibai, On Tue, 26 Feb 2019 at 02:26, Ibai Erkiaga wrote: > > Livetree implemented functions does not have conditional compilation so > check if CONFIG_IS_ENABLED prior using those functions. > > The issue does not report any error in a normal build as the toolchain > optimize the code. Using

Re: [U-Boot] Revert "Ensure device tree DTS is compiled"

2019-03-10 Thread Simon Glass
Hi Tom, Masahiro, On Sat, 9 Mar 2019 at 10:42, Tom Rini wrote: > > On Sun, Mar 10, 2019 at 01:07:48AM +0900, Masahiro Yamada wrote: > > Hi Tom, > > > > > > On Sat, Mar 9, 2019 at 8:04 AM Tom Rini wrote: > > > > > > On Thu, Mar 07, 2019 at 11:13:52PM +0900, Masahiro Yamada wrote: > > > > > > >

Re: [U-Boot] [PATCH 5/6] fdtdec: Implement carveout support functions

2019-03-10 Thread Simon Glass
Hi Thierry, On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > The fdtdec_get_carveout() and fdtdec_set_carveout() function can be used > to read a carveout from a given node or add a carveout to a given node > using the standard device tree bindings (involving

Re: [U-Boot] [PATCH] misc: fs_loader: Replace label with DT phandle

2019-03-10 Thread Simon Glass
Hi Tien Fong, On Tue, 26 Feb 2019 at 05:37, Chee, Tien Fong wrote: > > On Fri, 2019-02-15 at 14:35 +0800, tien.fong.c...@intel.com wrote: > > From: Tien Fong Chee > > > > In previously label which will be expanded to the node's full path > > was > > used, and now replacing label with most

Re: [U-Boot] [PATCH 1/4] x86: Make sure i8254 is setup correctly before generating beeps

2019-03-10 Thread Simon Glass
On Tue, 26 Feb 2019 at 02:47, Bin Meng wrote: > > The i8254 timer control IO port (0x43) should be setup correctly > by using PIT counter 2 to generate beeps, however in U-Boot other > codes like TSC driver utilizes PIT for TSC frequency calibration > and configures the counter 2 to a different

Re: [U-Boot] [PATCH 3/4] x86: coreboot: Add the missing pc speaker node in the device tree

2019-03-10 Thread Simon Glass
On Tue, 26 Feb 2019 at 02:47, Bin Meng wrote: > > This is currently missing and without it the i8254 beeper driver > won't work. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/coreboot.dts | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] fdt: Remove duplicate code

2019-03-10 Thread Simon Glass
On Fri, 1 Mar 2019 at 11:20, Thierry Reding wrote: > > From: Thierry Reding > > Commit 6d29cc7dcf2d ("fdt: Fixup only valid memory banks") ended up > being merged twice, first as: > > commit 6d29cc7dcf2d35966aa0b6119fd1cbca0d21d5e6 > Author: Thierry Reding >

Re: [U-Boot] [PATCH 4/4] x86: crownbay: Enable the beeper sound driver

2019-03-10 Thread Simon Glass
On Tue, 26 Feb 2019 at 02:47, Bin Meng wrote: > > Use the i8254 sound driver to support creating simple beeps. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/crownbay.dts | 1 + > configs/crownbay_defconfig | 3 +++ > 2 files changed, 4 insertions(+) Reviewed-by: Simon Glass

Re: [U-Boot] [PATCH] dm: Also remove interrupts property from SPL DT

2019-03-10 Thread Simon Glass
On Fri, 22 Feb 2019 at 02:50, Michal Simek wrote: > > interrupt-parent property is removed already that's why there is no > reason to keep interrupts property if parent doesn't exist. > > Signed-off-by: Michal Simek > --- > > dts/Kconfig | 8 > 1 file changed, 4 insertions(+), 4

Re: [U-Boot] [PATCH 3/6] fdtdec: Implement fdtdec_set_phandle()

2019-03-10 Thread Simon Glass
Hi Thierry, On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > This function can be used to set a phandle for a given node. > > Signed-off-by: Thierry Reding > --- > include/fdtdec.h | 11 +++ > lib/fdtdec.c | 16 > 2 files changed, 27

Re: [U-Boot] Pincontroller not getting initialized on imx6 in SPL with SPL_PINCTRL and OF_CONTROL

2019-03-10 Thread Simon Glass
HI Adam, On Fri, 22 Feb 2019 at 12:22, Adam Ford wrote: > > On Wed, Feb 20, 2019 at 11:38 AM Adam Ford wrote: > > > > On Wed, Feb 20, 2019 at 10:09 AM Lokesh Vutla wrote: > > > > > > > > > > > > On 2/20/2019 8:46 PM, Adam Ford wrote: > > > > On Wed, Feb 20, 2019 at 7:49 AM Lokesh Vutla wrote:

Re: [U-Boot] [PATCH 2/6] fdtdec: Implement fdtdec_get_max_phandle()

2019-03-10 Thread Simon Glass
Hi Thierry, On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > This function allows looking up the highest phandle value stored in a > device tree, which is useful to determine the next best phandle value > for new nodes. > > Signed-off-by: Thierry Reding > --- >

Re: [U-Boot] [PATCH 2/4] x86: Add a dtsi file for the pc speaker

2019-03-10 Thread Simon Glass
On Tue, 26 Feb 2019 at 02:47, Bin Meng wrote: > > The pc speaker driven by the i8254 is generic enough to deserve > a single dtsi file to be included by boards that use it. > > Signed-off-by: Bin Meng > --- > > arch/x86/dts/pcspkr.dtsi | 5 + > 1 file changed, 5 insertions(+) > create mode

Re: [U-Boot] [PATCH v3 05/13] clk: Use clk_get_by_index_tail()

2019-03-10 Thread Simon Glass
On Wed, 27 Feb 2019 at 11:57, Jagan Teki wrote: > > clk_get_by_index_tail() now handle common clk get by index > code so use it from clk_get_by_indexed_prop(). > > Cc: Stephen Warren > Cc: Simon Glass > Signed-off-by: Jagan Teki > --- > Changes for v3: > - use clk_get_by_index_tail() from

Re: [U-Boot] [PATCH v2 2/2] dm: pinctrl: Skip gpio-controller node in pinconfig_post_bind()

2019-03-10 Thread Simon Glass
On Mon, 25 Feb 2019 at 05:40, Patrice Chotard wrote: > > From: Patrick Delaunay > > Some binding define child node gpio-controller without compatible property. > This patch avoid to bind the pinconfig uclass to these node. > > For example, the binding for st,stm32-pinctrl >

Re: [U-Boot] [PATCH 1/6] fdtdec: Add cpu_to_fdt_{addr, size}() macros

2019-03-10 Thread Simon Glass
On Fri, 8 Mar 2019 at 13:11, Thierry Reding wrote: > > From: Thierry Reding > > These macros are useful for converting the endianness of variables of > type fdt_addr_t and fdt_size_t. > > Signed-off-by: Thierry Reding > --- > include/fdtdec.h | 4 > 1 file changed, 4 insertions(+)

Re: [U-Boot] ut dm pch sandbox test failures

2019-03-10 Thread Simon Glass
On Tue, 26 Feb 2019 at 14:09, Tom Rini wrote: > > On Tue, Feb 26, 2019 at 12:21:53PM -0700, Stephen Warren wrote: > > On 2/25/19 4:49 PM, Stephen Warren wrote: > > >On 2/21/19 4:45 PM, Stephen Warren wrote: > > >>With the latest push to u-boot.git master branch, I'm seeing the > > >>following

Re: [U-Boot] [U-Boot,v2,11/23] spl: Add a comment to spl_set_bd()

2019-03-10 Thread Simon Glass
Hi Simon, On Wed, 20 Feb 2019 at 22:44, Simon Goldschmidt wrote: > > > > Am Do., 21. Feb. 2019, 03:48 hat Simon Glass geschrieben: >> >> Hi Simon, >> >> On Mon, 11 Feb 2019 at 14:00, Simon Goldschmidt >> wrote: >> > >> > Am 09.11.2018 um 19:43 schrieb Tom Rini: >> > > On Tue, Oct 02, 2018 at

Re: [U-Boot] [PATCH v3 7/7] env: am57xx: Implement A/B boot process

2019-03-10 Thread Simon Glass
On Mon, 18 Feb 2019 at 09:22, Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > Add support for A/B boot process on AM57xx based boards: > > 1. Define 'slot_suffix' variable (using 'ab_select' command) > 2. Extend 'emmc_android_boot' boot command (add commands for A/B boot > process)

Re: [U-Boot] [PATCH v3 4/7] cmd: Add 'ab_select' command

2019-03-10 Thread Simon Glass
On Mon, 18 Feb 2019 at 09:22, Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > For A/B system update support the Android boot process requires to send > 'androidboot.slot_suffix' parameter as a command line argument. This > patch implementes 'ab_select' command which allows us to obtain

Re: [U-Boot] [PATCH v3 3/7] common: Implement A/B metadata

2019-03-10 Thread Simon Glass
Hi Igor, On Mon, 18 Feb 2019 at 10:22, Igor Opaniuk wrote: > > From: Ruslan Trofymenko > > This patch determines the A/B-specific bootloader message structure > that is the basis for implementation of recovery and A/B update > functions. A/B metadata is stored in this structure and used to

Re: [U-Boot] [PATCH 5/7] riscv: add support for multi-hart systems

2019-03-10 Thread Anup Patel
> -Original Message- > From: U-Boot On Behalf Of Auer, Lukas > Sent: Sunday, March 10, 2019 11:42 PM > To: a...@brainfault.org > Cc: rickche...@gmail.com; bar...@tkos.co.il; s...@denx.de; > cmc...@andestech.com; greent...@andestech.com; sch...@suse.de; > pal...@sifive.com;

Re: [U-Boot] SUNXI : CONFIG_VIDEO_SUNXI is never set

2019-03-10 Thread Arjan van Vught
> Op 7 mrt. 2019, om 09:04 heeft Chen-Yu Tsai het volgende > geschreven: > > On Fri, Mar 1, 2019 at 11:36 PM Arjan van Vught > wrote: >> >> Version: u-boot-2018.09 >> >> This is a follow-up for : "SUNXI : setenv video-mode not working" >> >> Although I have added CONFIG_VIDEO_SUNXI=y in

[U-Boot] [PATCH] Revert "pico-imx7d: Add LCD support"

2019-03-10 Thread Joris Offouga
This reverts commit 9e3c0174da842dd88f5feaffbf843ba332233897. This commit causes the crash of U-Boot when loaded with imx-usb-loader --- board/technexion/pico-imx7d/pico-imx7d.c | 55 configs/pico-hobbit-imx7d_defconfig | 1 - configs/pico-imx7d_defconfig

Re: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-03-10 Thread Joris Offouga
Le 10/03/2019 à 15:24, Fabio Estevam a écrit : Hi Joris, On Sat, Mar 9, 2019 at 7:21 PM Offouga Joris wrote: Hi Fabio, I revert the commit about add lcd and on u-boot master and u-boot imx i have the u-boot is flashed correctly in usb and dfu. do you agree that I send the revert of the

Re: [U-Boot] [PATCH 5/7] riscv: add support for multi-hart systems

2019-03-10 Thread Auer, Lukas
On Sun, 2019-03-10 at 20:24 +0530, Anup Patel wrote: > On Sun, Mar 10, 2019 at 7:28 PM Auer, Lukas > wrote: > > Hi Rick, > > > > On Thu, 2019-03-07 at 17:30 +0800, Rick Chen wrote: > > > Hi Lukas > > > > > > > > From: Lukas Auer [mailto:lukas.a...@aisec.fraunhofer.de] > > > > > Sent: Tuesday,

Re: [U-Boot] [PATCH v4 07/12] drivers: spi: cf_spi: convert to driver model

2019-03-10 Thread Angelo Dureghello
Hi Jagan, thanks for your comments, On Fri, Mar 08, 2019 at 11:30:56AM +0530, Jagan Teki wrote: > On Mon, Dec 17, 2018 at 1:06 AM Angelo Dureghello wrote: > > > > Converting to driver model and removes non-dm code. > > > > Reviewed-by: Simon Glass > > Signed-off-by: Angelo Dureghello > > ---

Re: [U-Boot] [U-Boot, RESEND, 1/3] ARM: dts: imx6ul-lite*: add DTS files for liteSOM and liteboard

2019-03-10 Thread Marcin Niestrój
sba...@denx.de writes: >> Import liteSOM and liteboard dts files from Linux v4.20. They will >> be used after transition to driver model and device-tree based boot. >> Signed-off-by: Marcin Niestroj > > Applied to u-boot-imx, master, thanks ! Thanks! What about patches 2 and 3? > > Best

Re: [U-Boot] [PATCH 5/7] riscv: add support for multi-hart systems

2019-03-10 Thread Anup Patel
On Sun, Mar 10, 2019 at 7:28 PM Auer, Lukas wrote: > > Hi Rick, > > On Thu, 2019-03-07 at 17:30 +0800, Rick Chen wrote: > > Hi Lukas > > > > > > From: Lukas Auer [mailto:lukas.a...@aisec.fraunhofer.de] > > > > Sent: Tuesday, February 12, 2019 6:14 AM > > > > To: u-boot@lists.denx.de > > > > Cc:

Re: [U-Boot] [PATCH v2 1/9] riscv: add infrastructure for calling functions on other harts

2019-03-10 Thread Auer, Lukas
On Wed, 2019-03-06 at 19:20 -0800, Atish Patra wrote: > On 3/5/19 2:54 PM, Lukas Auer wrote: > > Harts on RISC-V boot independently, U-Boot is responsible for > > managing > > them. Functions are called on other harts with smp_call_function(), > > which sends inter-processor interrupts (IPIs) to

Re: [U-Boot] [RFC 0/9] Convert Pico-Pi i.MX7D to DM

2019-03-10 Thread Fabio Estevam
Hi Joris, On Sat, Mar 9, 2019 at 7:21 PM Offouga Joris wrote: > Hi Fabio, > > I revert the commit about add lcd and on u-boot master and u-boot imx i have > the u-boot is flashed correctly in usb and dfu. > > do you agree that I send the revert of the commit? Yes, please revert it for now and

Re: [U-Boot] [PATCH 5/7] riscv: add support for multi-hart systems

2019-03-10 Thread Auer, Lukas
Hi Rick, On Thu, 2019-03-07 at 17:30 +0800, Rick Chen wrote: > Hi Lukas > > > > From: Lukas Auer [mailto:lukas.a...@aisec.fraunhofer.de] > > > Sent: Tuesday, February 12, 2019 6:14 AM > > > To: u-boot@lists.denx.de > > > Cc: Atish Patra; Anup Patel; Bin Meng; Andreas Schwab; Palmer > > >

Re: [U-Boot] [PATCH v2 5/9] riscv: add support for multi-hart systems

2019-03-10 Thread Auer, Lukas
On Sun, 2019-03-10 at 21:01 +0800, Bin Meng wrote: > On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer > wrote: > > On RISC-V, all harts boot independently. To be able to run on a > > multi-hart system, U-Boot must be extended with the functionality > > to > > manage all harts in the system. All harts

[U-Boot] [PULL] u-boot-socfpga/master

2019-03-10 Thread Marek Vasut
Arria10 DRAM fixes and Gen5 cache fixes. The following changes since commit e8e3f2d2d48f97b2c79b698eccedce8f4f880993: Merge branch '2019-03-08-master-imports' (2019-03-08 18:04:13 -0500) are available in the Git repository at: git://git.denx.de/u-boot-socfpga.git master for you to fetch

[U-Boot] [PULL] u-boot-sh/master

2019-03-10 Thread Marek Vasut
More gen2/gen3 fixes. The following changes since commit e8e3f2d2d48f97b2c79b698eccedce8f4f880993: Merge branch '2019-03-08-master-imports' (2019-03-08 18:04:13 -0500) are available in the Git repository at: git://git.denx.de/u-boot-sh.git master for you to fetch changes up to

Re: [U-Boot] [PATCH v2 6/9] riscv: boot images passed to bootm on all harts

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > Signed-off-by: Lukas Auer > Reviewed-by: Anup Patel > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > arch/riscv/lib/bootm.c | 13 - > 1 file changed, 12 insertions(+), 1 deletion(-) > Tested-by: Bin Meng

Re: [U-Boot] [PATCH v2 5/9] riscv: add support for multi-hart systems

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > On RISC-V, all harts boot independently. To be able to run on a > multi-hart system, U-Boot must be extended with the functionality to > manage all harts in the system. All harts entering U-Boot are registered > in the available_harts mask

Re: [U-Boot] [PATCH v2 8/9] riscv: fu540: enable SMP

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > Signed-off-by: Lukas Auer > Reviewed-by: Anup Patel > --- > > Changes in v2: > - New patch to enable SMP on the SiFive FU540, which was previously sent > independently > > board/sifive/fu540/Kconfig | 1 + > 1 file changed, 1 insertion(+) >

Re: [U-Boot] [PATCH v2 9/9] riscv: qemu: enable SMP

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > Signed-off-by: Lukas Auer > Reviewed-by: Anup Patel > Reviewed-by: Bin Meng > --- > > Changes in v2: None > > board/emulation/qemu-riscv/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Tested-by: Bin Meng

Re: [U-Boot] [PATCH v2 7/9] riscv: do not rely on hart ID passed by previous boot stage

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > RISC-V U-Boot expects the hart ID to be passed to it via register a0 by > the previous boot stage. Machine mode firmware such as BBL and OpenSBI > do this when starting their payload (U-Boot) in supervisor mode. If > U-Boot is running in

Re: [U-Boot] [PATCH v2 3/9] riscv: implement IPI platform functions using SBI

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > The supervisor binary interface (SBI) provides the necessary functions > to implement the platform IPI functions riscv_send_ipi() and > riscv_clear_ipi(). Use it to implement them. > > This adds support for inter-processor interrupts (IPIs) on

Re: [U-Boot] [PATCH v2 1/9] riscv: add infrastructure for calling functions on other harts

2019-03-10 Thread Bin Meng
On Wed, Mar 6, 2019 at 6:54 AM Lukas Auer wrote: > > Harts on RISC-V boot independently, U-Boot is responsible for managing > them. Functions are called on other harts with smp_call_function(), > which sends inter-processor interrupts (IPIs) to all other available > harts. Available harts are

Re: [U-Boot] [PATCH v2] common: spl_fit: Allow firmware image if no loadables

2019-03-10 Thread Abel Vesa
On 19-03-10 13:02:28, Marek Vasut wrote: > On 3/10/19 12:42 PM, Abel Vesa wrote: > > If CONFIG_SPL_OS_BOOT and FIT_IMAGE_TINY are enabled, > > the os will not be set to anything and therefore will > > remain as IH_OS_INVALID. What's needed here is to > > have IH_OS_U_BOOT as default. And since

[U-Boot] [PATCH 1/2] Convert CONFIG_NAND to Kconfig

2019-03-10 Thread Adam Ford
This converts the following to Kconfig: CONFIG_NAND A bunch of boards have dependent NAND drivers, and CONFIG_NAND is already in Kconfig, so this patch enables that flag for a variety of boards to make their respective NAND drivers more easily convert to Kconfig Signed-off-by: Adam

Re: [U-Boot] [PATCH v2] common: spl_fit: Allow firmware image if no loadables

2019-03-10 Thread Marek Vasut
On 3/10/19 12:42 PM, Abel Vesa wrote: > If CONFIG_SPL_OS_BOOT and FIT_IMAGE_TINY are enabled, > the os will not be set to anything and therefore will > remain as IH_OS_INVALID. What's needed here is to > have IH_OS_U_BOOT as default. And since using the > mkimage oneline command (that is, no its

[U-Boot] [PATCH v2] common: spl_fit: Allow firmware image if no loadables

2019-03-10 Thread Abel Vesa
If CONFIG_SPL_OS_BOOT and FIT_IMAGE_TINY are enabled, the os will not be set to anything and therefore will remain as IH_OS_INVALID. What's needed here is to have IH_OS_U_BOOT as default. And since using the mkimage oneline command (that is, no its file), the loadables can't be specified, so we

[U-Boot] [PATCH v3 3/3] poplar: enable Ethernet driver support

2019-03-10 Thread Shawn Guo
The 'phy' reset of gmac device in kernel device tree is not generic enough for u-boot to use, so we need to overwrite the 'resets' property as needed. With this device tree fixup and poplar_defconfig changes, Ethernet starts working on Poplar board. Signed-off-by: Shawn Guo Reviewed-by: Igor

[U-Boot] [PATCH v3 1/3] reset: add reset driver for HiSilicon platform

2019-03-10 Thread Shawn Guo
It adds a Driver Model compatible reset driver for HiSlicon platform. The driver implements a custom .of_xlate function, and uses .data field as reset register offset and .id field as bit shift. Signed-off-by: Shawn Guo Reviewed-by: Igor Opaniuk --- drivers/reset/Kconfig | 6 ++

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

2019-03-10 Thread Shawn Guo
It adds the driver for HIGMACV300 Ethernet controller found on HiSilicon SoCs like Hi3798CV200. It's based on a downstream U-Boot driver, but quite a lot of code gets rewritten and cleaned up to adopt driver model and PHY API. Signed-off-by: Shawn Guo --- drivers/net/Kconfig | 9 +

[U-Boot] [PATCH v3 0/3] Add Ethernet support for Poplar board

2019-03-10 Thread Shawn Guo
The series adds Ethernet support for Poplar board. It firstly creates a reset driver for HiSilicon platform, then introduces higmacv300 Ethernet driver, and finally enables Ethernet support for Poplar board. Changes for v3: - Add polarity support into reset driver, so that we can drop the