Pull request for UEFI sub-system for efi-2020-04-rc3

2020-02-19 Thread Heinrich Schuchardt
The following changes since commit f2a73d6867ef973fbb8471cc87058205999b5e5c: Merge tag 'u-boot-stm32-20200214' of https://gitlab.denx.de/u-boot/custodians/u-boot-stm (2020-02-14 07:31:47 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git

Re: [PATCH 02/10] usb: ehci-msm: Use dev interface to get device address

2020-02-19 Thread Ramon Fried
On Wed, Feb 19, 2020 at 3:55 AM Kever Yang wrote: > > Use dev_read_addr_ptr() instead of devfdt_get_addr() so that we can support > live DT. > > Signed-off-by: Kever Yang > --- > > drivers/usb/host/ehci-msm.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git

[PATCH] env: ti: boot: Fix Android boot on AM57x EVM

2020-02-19 Thread Sam Protsenko
When applying DTBO on top of DTB (with "fdt apply" command) on AM57x EVM board, there is not enough memory reserved in RAM for DTB blob. Hence, DTBO can't be merged in DTB. It leads to inability to boot Android with next error message: failed on fdt_overlay_apply(): FDT_ERR_NOSPACE To

Re: [PATCH v2 03/21] arm: socfpga: Add function for checking description from FIT image

2020-02-19 Thread Marek Vasut
On 2/19/20 6:31 PM, Dalon L Westergreen wrote: > > > On Wed, 2020-02-19 at 18:11 +0100, Marek Vasut wrote: >> On 2/19/20 1:25 PM, chee.hong@intel.com wrote: >>> From: Chee Hong Ang >>> Add board_fit_config_name_match() for matching board name withdevice tree >>> files in FIT image. This

Re: [PATCH v2 03/21] arm: socfpga: Add function for checking description from FIT image

2020-02-19 Thread Dalon L Westergreen
On Wed, 2020-02-19 at 18:11 +0100, Marek Vasut wrote: > On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > > From: Chee Hong Ang > > Add board_fit_config_name_match() for matching board name withdevice tree > > files in FIT image. This will ensure correct DTBfile is loaded for different > >

Re: [PATCH v2 11/21] arm: socfpga: Secure register access for clock manager (SoC 64bits)

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > From: Chee Hong Ang > > Allow clock manager driver to access the System Manager's Boot > Scratch Register 0 in non-secure mode (EL2) on SoC 64bits platform. > > Signed-off-by: Chee Hong Ang > --- >

Re: [PATCH v2 10/21] arm: socfpga: Add secure register access helper functions for SoC 64bits

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > From: Chee Hong Ang > > These secure register access functions allow U-Boot proper running > at EL2 (non-secure) to access System Manager's secure registers > by calling the ATF's PSCI runtime services (EL3/secure). If these > helper functions

Re: [PATCH v2 05/21] arm: socfpga: Override 'lowlevel_init' to support ATF

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: [...] > diff --git a/arch/arm/mach-socfpga/lowlevel_init.S > b/arch/arm/mach-socfpga/lowlevel_init.S > new file mode 100644 > index 000..68053a0 > --- /dev/null > +++ b/arch/arm/mach-socfpga/lowlevel_init.S This should be some

Re: [PATCH v2 08/21] arm: socfpga: Add SMC helper function for Intel SOCFPGA (64bits)

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: [...] > +#if !defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_ATF) > +int invoke_smc(u32 func_id, u64 *args, int arg_len, u64 *ret_arg, int > ret_len) > +{ > + int i; > + struct pt_regs regs; > + > + memset(, 0, sizeof(regs)); > + >

Re: [PATCH v2 09/21] arm: socfpga: Define SMC function identifiers for PSCI SiP services

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: [...] > +++ b/include/linux/intel-smc.h > @@ -0,0 +1,374 @@ > +/* SPDX-License-Identifier: GPL-2.0 */ > +/* > + * Copyright (C) 2017-2018, Intel Corporation 2020 ? [...] > + */ > +#define INTEL_SIP_SMC_RETURN_UNKNOWN_FUNCTION

Re: [PATCH v2 06/21] configs: socfpga: Enable FIT image loading with ATF support

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > From: Chee Hong Ang > > SPL now loads ATF (BL31), U-Boot proper and DTB from FIT > image. The new boot flow with ATF support is as follow: > > SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) > > Signed-off-by: Chee Hong Ang > --- >

Re: [PATCH v2 03/21] arm: socfpga: Add function for checking description from FIT image

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > From: Chee Hong Ang > > Add board_fit_config_name_match() for matching board name with > device tree files in FIT image. This will ensure correct DTB > file is loaded for different board type. Currently, we are not > supporting multiple device

Re: [PATCH 08/10] usb: dwc3: core: reorder the header file including sequence

2020-02-19 Thread Marek Vasut
On 2/19/20 2:54 AM, Kever Yang wrote: > Make the including header file in correct sequence. How is this sequence more correct than the previous one ? > Signed-off-by: Kever Yang > --- > > drivers/usb/dwc3/core.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git

Re: [PATCH v2 01/21] configs: agilex: Remove CONFIG_OF_EMBED

2020-02-19 Thread Marek Vasut
On 2/19/20 1:25 PM, chee.hong@intel.com wrote: > From: Chee Hong Ang > > CONFIG_OF_EMBED was primarily enabled to support the agilex > spl hex file requirements. Since this option now produces a > warning during build, and the spl hex can be created using > alternate methods,

Re: [PATCH 05/10] usb: dwc3-generic: Use dev_read_addr() instead of devfdt_get_addr()

2020-02-19 Thread Marek Vasut
On 2/19/20 2:54 AM, Kever Yang wrote: > Use more common API so that we can support live DT. > > Signed-off-by: Kever Yang > --- > > drivers/usb/dwc3/dwc3-generic.c | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/drivers/usb/dwc3/dwc3-generic.c

[PATCH] watchdog: mpc8xx_wdt: Allow selection of watchdog mode through environment

2020-02-19 Thread Christophe Leroy
From: Charles Frey The mpc8xx watchdog can work either in 'reset mode' or 'NMI mode'. The selection can be done at startup only. It is desirable to select the mode without rebuilding U-boot. It is also desirable to disable the watchdog without rebuilding. At watchdog startup, check environment

Re: [PATCH] tools: image-host.c: remove uboot_aes.h

2020-02-19 Thread Bajjuri, Praneeth
On 2/19/2020 11:17 AM, Andrew F. Davis wrote: +Praneeth On 2/18/20 11:23 AM, Philippe Reynes wrote: The include uboot_aes.h is not usefull and it breaks the compilation on android, so we remove it. Thanks for the fix. Signed-off-by: Philippe Reynes Reported-by: Praneeth Bajjuri

Re: [PATCH] tools: image-host.c: remove uboot_aes.h

2020-02-19 Thread Andrew F. Davis
+Praneeth On 2/18/20 11:23 AM, Philippe Reynes wrote: > The include uboot_aes.h is not usefull and > it breaks the compilation on android, so > we remove it. > > Signed-off-by: Philippe Reynes > --- > tools/image-host.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git

Re: [PATCH] net: phy: dp83867: Do not check sgmii if rgmii is already used

2020-02-19 Thread Grygorii Strashko
On 13/02/2020 18:05, Michal Simek wrote: On 13. 02. 20 16:49, Grygorii Strashko wrote: On 13/02/2020 08:23, Michal Simek wrote: On 12. 02. 20 21:24, Grygorii Strashko wrote: On 11/02/2020 10:11, Michal Simek wrote: On 10. 02. 20 13:07, Grygorii Strashko wrote: On 07/02/2020 13:31,

Re: [U-Boot Patch v2 3/4] dts: u-boot.dtsi: override flash tx-rx width

2020-02-19 Thread Bin Meng
Hi Sagar, On Fri, Feb 7, 2020 at 2:43 AM Sagar Kadam wrote: > > Hello Bin, > > > -Original Message- > > From: Bin Meng > > Sent: Tuesday, February 4, 2020 5:43 PM > > To: Sagar Kadam > > Cc: U-Boot Mailing List ; Rick Chen > > ; Paul Walmsley ( Sifive) ; > > Jagan Teki ; Anup Patel > >

Re: [PATCH] dt-bindings: net: dp83867: Remove binding doc from U-Boot tree

2020-02-19 Thread Grygorii Strashko
On 17/02/2020 11:38, Michal Simek wrote: U-Boot is having DT which doesn't cover all options currently supported by driver. DT binding is aligned with Linux kernel version available here.

Re: [U-Boot Patch v2 2/4] spi: fu540: add claim and release method to spi-sifive.c

2020-02-19 Thread Bin Meng
Hi Sagar, On Fri, Feb 7, 2020 at 2:25 AM Sagar Kadam wrote: > > Hello Bin, > > > -Original Message- > > From: Bin Meng > > Sent: Tuesday, February 4, 2020 5:43 PM > > To: Sagar Kadam > > Cc: U-Boot Mailing List ; Rick Chen > > ; Paul Walmsley ( Sifive) ; > > Jagan Teki ; Anup Patel > >

Re: [U-Boot Patch v2 1/4] fu540: dtsi: spi: add num-cs info to device tree

2020-02-19 Thread Bin Meng
Hi Sagar, On Thu, Feb 6, 2020 at 2:17 AM Sagar Kadam wrote: > > Hello Bin, > > > -Original Message- > > From: Bin Meng > > Sent: Tuesday, February 4, 2020 5:43 PM > > To: Sagar Kadam > > Cc: U-Boot Mailing List ; Rick Chen > > ; Paul Walmsley ( Sifive) ; > > Jagan Teki ; Anup Patel > >

mkimage segfault on MacOS

2020-02-19 Thread Alexander von Gluck IV
I know this one is pretty far out there (and not expecting a solution here tbh), mkimage (installed via homebrew) is segfaulting under MacOS X (10.15.3) $ mkimage -A arm -O linux -T kernel -C none -a 0x100 -e 0x110 -n 'Haiku arm loader' -d

Re: [PATCH v4 14/17] riscv: Try to get cpu frequency from device tree

2020-02-19 Thread Bin Meng
Hi Sean, On Tue, Feb 11, 2020 at 2:05 PM Sean Anderson wrote: > > Instead of always using the "clock-frequency" property to determine cpu > frequency, try using a clock in "clocks" if it exists. This patch also > fixes a bug where there could be spurious higher frequencies if sizeof(u32) > !=

Re: [PATCH v1 2/2] cpu: clk: riscv: populate proper CPU core clk frequency

2020-02-19 Thread Bin Meng
+Sean Anderson Hi Sagar, On Wed, Feb 19, 2020 at 12:13 AM Sagar Shrikant Kadam wrote: > > Fetch core clock frequency from prci if clock-frequency for CPU nodes > is missing in device tree, so that the cmd "#cpu detail" will show the > correct CPU frequency. > > U-Boot command "#cpu detail" is

no boot methods seem to work

2020-02-19 Thread Pallinger Péter
Summary: I recently updated u-boot on my sheevaplug, and all boot options stopped working. => version U-Boot 2019.01+dfsg-7 (May 14 2019 - 02:07:44 +) Marvell-Sheevaplug gcc (Debian 8.3.0-7) 8.3.0 GNU ld (GNU Binutils for Debian) 2.31.1 Here are all my

Re: [PATCH v3] cmd: Add command to dump drivers and compatible strings

2020-02-19 Thread Bin Meng
Hi Simon, On Fri, Feb 7, 2020 at 1:46 AM Simon Glass wrote: > > On Thu, 6 Feb 2020 at 10:03, Sean Anderson wrote: > > > > This adds a subcommand to dm to dump out what drivers are installed, and > > their > > compatible strings. I have found this useful in ensuring that I have the > > correct

Re: [PATCH v4 08/17] riscv: Add headers for asm/global_data.h

2020-02-19 Thread Bin Meng
On Tue, Feb 11, 2020 at 2:05 PM Sean Anderson wrote: > > This header depended on bd_t and ulong, but did not include the appropriate > headers. > > Signed-off-by: Sean Anderson > --- > > Changes in v4: > - Include compiler.h not linux/compiler.h > > arch/riscv/include/asm/global_data.h | 2 ++ >

Re: [PATCH v4 07/17] spi: dw: Add mem_ops

2020-02-19 Thread Bin Meng
On Wed, Feb 19, 2020 at 11:51 AM Sean Anderson wrote: > > On 2/18/20 8:39 PM, Rick Chen wrote: > >>> > >>> Patch 6 and 7 shall be applied via spi tree. > >>> You mix them together, the patchwork will become complicated. > >>> It will be better for me to wait for a period of time to get the > >>>

Re: [PATCH v4 09/17] riscv: Add option to support RISC-V privileged spec 1.9.1

2020-02-19 Thread Bin Meng
On Tue, Feb 11, 2020 at 2:05 PM Sean Anderson wrote: > > Some older processors (notably the Kendryte K210) use an older version of > the RISC-V privileged specification. The primary changes between the old > and new are in virtual memory, and in the merging of three separate counter > enable

RE: [PATCH] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-19 Thread Holger Brunck
> On 2/19/20 1:45 PM, Holger Brunck wrote: > > In message <20200217173249.4805-1-ma...@denx.de> you wrote: > >> > >> board/keymile/Kconfig | 11 +- > >> board/keymile/common/ivm.c | 18 +- > >> board/keymile/secu1/Makefile| 7 + >

Re: [PATCH] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-19 Thread Marek Vasut
On 2/19/20 1:45 PM, Holger Brunck wrote: > In message <20200217173249.4805-1-ma...@denx.de> you wrote: >> >> board/keymile/Kconfig | 11 +- >> board/keymile/common/ivm.c | 18 +- >> board/keymile/secu1/Makefile| 7 + >>

Re: [PATCH] rename keymile boards to ABB wcom

2020-02-19 Thread Marek Vasut
On 2/19/20 2:09 PM, Heiko Schocher wrote: > Hello Holger, Hi, > Am 19.02.2020 um 13:53 schrieb Holger Brunck: >> The ownership has changed to ABB wiredcom for these boards. >> Therefore rename the keymile folder, headerfiles and vendor strings >> to wcom. >> >> Signed-off-by: Holger Brunck >>

m68k hangs silently

2020-02-19 Thread Angelo Dureghello
Hi Simon, after this commit: commit 29f7d05a347ab7a42577c67fdfb787ef91537302 Author: Simon Glass Date: Sun Dec 29 21:19:17 2019 -0700 dm: core: Move ofdata_to_platdata() call earlier This method is supposed to extract platform data from the device tree. It should be done before

Re: use invd instead of wbinvd in real mode start code

2020-02-19 Thread Heiko Schocher
Hello Tom, Wolfgang, Am 19.02.2020 um 14:42 schrieb Tom Rini: On Wed, Feb 19, 2020 at 02:14:31PM +0100, Wolfgang Denk wrote: Dear Heiko, In message <7d480cee-88aa-f4e3-7e3d-8740bbdcc...@denx.de> you wrote: How the feed back line is organized? I mean how host system will know that a) we

Re: [PATCH 0/5] CMD_SAVEENV ifdef cleanup

2020-02-19 Thread Rasmus Villemoes
On 19/02/2020 14.25, Wolfgang Denk wrote: > Dear Rasmus, > > In message <20200219094726.26798-1-rasmus.villem...@prevas.dk> you wrote: >> >> [1] Here's the current conditions for which these three drivers >> provide .save: >> >> SPL U-Boot >> ext4.c

Re: use invd instead of wbinvd in real mode start code

2020-02-19 Thread Tom Rini
On Wed, Feb 19, 2020 at 02:14:31PM +0100, Wolfgang Denk wrote: > Dear Heiko, > > In message <7d480cee-88aa-f4e3-7e3d-8740bbdcc...@denx.de> you wrote: > > > > > How the feed back line is organized? I mean how host system will know that > > > a) we done flash correctly? > > > b) the booted

Re: [PATCH v1 4/4] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Oleksandr Suvorov
On Wed, Feb 19, 2020 at 3:05 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > pd_dma_* nodes should be accessible during pre-relocation stage of > U-Boot proper for properly handling power domains. > > This fixes the issue with permanent failing of invocation of > power_domain_get_by_index() in

Re: [PATCH v1 3/4] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Oleksandr Suvorov
On Wed, Feb 19, 2020 at 3:05 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > pd_dma_* nodes should be accessible during pre-relocation stage of > U-Boot proper for properly handling power domains. > > This fixes the issue with permanent failing of invocation of > power_domain_get_by_index() in

[PATCH] imx: remove woodburn board

2020-02-19 Thread Stefano Babic
Board is not longer used, remove it. Signed-off-by: Stefano Babic --- arch/arm/Kconfig | 10 -- board/woodburn/Kconfig| 25 --- board/woodburn/MAINTAINERS| 12 -- board/woodburn/Makefile | 8 - board/woodburn/imximage.cfg | 4 -

Re: [PATCH v1 2/4] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper

2020-02-19 Thread Oleksandr Suvorov
On Wed, Feb 19, 2020 at 3:05 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are > handled equally, forcing the nodes with these properties > to be accessible and device being probed > before pre-relocation of U-Boot proper

Re: [PATCH v1 1/4] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper

2020-02-19 Thread Oleksandr Suvorov
On Wed, Feb 19, 2020 at 3:05 PM Igor Opaniuk wrote: > > From: Igor Opaniuk > > For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are > handled equally, forcing the nodes with these properties > to be accessible and device being probed > before pre-relocation of U-Boot proper

Re: [PATCH] rename keymile boards to ABB wcom

2020-02-19 Thread Wolfgang Denk
Dear Holger, In message <20200219125334.24713-1-holger.bru...@ch.abb.com> you wrote: > The ownership has changed to ABB wiredcom for these boards. > Therefore rename the keymile folder, headerfiles and vendor strings > to wcom. What is the meaning of "wcom" as a vendor name? I cannot find any

Re: [PATCH 3/5] env/fat.c: remove private CMD_SAVEENV logic

2020-02-19 Thread Wolfgang Denk
Dear Rasmus, In message <20200219094726.26798-4-rasmus.villem...@prevas.dk> you wrote: > Always compile the env_fat_save() function, and let > CONFIG_IS_ENABLED(SAVEENV) (via the ENV_SAVE_PTR macro) decide whether > it actually ends up being compiled in. Have you tested that this works? How do

Re: [PATCH 0/5] CMD_SAVEENV ifdef cleanup

2020-02-19 Thread Wolfgang Denk
Dear Rasmus, In message <20200219094726.26798-1-rasmus.villem...@prevas.dk> you wrote: > > [1] Here's the current conditions for which these three drivers > provide .save: > > SPL U-Boot > ext4.cCONFIG_CMD_SAVEENV=yCONFIG_CMD_SAVEENV=y > fat.c never

Re: use invd instead of wbinvd in real mode start code

2020-02-19 Thread Wolfgang Denk
Dear Heiko, In message <7d480cee-88aa-f4e3-7e3d-8740bbdcc...@denx.de> you wrote: > > > How the feed back line is organized? I mean how host system will know that > > a) we done flash correctly? > > b) the booted image is bad or good? > > For both questions the answer is, that you need to

Re: [PATCH] rename keymile boards to ABB wcom

2020-02-19 Thread Heiko Schocher
Hello Holger, Am 19.02.2020 um 13:53 schrieb Holger Brunck: The ownership has changed to ABB wiredcom for these boards. Therefore rename the keymile folder, headerfiles and vendor strings to wcom. Signed-off-by: Holger Brunck CC: Marek Vasut CC: Heiko Schocher CC: Wolfgang Denk CC:

[PATCH v1 1/4] ARM: dts: imx8qm-apalis: replace dm-spl with dm-pre-proper

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /*

[PATCH v1 2/4] ARM: dts: imx8qxp-colibri: replace dm-spl with dm-pre-proper

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk For non-SPL/TPL setups dm-spl, dm-tpl, dm-pre-proper, dm-pre-reloc are handled equally, forcing the nodes with these properties to be accessible and device being probed before pre-relocation of U-Boot proper (drivers/core/util.c): bool ofnode_pre_reloc(ofnode node) { /*

[PATCH v1 3/4] ARM: dts: imx8qm-apalis: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass

[PATCH v1 4/4] ARM: dts: imx8qxp-colibri: dm-pre-proper for pd_dma nodes

2020-02-19 Thread Igor Opaniuk
From: Igor Opaniuk pd_dma_* nodes should be accessible during pre-relocation stage of U-Boot proper for properly handling power domains. This fixes the issue with permanent failing of invocation of power_domain_get_by_index() in the common code of DM power domain uclass

Re: [Patch v4 4/7] imx: imx6sx: Remove unused 'num-cs' property

2020-02-19 Thread Fabio Estevam
Hi Priyanka, On Wed, Feb 19, 2020 at 7:13 AM Priyanka Jain (OSS) wrote: > Stefano/Fabio, > > Please review/ack this patch. Last month I did a patch series to sync the imx6sx device tree files with upstream kernel, but thanks to your email I have just realized that I missed to send it to the

[PATCH 2/3] ARM: dts: imx6sx-sdb: Sync with kernel 5.4.16

2020-02-19 Thread Fabio Estevam
Sync the imx6sx-sdb dts files with kernel 5.4.16. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6sx-sdb-u-boot.dtsi | 16 -- arch/arm/dts/imx6sx-sdb.dts | 35 +++- arch/arm/dts/imx6sx-sdb.dtsi| 284 +--- 3 files changed, 200 insertions(+), 135

[PATCH 3/3] mx6sxsabresd: Enable DM_PCI

2020-02-19 Thread Fabio Estevam
Enale DM_PCI support in order to avoid board removal from the project. Signed-off-by: Fabio Estevam --- configs/mx6sxsabresd_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/mx6sxsabresd_defconfig b/configs/mx6sxsabresd_defconfig index 5150e3a837..7cf672948d 100644 ---

[PATCH 1/3] ARM: dts: imx6sx: Sync with kernel 5.4.16

2020-02-19 Thread Fabio Estevam
Sync the imx6sx dts files with kernel 5.4.16. Signed-off-by: Fabio Estevam --- arch/arm/dts/imx6sx-pinfunc.h| 6 +- arch/arm/dts/imx6sx.dtsi | 507 ++- include/dt-bindings/clock/imx6sx-clock.h | 13 +- 3 files changed, 309 insertions(+), 217

[PATCH] rename keymile boards to ABB wcom

2020-02-19 Thread Holger Brunck
The ownership has changed to ABB wiredcom for these boards. Therefore rename the keymile folder, headerfiles and vendor strings to wcom. Signed-off-by: Holger Brunck CC: Marek Vasut CC: Heiko Schocher CC: Wolfgang Denk CC: Valentin Longchamp --- arch/arm/dts/kirkwood-km_kirkwood.dts

RE: [PATCH] ARM: socfpga: Add initial support for the ABB SECU board

2020-02-19 Thread Holger Brunck
> >>> In message <20200217173249.4805-1-ma...@denx.de> you wrote: > > board/keymile/Kconfig | 11 +- > board/keymile/common/ivm.c | 18 +- > board/keymile/secu1/Makefile| 7 + > board/keymile/secu1/qts/iocsr_config.h | 694 >

[PATCH v2 08/21] arm: socfpga: Add SMC helper function for Intel SOCFPGA (64bits)

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow U-Boot proper running in non-secure mode (EL2) to invoke SMC call to ATF's PSCI runtime services such as System Manager's registers access, 2nd phase bitstream FPGA reconfiguration, Remote System Update (RSU) and etc. Signed-off-by: Chee Hong Ang ---

[PATCH v2 21/21] configs: socfpga: Add defconfig for Agilex and Stratix 10 without ATF support

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Booting Agilex and Stratix 10 without ATF support. SPL -> U-Boot proper -> OS (Linux) Signed-off-by: Chee Hong Ang --- configs/socfpga_agilex_nofw_defconfig| 59 ++ configs/socfpga_stratix10_nofw_defconfig | 63

[PATCH v2 07/21] arm: socfpga: Disable "spin-table" method for booting Linux

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Standard PSCI function "CPU_ON" provided by ATF is now used by Linux kernel to bring up the secondary CPUs to enable SMP booting in Linux on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Kconfig | 2 -- 1 file changed, 2 deletions(-) diff

[PATCH v2 20/21] arm: socfpga: mailbox: Add 'SYSTEM_RESET' PSCI support to mbox_reset_cold()

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang mbox_reset_cold() will invoke ATF's PSCI service when running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/mailbox_s10.c | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-socfpga/mailbox_s10.c

[PATCH v2 16/21] arm: socfpga: Secure register access in Reset Manager driver

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow socfpga_bridges_reset() function in Reset Manager driver to access System Manager's register in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/reset_manager_s10.c | 31 ++- 1 file changed, 18 insertions(+),

[PATCH v2 17/21] arm: socfpga: stratix10: Initialize timer in SPL

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Initialize timer in SPL running in secure mode (EL3) and skip timer initialization in U-Boot proper running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/timer_s10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH v2 19/21] arm: socfpga: stratix10: Add ATF support to FPGA reconfig driver

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang FPGA recpnfiguration driver will call the ATF's PSCI runtime services if it's running in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- drivers/fpga/stratix10.c | 141 ++- 1 file changed, 140 insertions(+), 1 deletion(-)

[PATCH v2 18/21] arm: socfpga: Bridge reset invokes SMC service calls in EL2

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang In EL3, do_bridge_reset() directly send mailbox commands to SDM to query the FPGA configuration status. If running in non-secure mode (EL2), it invokes SMC service calls to ATF (EL3) to perform the query. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/misc_s10.c |

[PATCH v2 12/21] arm: socfpga: Secure register access in PHY mode setup

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow access to System Manager's EMAC control register from non-secure mode during PHY mode setup. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/misc_s10.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-socfpga/misc_s10.c

[PATCH v2 14/21] mmc: dwmmc: socfpga: Secure register access in MMC driver

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow MMC driver to access System Manager's SDMMC control register in non-secure mode (EL2). Signed-off-by: Chee Hong Ang --- drivers/mmc/socfpga_dw_mmc.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/mmc/socfpga_dw_mmc.c

[PATCH v2 15/21] net: designware: socfpga: Secure register access in MAC driver

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow MAC driver to access System Manager's EMAC control registers in non-secure mode. Signed-off-by: Chee Hong Ang --- drivers/net/dwmac_socfpga.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/net/dwmac_socfpga.c

[PATCH v2 11/21] arm: socfpga: Secure register access for clock manager (SoC 64bits)

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow clock manager driver to access the System Manager's Boot Scratch Register 0 in non-secure mode (EL2) on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/clock_manager_agilex.c | 5 +++-- arch/arm/mach-socfpga/clock_manager_s10.c| 5

[PATCH v2 13/21] arm: socfpga: Secure register access for reading PLL frequency

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Allow reading external oscillator and FPGA clock's frequency from System Manager's Boot Scratch Register 1 and Boot Scratch Register 2 in non-secure mode (EL2) on SoC 64bits platform. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/wrap_pll_config_s10.c | 9

[PATCH v2 09/21] arm: socfpga: Define SMC function identifiers for PSCI SiP services

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang This header file defines the Secure Monitor Call (SMC) message protocol for ATF (BL31) PSCI runtime services. It includes all the PSCI SiP function identifiers for the secure runtime services provided by ATF. The secure runtime services include System Manager's registers

[PATCH v2 10/21] arm: socfpga: Add secure register access helper functions for SoC 64bits

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang These secure register access functions allow U-Boot proper running at EL2 (non-secure) to access System Manager's secure registers by calling the ATF's PSCI runtime services (EL3/secure). If these helper functions are called from secure mode (EL3), the helper function will

[PATCH v2 06/21] configs: socfpga: Enable FIT image loading with ATF support

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang SPL now loads ATF (BL31), U-Boot proper and DTB from FIT image. The new boot flow with ATF support is as follow: SPL -> ATF (BL31) -> U-Boot proper -> OS (Linux) Signed-off-by: Chee Hong Ang --- configs/socfpga_agilex_defconfig| 8 +++-

[PATCH v2 05/21] arm: socfpga: Override 'lowlevel_init' to support ATF

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Override 'lowlevel_init' to support booting ATF from SPL on Intel SOCFPGA (64bits) platforms. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/Makefile| 2 + arch/arm/mach-socfpga/lowlevel_init.S | 85 +++ 2 files changed, 87

[PATCH v2 02/21] arm: socfpga: add fit source file for pack itb with ATF

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Generate a FIT image for Intel SOCFPGA(64bits) which include U-boot proper, ATF and DTB for U-boot proper. Signed-off-by: Chee Hong Ang --- board/altera/soc64/its/fit_spl_atf.its | 52 ++ 1 file changed, 52 insertions(+) create mode 100644

[PATCH v2 04/21] arm: socfpga: Load FIT image with ATF support

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Instead of loading u-boot proper image (u-boot.img), SPL now loads FIT image (u-boot.itb) which includes u-boot proper, ATF and u-boot proper's DTB. Signed-off-by: Chee Hong Ang --- include/configs/socfpga_soc64_common.h | 4 1 file changed, 4 insertions(+) diff

[PATCH v2 03/21] arm: socfpga: Add function for checking description from FIT image

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang Add board_fit_config_name_match() for matching board name with device tree files in FIT image. This will ensure correct DTB file is loaded for different board type. Currently, we are not supporting multiple device tree files in FIT image therefore this function basically do

[PATCH v2 00/21] Enable ARM Trusted Firmware for U-Boot

2020-02-19 Thread chee . hong . ang
From: "Ang, Chee Hong" v2 changes: - Default defconfig support SPL + ATF + U-Boot boot flow: (socfpga_stratix10_defconfig / socfpga_agilex_defconfig) SPL (EL3) -> ATF-BL31 (EL3) -> U-Boot Proper (EL2) -> Linux (EL1) Added new defconfig to support existing SPL + U-Boot (no ATF) boot

[PATCH v2 01/21] configs: agilex: Remove CONFIG_OF_EMBED

2020-02-19 Thread chee . hong . ang
From: Chee Hong Ang CONFIG_OF_EMBED was primarily enabled to support the agilex spl hex file requirements. Since this option now produces a warning during build, and the spl hex can be created using alternate methods, CONFIG_OF_EMBED is no longer needed. Signed-off-by: Chee Hong Ang ---

Re: [PATCH] arch: arm: Fix SZ_64K undeclared compilation error

2020-02-19 Thread Tom Rini
On Wed, Feb 19, 2020 at 07:03:26AM +, Priyanka Jain (OSS) wrote: > >-Original Message- > >From: U-Boot On Behalf Of Bharat Kumar > >Reddy > >Sent: Tuesday, February 18, 2020 4:19 PM > >To: Wasim Khan ; Priyanka Jain > >; vladimir.olovyanni...@broadcom.com > >Cc: u-boot@lists.denx.de >

[PATCH] lx2160a : Add emmc in boot_targets environment variable

2020-02-19 Thread Meenakshi Aggarwal
Add emmc in supported boot_targets and Add bootcmd environment variable for emmc boot. Signed-off-by: Meenakshi Aggarwal --- include/configs/lx2160a_common.h | 11 +++ include/configs/lx2160aqds.h | 7 +++ include/configs/lx2160ardb.h | 7 +++ 3 files changed, 25

[PATCH] ARM: zynq: Fix addresses in partition definitions

2020-02-19 Thread Michal Simek
Node name should be @ which is not how partitions are described. Signed-off-by: Michal Simek --- arch/arm/dts/zynq-cse-qspi.dtsi | 10 +- arch/arm/dts/zynq-topic-miami.dts | 10 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git

RE: [Patch v4 4/7] imx: imx6sx: Remove unused 'num-cs' property

2020-02-19 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Kuldeep Singh >Sent: Monday, January 13, 2020 12:56 PM >To: u-boot@lists.denx.de >Cc: s...@denx.de >Subject: [Patch v4 4/7] imx: imx6sx: Remove unused 'num-cs' property > >From: Frieder Schrempf > >This property is not used by the driver

[PATCH] rockchip: rk3399: add target type for evb based board

2020-02-19 Thread Kever Yang
There are many boards share the board file and device header file with rk3399 evb, add target type MACRO so that it is fixed instead of default to the first target in "RK3399 board select". Signed-off-by: Kever Yang --- configs/evb-rk3399_defconfig | 1 +

[PATCH 4/5] env/ext4.c: remove CONFIG_CMD_SAVEENV ifdef

2020-02-19 Thread Rasmus Villemoes
Removing this ifdef/endif pair yields a "defined but unused warning" for CONFIG_CMD_SAVEENV=n, but that vanishes if we use the ENV_SAVE_PTR macro instead. This gives slightly better compile testing, and moreover, it's possible to have CONFIG_CMD_SAVEENV=n CONFIG_SPL_SAVEENV=y

[PATCH 3/5] env/fat.c: remove private CMD_SAVEENV logic

2020-02-19 Thread Rasmus Villemoes
Always compile the env_fat_save() function, and let CONFIG_IS_ENABLED(SAVEENV) (via the ENV_SAVE_PTR macro) decide whether it actually ends up being compiled in. Signed-off-by: Rasmus Villemoes --- env/fat.c | 9 + 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/env/fat.c

[PATCH 1/5] env: add SAVEENV as an alias of the CMD_SAVEENV symbol

2020-02-19 Thread Rasmus Villemoes
Currently, testing whether to compile in support for saving the environment is a bit awkward when one needs to take SPL_SAVEENV into account, and quite a few storage drivers currently do not honour SPL_SAVEENV. To make it a bit easier to decide whether environment saving should be enabled,

[PATCH 2/5] env_internal.h: add alternative ENV_SAVE_PTR macro

2020-02-19 Thread Rasmus Villemoes
The current definition of the env_save_ptr does not take SPL_SAVEENV into account. Moreover, the way it is implemented means that drivers need to guard the definitions of their _save methods with ifdefs to avoid "defined but unused" warnings in case CMD_SAVEENV=n. The ifdeffery can be avoided by

[PATCH 5/5] env/sf.c: drop private CMD_SAVEENV logic

2020-02-19 Thread Rasmus Villemoes
Deciding whether to compile the env_sf_save() function based solely on CONFIG_SPL_BUILD is wrong: For U-Boot proper, it leads to a build warning in case CONFIG_CMD_SAVEENV=n (because the env_save_ptr() macro causes the function to indeed not be referenced anywhere). And for SPL, when one selects

[PATCH 0/5] CMD_SAVEENV ifdef cleanup

2020-02-19 Thread Rasmus Villemoes
The various env storage drivers almost all have their own logic [1] for deciding whether to compile and provide the .save method, many of which fail to honour CONFIG_SPL_SAVEENV. For example, fat.c and sf.c define a CMD_SAVEENV macro only for !CONFIG_SPL_BUILD, while ext4.c "only" depends on

Re: [PATCH v2 0/4] x86: Improve support for chain-loading U-Boot

2020-02-19 Thread Andy Shevchenko
On Wed, Feb 19, 2020 at 4:46 AM Simon Glass wrote: > > This little series adds a few checks into the code to allow better > operation when booting a build from a previous-state loader such as > coreboot. > > At present we have a 'coreboot' target but this runs very different code > from the

RE: [PATCH] mpc83xx, abb: remove suvd3 board

2020-02-19 Thread Priyanka Jain (OSS)
>-Original Message- >From: U-Boot On Behalf Of Simon Glass >Sent: Wednesday, February 19, 2020 12:02 AM >To: Heiko Schocher >Cc: U-Boot Mailing List ; Holger Brunck >; Kever Yang ; Ley >Foon Tan ; Marek Vasut ; Mario >Six ; Miquel Raynal ; >Priyanka Jain ; Simon Goldschmidt >; Stefan

[PATCH 2/2] arm64: ls1046a: remove fdt_high environment variable

2020-02-19 Thread Yuantian Tang
Setting fdt_high and initrd_high to 0x leads to various difficulty to resolve bugs. Remove them and use bootm_size instead to safely contain a kernel, device tree and initrd for relocation. Signed-off-by: Yuantian Tang --- include/configs/ls1046a_common.h | 3 +-- 1 file

[PATCH 1/2] arm64: ls1028a: remove fdt_high environment variable

2020-02-19 Thread Yuantian Tang
Setting fdt_high and initrd_high to 0x leads to various difficulty to resolve bugs. Remove them and use bootm_size instead to safely contain a kernel, device tree and initrd for relocation. Signed-off-by: Yuantian Tang --- include/configs/ls1028a_common.h | 3 +--

Re: [PATCH v1 2/2] rockchip: rk3328: add roc-rk3328-cc support

2020-02-19 Thread Kever Yang
On 2020/2/14 下午10:46, Loic Devulder wrote: ROC-RK3328-CC is a board made by Firefly/Libre Computer based on rk3328 SoC: - 2 USB2.0 Host port - 1 USB3.0 Host port - 1 HDMI port - 2 10/100M eth port - 1GB or 2GB DDR4 - UART to USB debug port This port is based on evb-rk3328 already available in

Re: [PATCH v1 1/2] rockchip: rk3328: dts: add L2 cache entry【请注意,邮件由u-boot-boun...@lists.denx.de代发】

2020-02-19 Thread Kever Yang
Hi Loic, On 2020/2/14 下午10:46, Loic Devulder wrote: Add missing L2 cache entry in dts to avoid warning during Linux kernel boot. Does this also appear at kernel dts? If yes, you can say it's sync from kernel and provide the kernel commit number here. Thanks, - Kever Signed-off-by:

Re: [PATCH] rockchip: make the global board_fit_config_name_match __weak

2020-02-19 Thread Kever Yang
Reviewed-by: Kever Yang Thanks, - Kever Heiko Stuebner 于2020年1月18日周六 上午4:37写道: > From: Heiko Stuebner > > The core Rockchip spl code contains a default board_fit_config_name_match > implementation doing nothing. Individual boards may want to handle this > differently, so add a __weak

Re: [PATCH] rockchip: make_fit_atf: use correct fdt_x references in config nodes

2020-02-19 Thread Kever Yang
Reviewed-by: Kever Yang Thanks, - Kever Heiko Stuebner 于2020年1月18日周六 上午4:26写道: > From: Heiko Stuebner > > The script iterates over the given devicetrees and creates both > fdt_x node as well as a conf-node for each passed dt. > > But there is a slight bug in that it always references fdt_1

<    1   2