Re: [PATCH v2 2/4] mx6cuboxi: customize board_boot_order to access eMMC

2020-04-18 Thread Walter Lozano
Hi Stefano, I noticed that this series has state = Changes Requested, but not sure what are the changes need. Could you please clarify? There is a silly hunk but Baruch suggested that this no requires a v3. However if you prefer a v3, I can prepare it Please confirm. On 16/3/20 15:56,

[PATCH 09/11] net: dc2114x: Clean up INL/OUTL functions

2020-04-18 Thread Marek Vasut
Rename these functions to dc2114x_{inl,outl}(), use u32 values in them instead of plain signed integers as all those values are in fact register values and the driver code does bitwise operations on them. No functional change intended. Signed-off-by: Marek Vasut Cc: Joe Hershberger ---

[PATCH 06/11] net: dc2114x: Clean up SROM operations

2020-04-18 Thread Marek Vasut
Clean up the SROM accessors to bring them up to standards with U-Boot coding style. Sort variable into reverse xmas tree. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 117 +++--- 1 file changed, 63

[PATCH 07/11] net: dc2114x: Clean up remaining driver code

2020-04-18 Thread Marek Vasut
Clean up the remaining driver code, macro space alignment, function declaration indent, replace __attribute__((aligned(32))) with plain __aligned(32). No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 86 +--

[PATCH 10/11] net: dc2114x: Reorganize driver

2020-04-18 Thread Marek Vasut
Move the functions in the driver around to better fit future DM conversion, drop function forward declarations. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 736 -- 1 file changed, 357 insertions(+),

[PATCH 08/11] net: dc2114x: Clean up DE4X5 macros

2020-04-18 Thread Marek Vasut
Replace these macros with static functions to permit the compiler to do type checking on the functions. The INL()/OUTL() functions have to be moved in this patch as well, as those DE4X5 macros are using them. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger ---

[PATCH 05/11] net: dc2114x: Clean up send_setup_frame()

2020-04-18 Thread Marek Vasut
Clean up the send_setup_frame() to bring it up to standards with U-Boot coding style, invert the loops where applicable to cut down the level of indent. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 44

[PATCH 11/11] net: dc2114x: Switch DEBUG_SROM{,2} to debug_cond()

2020-04-18 Thread Marek Vasut
Replace the adhoc debugging ifdeffery with debug_cond() and an internal SROM_DEBUG macro to select the debug level. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 57 --- 1 file changed, 21 insertions(+), 36 deletions(-) diff

[PATCH 01/11] net: dc2114x: Clean up init code

2020-04-18 Thread Marek Vasut
Clean up the driver init code to bring it up to standards with U-Boot coding style, no functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 66 +-- 1 file changed, 32 insertions(+), 34 deletions(-) diff --git

[PATCH 04/11] net: dc2114x: Clean up dc21x4x_halt()

2020-04-18 Thread Marek Vasut
Clean up the driver halt code to bring it up to standards with U-Boot coding style. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/dc2114x.c

[PATCH 03/11] net: dc2114x: Clean up dc21x4x_recv()

2020-04-18 Thread Marek Vasut
Clean up the driver recv code to bring it up to standards with U-Boot coding style. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 44 +++ 1 file changed, 19 insertions(+), 25 deletions(-) diff --git

[PATCH 02/11] net: dc2114x: Clean up dc21x4x_send()

2020-04-18 Thread Marek Vasut
Clean up the driver send code to bring it up to standards with U-Boot coding style, invert the loops where applicable to cut down the level of indent. No functional change. Signed-off-by: Marek Vasut Cc: Joe Hershberger --- drivers/net/dc2114x.c | 42 --

Re: [PATCH v1 1/2] arm: mvebu: correct SPL boot configs for SPI/MMC

2020-04-18 Thread Joel Johnson
On 2020-04-18 08:23, Dennis Gilmore wrote: On Sat, Apr 18, 2020 at 9:18 AM Dennis Gilmore wrote: On Fri, Apr 17, 2020 at 2:19 AM Joel Johnson wrote: > > Update mvebu SPL boot selection mechanism for the move to driver model > usage by ensuring that the required driver support for SPI and MMC

[PATCH v6 5/6] riscv: Copy the reserved-memory nodes to final DT

2020-04-18 Thread Atish Patra
The DT used by U-Boot may be different from the DT being passed to the OS if the DT is loaded from external media such as network or mmc. In that case, the reserved-memory node needs to be copied to the DT passed to the OS. Signed-off-by: Atish Patra Reviewed-by: Bin Meng ---

[PATCH v6 3/6] riscv: Provide a mechanism to fix DT for reserved memory

2020-04-18 Thread Atish Patra
In RISC-V, M-mode software can reserve physical memory regions by setting appropriate physical memory protection (PMP) csr. As the PMP csr are accessible only in M-mode, S-mode U-Boot can not read this configuration directly. However, M-mode software can pass this information via reserved-memory

[PATCH v6 6/6] riscv: Move all fdt fixups together

2020-04-18 Thread Atish Patra
Keep all the fdt fixups together for better code management. Signed-off-by: Atish Patra Reviewed-by: Bin Meng --- arch/riscv/lib/bootm.c | 33 - arch/riscv/lib/fdt_fixup.c | 33 + 2 files changed, 33 insertions(+), 33

[PATCH v6 0/6] RISC-V DT related fixes for reserved memory & UEFI

2020-04-18 Thread Atish Patra
This series adds few DT related fixes required for Linux EFI stub to work on RISC-V. Patch 1 adds the boot hartid property under /chosen node. The related discussion can be found here. https://patchwork.ozlabs.org/patch/1233664/ https://lists.denx.de/pipermail/u-boot/2020-March/402085.html

[PATCH v6 2/6] fdtdec: Fix boundary check

2020-04-18 Thread Atish Patra
In U-Boot, the reserved memory end address is considered as a inclusive address. This notion is followed while adding a reserved memory node to the DT. For example: end_address = start_address + size - 1 Follow the same notion and fix the end address computation while checking for existing

[PATCH v6 4/6] riscv: Setup reserved-memory node for FU540

2020-04-18 Thread Atish Patra
FU540 uses OF_SEPARATE instead of OF_PRIOR_STAGE. Enable OF_BOARD_FIXUP to update the DT with reserved-memory node. Signed-off-by: Atish Patra Reviewed-by: Bin Meng --- arch/riscv/lib/fdt_fixup.c | 15 +++ configs/sifive_fu540_defconfig | 1 + 2 files changed, 16

[PATCH v6 1/6] riscv: Add boot hartid to device tree

2020-04-18 Thread Atish Patra
Linux booting protocol mandates that register "a0" contains the hartid. However, U-Boot can not pass the hartid via a0 during via standard UEFI protocol. DT nodes are commonly used to pass such information to the OS. Add a DT node under chosen node to indicate the boot hartid. EFI stub in Linux

Re: [PATCH 0/5] i.MXRT1020 add basic support

2020-04-18 Thread Giulio Benetti
On 4/18/20 2:57 PM, Stefano Babic wrote: Hi Giulio, On 18/04/20 14:32, Giulio Benetti wrote: Hi Stefano, I ping you for reviewing this patchset, Lukasz already reviewed his patches, so it should be ready to be committed. Yes, I have already merge the big series after Anatolji's ACK, this

RE: [PATCH v2] riscv: ax25: cache: Remove SPL_RISCV_MMODE config check

2020-04-18 Thread Pragnesh Patel
Any comments on this patch ? >-Original Message- >From: Pragnesh Patel >Sent: 14 March 2020 19:13 >To: u-boot@lists.denx.de >Cc: atish.pa...@wdc.com; palmerdabb...@google.com; >bmeng...@gmail.com; Paul Walmsley ; >r...@andestech.com; Pragnesh Patel ; Simon >Glass ; Trevor Woerner

Re: [PATCH v1 1/2] arm: mvebu: correct SPL boot configs for SPI/MMC

2020-04-18 Thread Dennis Gilmore
resending from a different email address as Gmail rejected my first attempt to send On Sat, Apr 18, 2020 at 9:18 AM Dennis Gilmore wrote: > > On Fri, Apr 17, 2020 at 2:19 AM Joel Johnson wrote: > > > > Update mvebu SPL boot selection mechanism for the move to driver model > > usage by ensuring

Re: [PATCH 0/5] i.MXRT1020 add basic support

2020-04-18 Thread Stefano Babic
Hi Giulio, On 18/04/20 14:32, Giulio Benetti wrote: > Hi Stefano, > > I ping you for reviewing this patchset, Lukasz already reviewed his > patches, so it should be ready to be committed. > Yes, I have already merge the big series after Anatolji's ACK, this series was not yet in. I merged into

Re: [PATCH v2 3/3] kbuild: SPL/TPL: generate separate asm-offsets.h for SPL and TPL

2020-04-18 Thread Bin Meng
On Fri, Apr 17, 2020 at 3:22 PM Masahiro Yamada wrote: > > Currently generic-asm-offsets.h and asm-offsets.h are generated based > on U-Boot proper config options. The same asm-offsets headers are used > for building U-Boot SPL/TPL, which causes potential offset mismatch if > U-Boot proper has

Re: [PATCH 0/5] i.MXRT1020 add basic support

2020-04-18 Thread Giulio Benetti
Hi Stefano, I ping you for reviewing this patchset, Lukasz already reviewed his patches, so it should be ready to be committed. Thank you -- Giulio Benetti Benetti Engineering sas On 2/18/20 8:02 PM, Giulio Benetti wrote: Add Soc i.MXRT1020 to i.MXRT family and its evk support. This Soc has

Re: [RESEND PATCH v5 3/6] riscv: Provide a mechanism to fix DT for reserved memory

2020-04-18 Thread Bin Meng
On Sat, Apr 18, 2020 at 2:10 PM Atish Patra wrote: > > In RISC-V, M-mode software can reserve physical memory regions > by setting appropriate physical memory protection (PMP) csr. As the > PMP csr are accessible only in M-mode, S-mode U-Boot can not read > this configuration directly. However,

Re: [RESEND PATCH v5 1/6] riscv: Add boot hartid to Device tree

2020-04-18 Thread Bin Meng
On Sat, Apr 18, 2020 at 2:10 PM Atish Patra wrote: > nits: Device => device in the commit title > Linux booting protocol mandates that register "a0" contains the hartid. > However, U-boot can not pass the hartid via a0 during via standard UEFI nits: U-boot => U-Boot > protocol. DT nodes are

Re: [RESEND PATCH v5 4/6] riscv: Setup reserved-memory node for FU540

2020-04-18 Thread Bin Meng
On Sat, Apr 18, 2020 at 2:10 PM Atish Patra wrote: > > FU540 uses OF_SEPARATE instead of OF_PRIOR. Should be OF_PRIOR_STAGE > > Enable OF_BOARD_FIXUP to update the DT with reserved-memory node. > > Signed-off-by: Atish Patra > --- > arch/riscv/lib/fdt_fixup.c | 15 +++ >

Re: [RESEND PATCH v5 2/6] fdtdec: Fix boundary check

2020-04-18 Thread Bin Meng
On Sat, Apr 18, 2020 at 2:10 PM Atish Patra wrote: > > In U-Boot, the reserved memory end address is considered as a inclusive > address. This notion is followed while adding a reserved memory node to > the DT. > > For example: > end_address = start_address + size - 1 > > Follow the same notion

[PATCH] test: make tests should use pytest -ra

2020-04-18 Thread Heinrich Schuchardt
By passing -ra to pytest we get a summary indicating which tests failed and why tests were skipped. Here is an example output: short test summary info = SKIPPED [1] test/py/tests/test_efi_loader.py:81: No DHCP server available SKIPPED [1]

Re: [PATCH v7 12/17] efi_loader, pytest: set up secure boot environment

2020-04-18 Thread Heinrich Schuchardt
On 4/14/20 4:51 AM, AKASHI Takahiro wrote: > A fixture for UEFI secure boot tests (image authentication and variable > authentication) is defined. A small file system with test data in a single > partition formatted in fat is created. > > This test requires efitools v1.5.2 or later. If the

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Sagar Kadam
Hi Jagan, > -Original Message- > From: Jagan Teki > Sent: Saturday, April 18, 2020 4:12 PM > To: Sagar Kadam > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de>; linux-amarula amar...@amarulasolutions.com>; pal...@dabbelt.com > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive: fu540:

RE: Network functionality in v2020.04 on Raspberry Pi 4

2020-04-18 Thread Jevtic, Sasha
Matthias, I would be happy to do this, but unfortunately will not be able to until I can return to the laboratory where my setup resides. This is likely still some weeks out due to significant COVID-19 activity in my region. I am remote right now and only have power control and UART/Ethernet

Re: [PATCH 1/5] wandboard: Fix detection for mx6q/mx6dl revD1 revariants

2020-04-18 Thread Derek Atkins
Hi, Let me know if you want me to test this on my imx6q d1 -derek Sent using my mobile device. Please excuse any typos. On April 17, 2020 7:41:03 AM Fabio Estevam wrote: Hi Heiko, On Fri, Apr 17, 2020 at 8:33 AM Fabio Estevam wrote: Ok, I have a mx6dl wandboad here and I managed to

RE: Network functionality in v2020.04 on Raspberry Pi 4

2020-04-18 Thread Jevtic, Sasha
[Previous message to list canceled; resending with added detail] Harald, To be clear, the language I used was to imply *only* that I observed this problem as recently as the latest release; none over the earlier builds I have prepared for RPi4 worked better. The reference to other hardware

A64-Olinuxino-eMMC no USB

2020-04-18 Thread Philip Rinn
Hi, USB is not working on my Olimex A64-Olinuxino-1Ge4GW Rev. D, no matter if I use the u-boot variant with or without eMMC (but that's no surprise). I use the version provided by Debian, 2020.04+dfsg-1 withe image provided by Armbian it didn't work either. I attached boot logs with and without

Re: [PATCH 1/5] wandboard: Fix detection for mx6q/mx6dl revD1 revariants

2020-04-18 Thread Derek Atkins
For the record, I also tested this on a Wandboard Dual RevC1 and it worked there, too. -derek On Fri, April 17, 2020 10:50 am, Heiko Schocher wrote: > Hello Fabio, > > Am 17.04.2020 um 14:30 schrieb Fabio Estevam: >> Hi Heiko, >> >> On Fri, Apr 17, 2020 at 9:00 AM Derek Atkins wrote: >>> >>>

[PATCH v2 1/2] mx7ulp: Remove duplicated definitions

2020-04-18 Thread sbabic
> These PMC0 definitions are already defined in the beginning > of the file, so remove the duplication. > Reported-by: Stefano Babic > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH] imx8qxp_mek: Start with USDHC2 unpowered

2020-04-18 Thread sbabic
> After triggering a "reboot" command in Linux the following > hang in SPL is observed: > U-Boot SPL 2020.04 (Apr 15 2020 - 10:49:29 -0300) > Normal Boot > WDT: Not found! > Trying to boot from MMC2_2 > spl: mmc init failed with error: -70 > SPL: failed to boot from all boot devices > ### ERROR

[PATCH] mx6ulz_14x14_evk: Disable CONFIG_NET

2020-04-18 Thread sbabic
> Currently the following build warning is seen: > > = WARNING == > This board does not use CONFIG_DM_ETH (Driver Model > for Ethernet drivers). Please update the board to use > CONFIG_DM_ETH before the v2020.07 release. Failure to > update by the

[PATCH v2 08/13] verdin-imx8mm: add nfsboot wrapper to env

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Add nfsboot wrapper to env to boot Linux kernel from TFTP/NFS. > Signed-off-by: Igor Opaniuk > Reviewed-by: Oleksandr Suvorov Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- =

[PATCH 5/7] configs: tqma6x_mba6x: update default configs for device model

2020-04-18 Thread sbabic
> Fixes compilation for WRU4 board. > Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235

[PATCH 1/2] mx6ul_evk: Move CONFIG_FEC_MXC to defconfig

2020-04-18 Thread sbabic
> CONFIG_FEC_MXC is supported in Kconfig, so it is preferred to > move it to defconfig file. > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX

[PATCH] mx6ullevk: Enable Ethernet support

2020-04-18 Thread sbabic
> Add Ethernet support using DM_ETH. > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director:

[PATCH v2 2/2] mx7ulp: Only enable LDO if it is not already enabled

2020-04-18 Thread sbabic
> LDO mode may be already enabled by the ROM and enabling it again > can cause U-Boot to hang. > Avoid this problem by only enabling LDO mode if it is initially disabled. > Reported-by: Jorge Ramirez-Ortiz > Signed-off-by: Fabio Estevam > Tested-by: Jorge Ramirez-Ortiz > Reviewed-by: Peng Fan

[PATCH 3/7] arch: arm: tqma6: apply default Kconfig for device model

2020-04-18 Thread sbabic
> Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5,

[PATCH 6/7] board: tqc: tqma6: hw init code disabled for device model

2020-04-18 Thread sbabic
> Keep code for non-dm configuration of baseboard WRU4. > It cannot be upgraded to device model as > we have no suitable device tree for it. > These changes were not run-tested on WRU4, > only compile-tested. > Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best

[PATCH v2 10/13] colibri_imx7: enable relocation of fdt and initrd

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) > from default environment which prevents relocation of FDT and initrd. > Rely on 'bootm_size' value instead to safely relocate kernel, device tree and > initrd. > Signed-off-by: Igor Opaniuk >

[PATCH v3] arm: imx6: configure NoC on i.MX6DQP

2020-04-18 Thread sbabic
> The i.MX6DP and i.MX6QP incorporate NoC interconnect logic > which needs to be configured in order to use external DDR memory. > This patch enables the SPL to configure the necessary registers > in accordance with the NXP engineering bulletin EB828. > Co-developed-by: Filip Brozović >

[PATCH 2/7] arm: dt: imx6qdl: add tqma6[qdl] som on mba6 mainboard

2020-04-18 Thread sbabic
> The device trees for TQMa6x SOM support variations in > - CPU type: imx6dl- or imx6q- > - MBa6 I2C bus access: -mba6a (i2c1) or -mba6b (i2c3) > (plus the respective common/module include trees) > - USBH1 is directly connected to a hub > - USBOTG is connected to a separate connector > and can

[PATCH v2 09/13] colibri_vf: enable relocation of fdt and initrd

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) > from default environment which prevents relocation of FDT and initrd. > Rely on 'bootm_size' value instead to safely relocate kernel, device tree and > initrd. > Signed-off-by: Igor Opaniuk >

[PATCH v2 11/13] apalis_imx6: enable relocation of fdt and initrd

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) > from default environment which prevents relocation of FDT and initrd. > Rely on 'bootm_size' value instead to safely relocate kernel, device tree and > initrd. > Signed-off-by: Igor Opaniuk >

[PATCH 7/7] board: tqc: tqma6_mba6: switch to device model

2020-04-18 Thread sbabic
> Ethernet, usdhc2 and i2c1 interfaces are probed by dm drivers. > Therefor init functions in board file are not necessary. > Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH 4/7] board: tqc: tqma6: mba6: apply default Kconfig for device model

2020-04-18 Thread sbabic
> Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic -- = DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5,

[PATCH 2/2] mx6ul_evk: Remove FEC related board code

2020-04-18 Thread sbabic
> mx6ul_evk uses DM_ETH, so there is no need to have board code > to setup the FEC IOMUX and to register the network ports via the > old board_eth_init() method. > Remove these FEC related pieces of code. > Signed-off-by: Fabio Estevam > Reviewed-by: Peng Fan Applied to u-boot-imx, master,

[PATCH v2 13/13] colibri_imx6: enable relocation of fdt and initrd

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) > from default environment which prevents relocation of FDT and initrd. > Rely on 'bootm_size' value instead to safely relocate kernel, device tree and > initrd. > Signed-off-by: Igor Opaniuk >

[PATCH 1/7] tqma6: resurrect support by supplying correct SYS_TEXT_BASE

2020-04-18 Thread sbabic
> From: Markus Niebel > reason: SYS_TEXT_BASE was moved to Kconfig. Give reasonable defaults > in board specific Kconfig. > Signed-off-by: Markus Niebel > Signed-off-by: Michael Krummsdorf Applied to u-boot-imx, master, thanks ! Best regards, Stefano Babic --

[PATCH v2 12/13] colibri-imx6ull: enable relocation of fdt and initrd

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Remove 'fdt_high' and 'initrd_high' environment variables (set to 0x) > from default environment which prevents relocation of FDT and initrd. > Rely on 'bootm_size' value instead to safely relocate kernel, device tree and > initrd. > Signed-off-by: Igor Opaniuk >

[PATCH v2 06/13] verdin-imx8mm: adjust dram size in case bl32 is used

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), > so during MMU initialization U-Boot won't touch this mem area. > BL32 is loaded to the end of DRAM, bl32 payload size is read from > rom_pointer[1]. This relates to the issue described in >

[PATCH v2 07/13] imx8mm_evk: adjust dram size in case bl32 is used

2020-04-18 Thread sbabic
> From: Igor Opaniuk > Adjust DRAM size in case BL32 secure payload is loaded (OP-TEE/Trusty), > so during MMU initialization U-Boot won't touch this mem area. > BL32 is loaded to the end of DRAM, bl32 payload size is read from > rom_pointer[1]. This relates to the issue described in >

Re: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Jagan Teki
Hi Sagar, On Sat, Apr 18, 2020 at 4:05 PM Sagar Kadam wrote: > > Hello Jagan, > > > -Original Message- > > From: Jagan Teki > > Sent: Saturday, April 18, 2020 1:11 AM > > To: Sagar Kadam > > Cc: Bin Meng ; U-Boot Mailing List > b...@lists.denx.de>; linux-amarula >

RE: [U-Boot] [PATCH v2 5/5] sifive: fu540: Enable spi-nor flash support

2020-04-18 Thread Sagar Kadam
Hello Jagan, > -Original Message- > From: Jagan Teki > Sent: Saturday, April 18, 2020 1:11 AM > To: Sagar Kadam > Cc: Bin Meng ; U-Boot Mailing List b...@lists.denx.de>; linux-amarula amar...@amarulasolutions.com>; pal...@dabbelt.com > Subject: Re: [U-Boot] [PATCH v2 5/5] sifive:

[PATCH 3/3] mkimage: fit: Free buf directly in fit_extract_data()

2020-04-18 Thread Bin Meng
From: Bin Meng If given ptr to free() is NULL, no operation is performed. Hence we can just free buf directly in fit_extract_data(). Signed-off-by: Bin Meng --- tools/fit_image.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/fit_image.c b/tools/fit_image.c index

[PATCH 2/3] mkimage: fit: Unmmap the memory before closing fd in fit_import_data()

2020-04-18 Thread Bin Meng
From: Lihua Zhao Without calling munmap(), the follow-up call to open() the same file with a flag O_TRUNC seems not to cause any issue on Linux, but it fails on Windows with error like below: Can't open kernel_fdt.itb.tmp: Permission denied Fix this by unmapping the memory before closing

[PATCH 1/3] tools: Remove the out-of-date MinGW support codes

2020-04-18 Thread Bin Meng
From: Bin Meng MinGW build for U-Boot tools has been broken for years. The official support of Windows build is now MSYS2. Remove the MinGW support codes. Signed-off-by: Bin Meng --- README| 10 - tools/mingw_support.c | 113

Re: [PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI

2020-04-18 Thread Atish Patra
On Thu, Apr 16, 2020 at 7:27 PM Bin Meng wrote: > > Hi Atish, > > On Fri, Apr 17, 2020 at 10:14 AM Bin Meng wrote: > > > > Correct Palmer's email address > > > > On Fri, Apr 17, 2020 at 10:12 AM Bin Meng wrote: > > > > > > Hi Rick, > > > > > > On Fri, Apr 17, 2020 at 9:12 AM Rick Chen wrote: >

[RESEND PATCH v5 6/6] riscv: Move all fdt fixups together

2020-04-18 Thread Atish Patra
Keep all the fdt fixups together for better code management. Signed-off-by: Atish Patra Reviewed-by: Bin Meng --- arch/riscv/lib/bootm.c | 33 - arch/riscv/lib/fdt_fixup.c | 33 + 2 files changed, 33 insertions(+), 33

[RESEND PATCH v5 5/6] riscv: Copy the reserved-memory nodes to final DT

2020-04-18 Thread Atish Patra
The DT used by U-Boot may be different from the DT being passed to the OS if the DT is loaded from external media such as network or mmc. In that case, the reserved-memory node needs to be copied to the DT passed to the OS. Signed-off-by: Atish Patra Reviewed-by: Bin Meng ---

[RESEND PATCH v5 3/6] riscv: Provide a mechanism to fix DT for reserved memory

2020-04-18 Thread Atish Patra
In RISC-V, M-mode software can reserve physical memory regions by setting appropriate physical memory protection (PMP) csr. As the PMP csr are accessible only in M-mode, S-mode U-Boot can not read this configuration directly. However, M-mode software can pass this information via reserved-memory

[RESEND PATCH v5 1/6] riscv: Add boot hartid to Device tree

2020-04-18 Thread Atish Patra
Linux booting protocol mandates that register "a0" contains the hartid. However, U-boot can not pass the hartid via a0 during via standard UEFI protocol. DT nodes are commonly used to pass such information to the OS. Add a DT node under chosen node to indicate the boot hartid. EFI stub in Linux

[RESEND PATCH v5 0/6] RISC-V DT related fixes for reserved memory & UEFI

2020-04-18 Thread Atish Patra
This series adds few DT related fixes required for Linux EFI stub to work on RISC-V. Patch 1 adds the boot hartid property under /chosen node. The related discussion can be found here. https://patchwork.ozlabs.org/patch/1233664/ https://lists.denx.de/pipermail/u-boot/2020-March/402085.html

[RESEND PATCH v5 4/6] riscv: Setup reserved-memory node for FU540

2020-04-18 Thread Atish Patra
FU540 uses OF_SEPARATE instead of OF_PRIOR. Enable OF_BOARD_FIXUP to update the DT with reserved-memory node. Signed-off-by: Atish Patra --- arch/riscv/lib/fdt_fixup.c | 15 +++ configs/sifive_fu540_defconfig | 1 + 2 files changed, 16 insertions(+) diff --git

[RESEND PATCH v5 2/6] fdtdec: Fix boundary check

2020-04-18 Thread Atish Patra
In U-Boot, the reserved memory end address is considered as a inclusive address. This notion is followed while adding a reserved memory node to the DT. For example: end_address = start_address + size - 1 Follow the same notion and fix the end address computation while checking for existing

[PATCH 3/3] common/board_r: Drop initr_bedbug wrapper

2020-04-18 Thread Ovidiu Panait
Drop initr_bedbug wrapper and call bedbug_init directly during the init sequence. Signed-off-by: Ovidiu Panait --- common/board_r.c | 11 +-- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/common/board_r.c b/common/board_r.c index bdb0389e31..d9015cd057 100644 ---

[PATCH 2/3] cmd/bedbug.c: Make bedbug_init have a return value

2020-04-18 Thread Ovidiu Panait
Do this as a preparation for removing initr_bedbug wrapper from common/board_r.c. Signed-off-by: Ovidiu Panait --- cmd/bedbug.c | 4 ++-- include/bedbug/type.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/bedbug.c b/cmd/bedbug.c index

[PATCH 1/3] common/board_r: arm: Merge initr_enable_interrupts into interrupts_init

2020-04-18 Thread Ovidiu Panait
initr_enable_interrupts() is an ARM-specific wrapper over enable_interrupts(), which is run during the common init sequence. It can be eliminated by moving the enable_interrupts() call to the end of interrupt_init() function, in arch/arm/lib/interrupts*.c. Signed-off-by: Ovidiu Panait ---