Re: [PATCH v11 14/18] riscv: sifive: fu540: add SPL configuration

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:35 PM Pragnesh Patel wrote: > > Add a support for SPL which will boot from L2 LIM (0x0800_) and > then SPL will boot U-Boot FIT image (OpenSBI FW_DYNAMIC + u-boot.bin) > from MMC boot devices. > > SPL related code is leveraged from FSBL >

Re: [PATCH v11 13/18] riscv: cpu: fu540: Add support for cpu fu540

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:35 PM Pragnesh Patel wrote: > > Add SiFive fu540 cpu to support RISC-V arch > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH v11 12/18] riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:35 PM Pragnesh Patel wrote: > > This sync has changes required to use GPIO in U-Boot and > U-Boot SPL. > > Sync dts from linux v5.7-rc2 commit: > "riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file" > (sha1: 0a91330b2af9f71cd483f92774182b58f6d9) > >

Re: [PATCH v11 10/18] clk: sifive: fu540-prci: Add ddr clock initialization

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Release ddr clock reset once clock is initialized > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH v11 09/18] clk: sifive: fu540-prci: Add clock enable and disable ops

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Added clock enable and disable functions in prci ops > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Acked-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH v11 08/18] riscv: sifive: dts: fu540: add U-Boot dmc node

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Add dmc node to enable ddr driver. dmc is used to > initialize the memory controller. > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH v11 07/18] sifive: dts: fu540: Add DDR controller and phy register settings

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Add DDR controller and phy register settings, taken from fsbl > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH v11 05/18] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Devicetree files in FU540 platform is synced from Linux, like other > platforms does. Apart from these U-Boot in FU540 would also require > some U-Boot specific node like clint. > > So, create board specific -u-boot.dtsi files. This would

[PATCH] doc: rockchip: Update documentation with Rock Pi 4

2020-05-19 Thread Walter Lozano
Update README.rockchip to reflect the support of Radxa Rock Pi 4 Signed-off-by: Walter Lozano --- doc/README.rockchip | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/README.rockchip b/doc/README.rockchip index 70c8798ed2..c6718e83c7 100644 --- a/doc/README.rockchip +++

Re: [PATCH v11 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > When build U-Boot SPL, meet an issue of undefined reference to > 'crc7' for drivers/mmc/mmc_spi.c, so let's compile crc7.c when > CONFIG_MMC_SPI selected. > > Signed-off-by: Pragnesh Patel > Reviewed-by: Heinrich Schuchardt >

Re: [PATCH v11 03/18] riscv: Add _image_binary_end for SPL

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > For SPL_SEPARATE_BSS, Device tree will be put at _image_binary_end > > Signed-off-by: Pragnesh Patel > Reviewed-by: Anup Patel > Reviewed-by: Jagan Teki > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Tested-by: Jagan Teki

Re: [PATCH v11 02/18] riscv: sifive: fu540: Use OTP DM driver for serial environment variable

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Use the OTP DM driver to set the serial environment variable. > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

Re: [PATCH 4/7] rockchip: Remove ARCH= references from documentation

2020-05-19 Thread klaus . goger
On 2020-05-19 16:51, Tom Rini wrote: When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Kever Yang Cc: Simon Glass Cc: Philipp Tomsich Cc: Klaus Goger Cc: Jagan Teki Signed-off-by: Tom Rini --- As an aside,

Re: [PATCH v11 01/18] misc: add driver for the SiFive otp controller

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:34 PM Pragnesh Patel wrote: > > Added a misc driver to handle OTP memory in SiFive SoCs. > > Signed-off-by: Pragnesh Patel > Reviewed-by: Bin Meng > Tested-by: Bin Meng > --- Reviewed-by: Jagan Teki Tested-by: Jagan Teki

[PATCH v3 4/4] mx6cuboxi: remove unused code

2020-05-19 Thread Walter Lozano
After enabling SPL_OF_CONTROL, SPL_DM and SPL_DM_MMC the MMC initialization code is not longer needed. This patch removes the unused code. Signed-off-by: Walter Lozano --- board/solidrun/mx6cuboxi/mx6cuboxi.c | 65 1 file changed, 65 deletions(-) diff --git

[PATCH v3 0/4] mx6cuboxi: enable support for OF_CONTROL and DM in SPL

2020-05-19 Thread Walter Lozano
Make an additional step to add full DM support to mx6cuboxi, including its support for SPL With this new configuration SPL image is 50 KB, higher than the 38 KB from the previous version, but it still under the 68 KB limit. Changes in v3: - Cleanup Changes in v2: - Fix board_boot_order to

[PATCH v3 3/4] mx6cuboxi: enable OF_CONTROL and DM in SPL

2020-05-19 Thread Walter Lozano
In order to take the beneficts of DT and DM in SPL, like reusing the code and avoid redundancy, enable SPL_OF_CONTROL, SPL_DM and SPL_DM_MMC. With this new configuration SPL image is 50 KB, higher than the 38 KB from the previous version, but it still under the 68 KB limit. Signed-off-by: Walter

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

2020-05-19 Thread Walter Lozano
In SPL legacy code only one MMC device is created, based on BOOT_CFG register, which can be either SD or eMMC. In this context board_boot_order return always MMC1 when configure to boot from SD/eMMC. After switching to DM both SD and eMMC devices are created based on the information available on

[PATCH v3 1/4] mx6cuboxi: enable MMC and eMMC in DT for SPL

2020-05-19 Thread Walter Lozano
Signed-off-by: Walter Lozano --- .../dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi| 8 1 file changed, 8 insertions(+) diff --git a/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi b/arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi index

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-05-19 Thread Rayagonda Kokatanur
On Tue, May 19, 2020 at 11:01 PM Tom Rini wrote: > > On Tue, May 19, 2020 at 10:39:49PM +0530, Rayagonda Kokatanur wrote: > > Hi Tom, > > > > > > On Tue, May 19, 2020 at 12:46 AM Tom Rini wrote: > > > > > > On Sun, May 17, 2020 at 01:49:30PM +0530, Rayagonda Kokatanur wrote: > > > > > > > This

Re: [PATCH v3 21/22] Use __ASSEMBLY__ as the assembly macros

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:12AM -0600, Simon Glass wrote: > Some places use __ASSEMBLER__ instead which does not work since the > Makefile does not define it. Fix them. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 22/22] common: Drop linux/bitops.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:13AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 19/22] Fix some checkpatch warnings in calls to udelay()

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:10AM -0600, Simon Glass wrote: > Fix up some incorrect code style in calls to functions in the linux/time.h > header, mostly udelay(). > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 18/22] common: Drop linux/stringify.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:09AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 20/22] common: Drop linux/delay.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:11AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 17/22] common: Drop linux/bug.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:08AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 13/22] Fix some checkpatch warnings in calls to debug()

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:04AM -0600, Simon Glass wrote: > Fix up some incorrect code style in calls to functions in the log.h > header, mostly debug(). > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 16/22] common: Drop asm_offsets.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:07AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 14/22] common: Drop log.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:05AM -0600, Simon Glass wrote: > Move this header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 15/22] common: Drop asm/ptrace.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:06AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 12/22] command: Remove the cmd_tbl_t typedef

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:03AM -0600, Simon Glass wrote: > We should not use typedefs in U-Boot. They cannot be used as forward > declarations which means that header files must include the full header to > access them. > > Drop the typedef and rename the struct to remove the _s suffix which

Re: [PATCH v3 08/22] bootstage: Use BOOTSTAGE instead of BOOTSTATE

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:59AM -0600, Simon Glass wrote: > Some of the enum members are wrong. Fix them. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 09/22] common: Drop bootstage.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:00AM -0600, Simon Glass wrote: > Move this fairly uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 10/22] common: Drop image.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:01AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 11/22] common: Drop init.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:40:02AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 07/22] common: Drop part.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:58AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 06/22] part: Drop disk_partition_t typedef

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:57AM -0600, Simon Glass wrote: > We should not be using typedefs and these make it harder to use > forward declarations (to reduce header file inclusions). Drop the typedef. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc

Re: [PATCH v3 04/22] arm: Don't include common.h in header files

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:55AM -0600, Simon Glass wrote: > It is bad practice to include common.h in other header files since it can > bring in any number of superfluous definitions. It implies that some C > files don't include it and thus may be missing CONFIG options that are set > up by

Re: [PATCH v3 05/22] common: Drop net.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:56AM -0600, Simon Glass wrote: > Move this header out of the common header. Network support is used in > quite a few places but it still does not warrant blanket inclusion. > > Note that this net.h header itself has quite a lot in it. It could be > split into the

Re: [PATCH v3 03/22] common: Drop flash.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:54AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Fix up some style problems in flash.h while we are here. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-05-19 Thread Tom Rini
On Tue, May 19, 2020 at 10:39:49PM +0530, Rayagonda Kokatanur wrote: > Hi Tom, > > > On Tue, May 19, 2020 at 12:46 AM Tom Rini wrote: > > > > On Sun, May 17, 2020 at 01:49:30PM +0530, Rayagonda Kokatanur wrote: > > > > > This is the second patch set series prepared on top of the > > > first

Re: [PATCH v3 01/22] common: Drop uuid.h from common header

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:52AM -0600, Simon Glass wrote: > Move this uncommon header out of the common header. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v3 02/22] flash: Tidy up coding style for flash functions

2020-05-19 Thread Tom Rini
On Sun, May 10, 2020 at 11:39:53AM -0600, Simon Glass wrote: > Some functions use the wrong code style and generate checkpatch errors. > Fix these. > > Signed-off-by: Simon Glass Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH v1 00/15] add basic driver support for broadcom NS3 soc

2020-05-19 Thread Rayagonda Kokatanur
Hi Tom, On Tue, May 19, 2020 at 12:46 AM Tom Rini wrote: > > On Sun, May 17, 2020 at 01:49:30PM +0530, Rayagonda Kokatanur wrote: > > > This is the second patch set series prepared on top of the > > first patch set ("add initial support for broadcom NS3 soc"). > > > > This patch set will add

Re: [PATCH] Remove CROSS_COMPILE default from arch/*/config.mk

2020-05-19 Thread Simon Glass
On Tue, 19 May 2020 at 08:32, Tom Rini wrote: > > In order to support the compiler providing information used within > Kconfig itself we cannot have the compiler be determined by > arch/*/config.mk as we will not be able to evaluate that yet. Given > that most documentation tells people to

Re: [RFC PATCH v3 3/3] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-19 Thread Simon Glass
Hi Marek, On Tue, 19 May 2020 at 06:00, Marek Szyprowski wrote: > > Hi Simon, > > On 19.05.2020 00:38, Simon Glass wrote: > > On Mon, 18 May 2020 at 07:18, Marek Szyprowski > > wrote: > >> Create a non-cacheable mapping for the 0x6 physical memory region, > >> where MMIO registers for

Re: [PATCH v4] dm: uclass: don't assign aliased seq numbers

2020-05-19 Thread Simon Glass
Hi Michael, On Tue, 19 May 2020 at 06:17, Michael Walle wrote: > > Hi Simon, > > Am 2020-04-24 16:17, schrieb Michael Walle: > > Hi Simon, > > > > Am 2020-04-20 01:38, schrieb Simon Glass: > > > > [..snip..] > > > >>> > uclass 31: eth > >>> > 0 * smsc95xx_eth @ 3db69ac0, seq 0, (req -1) > >>>

Re: [PATCH v11 11/18] clk: sifive: fu540-prci: Release ethernet clock reset

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:35 PM Pragnesh Patel wrote: > > Release ethernet clock reset once clock is initialized. > This is necessary to do as U-Boot proper needs ethernet > clock. Better write proper commit mesaage can clear the reason for phy reset here. Sample "U-Boot ethernet phy work with

Re: [PATCH v11 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-19 Thread Jagan Teki
On Tue, May 19, 2020 at 12:35 PM Pragnesh Patel wrote: > > With sifive_fu540_defconfig: > > User can use FSBL or u-boot-spl.bin anyone at a time. > > For FSBL, > fsbl->fw_payload.bin (opensbi + U-Boot) > > For u-boot-spl.bin, > u-boot-spl.bin->FIT image (opensbi + U-Boot proper + dtb) > > U-Boot

Re: [PATCH v10 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-19 Thread Jagan Teki
On Sat, May 16, 2020 at 11:42 AM Pragnesh Patel wrote: > > Hi Jagan, > > >-Original Message- > >From: Jagan Teki > >Sent: 15 May 2020 23:05 > >To: Pragnesh Patel > >Cc: U-Boot-Denx ; Atish Patra > >; Palmer Dabbelt ; Bin > >Meng ; Paul Walmsley ; > >Anup Patel ; Sagar Kadam > >; Rick

[PATCH 1/1] efi_loader: add EFI_MEMORY_SP to memory attributes

2020-05-19 Thread Heinrich Schuchardt
The UEFI 2.8 specification has introduced the EFI_MEMORY_SP memory attribute. Add it to the 'efidebug memmap' and 'efi mem' commands. Signed-off-by: Heinrich Schuchardt --- cmd/efi.c | 1 + cmd/efidebug.c | 1 + include/efi.h | 1 + 3 files changed, 3 insertions(+) diff --git a/cmd/efi.c

Re: [PATCH v3 15/17] mtd: spi-nor-core: Perform a Soft Reset on boot

2020-05-19 Thread Pratyush Yadav
On 15/05/20 01:12PM, Jagan Teki wrote: > On Wed, May 13, 2020 at 4:34 PM Pratyush Yadav wrote: > > > > On 13/05/20 03:26PM, Jagan Teki wrote: > > > On Wed, May 13, 2020 at 2:24 PM Pratyush Yadav wrote: > > > > > > > > On 13/05/20 12:17PM, Jagan Teki wrote: > > > > > On Mon, Mar 30, 2020 at 9:16

Re: [PATCH 7/7] fu540: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
On Tue, May 19, 2020 at 10:51:11AM -0400, Tom Rini wrote: > When building U-Boot we select the architecture via Kconfig and not ARCH > being passed in via the environment or make cmdline. > > While in here, add the doc file to the MAINTAINERS entry for coldfire. I've reworded this locally to

Re: [PATCH 2/7] imx: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
On Tue, May 19, 2020 at 08:41:45PM +0530, Amit Tomer wrote: > Hi > > On Tue, May 19, 2020 at 8:21 PM Tom Rini wrote: > > > > When building U-Boot we select the architecture via Kconfig and not ARCH > > being passed in via the environment or make cmdline. > > > > Cc: Adam Ford > > Cc: Vanessa

Re: [PATCH 2/7] imx: Remove ARCH= references from documentation

2020-05-19 Thread Amit Tomer
Hi On Tue, May 19, 2020 at 8:21 PM Tom Rini wrote: > > When building U-Boot we select the architecture via Kconfig and not ARCH > being passed in via the environment or make cmdline. > > Cc: Adam Ford > Cc: Vanessa Maegima > Cc: Otavio Salvador > Cc: Igor Opaniuk > Cc: Amit Singh Tomar >

Re: [PATCH v3 14/17] mtd: spi-nor-core: Perform a Soft Reset on shutdown

2020-05-19 Thread Pratyush Yadav
Hi Jagan, On 13/05/20 12:14PM, Jagan Teki wrote: > On Mon, Mar 30, 2020 at 9:16 PM Pratyush Yadav wrote: > > > > On probe, the SPI NOR core will put a flash in 8D-8D-8D mode if it > > supports it. But Linux as of now expects to get the flash in 1S-1S-1S > > mode. Handing the flash to Linux in

[PATCH 4/7] rockchip: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Kever Yang Cc: Simon Glass Cc: Philipp Tomsich Cc: Klaus Goger Cc: Jagan Teki Signed-off-by: Tom Rini --- As an aside, these files should be converted rST and

[PATCH 7/7] fu540: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. While in here, add the doc file to the MAINTAINERS entry for coldfire. Cc: Paul Walmsley Cc: Palmer Dabbelt Cc: Anup Patel Cc: Atish Patra Signed-off-by: Tom Rini

[PATCH 6/7] m68k: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. While in here, add the doc file to the MAINTAINERS entry for coldfire. Cc: Huan Wang Cc: Angelo Dureghello Signed-off-by: Tom Rini --- MAINTAINERS | 1 +

[PATCH 5/7] arm: ti: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Lokesh Vutla Cc: Vitaly Andrianov Signed-off-by: Tom Rini --- As an aside, these README files should be converted rST and moved to doc/board/ and the MAINTAINERS

[PATCH 3/7] powerpc: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Po Liu Cc: Qiang Zhao Signed-off-by: Tom Rini --- As an aside, these files should be converted rST and moved to doc/board/ and the MAINTAINERS file updated to

[PATCH 1/7] amlogic: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Beniamino Galvani Cc: Neil Armstrong Cc: u-boot-amlo...@groups.io Signed-off-by: Tom Rini --- As an aside, these files should be converted rST and moved to

[PATCH 2/7] imx: Remove ARCH= references from documentation

2020-05-19 Thread Tom Rini
When building U-Boot we select the architecture via Kconfig and not ARCH being passed in via the environment or make cmdline. Cc: Adam Ford Cc: Vanessa Maegima Cc: Otavio Salvador Cc: Igor Opaniuk Cc: Amit Singh Tomar Cc: Manivannan Sadhasivam Signed-off-by: Tom Rini --- As an aside, the

[PATCH] Remove CROSS_COMPILE default from arch/*/config.mk

2020-05-19 Thread Tom Rini
In order to support the compiler providing information used within Kconfig itself we cannot have the compiler be determined by arch/*/config.mk as we will not be able to evaluate that yet. Given that most documentation tells people to specify CROSS_COMPILE, remove these references. Cc: Huan Wang

Re: [PATCH] rockchip: rk3328: rock64 - fix gen3 SPL hang

2020-05-19 Thread Kurt Miller
On Tue, 2020-05-19 at 12:48 +0300, Matwey V. Kornilov wrote: > вт, 19 мая 2020 г. в 01:06, Kurt Miller : > > > > > > On Wed, 2020-05-13 at 16:10 -0400, Kurt Miller wrote: > > > > > > On Wed, 2020-05-13 at 22:58 +0300, Matwey V. Kornilov wrote: > > > > > > > > > > > > Thanks. Have you already

Re: [PATCH 02/10] kconfig: Add scripts/Kconfig.include from v4.19

2020-05-19 Thread Tom Rini
On Tue, May 19, 2020 at 10:40:01AM +0900, Masahiro Yamada wrote: > On Tue, May 19, 2020 at 1:55 AM Tom Rini wrote: > > > > On Mon, May 18, 2020 at 11:23:20AM -0400, Tom Rini wrote: > > > On Mon, May 18, 2020 at 11:55:11AM +0900, Masahiro Yamada wrote: > > > > Tom, > > > > > > > > > > > > > > > >

Re: [PATCH] x86: coreboot: add SMBIOS cbmem entry parsing

2020-05-19 Thread Bin Meng
On Sun, May 17, 2020 at 10:29 PM Bin Meng wrote: > > On Thu, May 14, 2020 at 9:16 PM Christian Gmeiner > wrote: > > > > Signed-off-by: Christian Gmeiner > > --- > > arch/x86/cpu/coreboot/tables.c | 14 ++ > > arch/x86/include/asm/arch-coreboot/sysinfo.h | 2 ++ > >

Re: [PATCH] cbfs: drop file_cbfs_result declaration

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 9:37 PM Bin Meng wrote: > > On Tue, May 19, 2020 at 5:02 PM Christian Gmeiner > wrote: > > > > It is not definded anywhere. > > > > Signed-off-by: Christian Gmeiner > > --- > > include/cbfs.h | 2 -- > > 1 file changed, 2 deletions(-) > > > > Reviewed-by: Bin Meng

Re: [PATCH 04/13] cbfs: Adjust return value of file_cbfs_next_file()

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > At present his uses a true return to indicate it found a file. Adjust it typo: this > to use 0 for this, so it is consistent with other functions. > > Update its callers accordingling and add a check for malloc() failure in accordingly >

Re: [PATCH 05/13] cbfs: Adjust file_cbfs_load_header() to use cbfs_priv

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > This function is strange at the moment in that it takes a header pointer > but then accesses the cbfs_s global. Currently clients have their own priv > pointer, so update the function to take that as a parameter instead. > > Signed-off-by:

Re: [PATCH 06/13] cbfs: Adjust cbfs_load_header_ptr() to use cbfs_priv

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > This function is strange at the moment in that it takes a header pointer > but then accesses the cbfs_s global. Currently clients have their own priv > pointer, so update the function to take that as a parameter instead. > > Signed-off-by:

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Marek Vasut
On 5/19/20 3:45 PM, Bin Meng wrote: > On Tue, May 19, 2020 at 9:43 PM Marek Vasut wrote: >> >> On 5/19/20 3:33 PM, Bin Meng wrote: >>> On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: Add weak function which is called right after fdtdec_setup() configured the U-Boot DT. This

Re: [PATCH 02/13] cbfs: Use ulong consistently

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > U-Boot uses ulong for addresses but there are a few places in this driver > that don't use it. Convert this driver over to follow this convention > fully. > > Signed-off-by: Simon Glass > --- > > fs/cbfs/cbfs.c | 9 - >

Re: [PATCH 01/13] cbfs: Rename the result variable

2020-05-19 Thread Bin Meng
Hi Simon, On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > At present the result variable in the cbfs_priv is called 'result' as is > the local variable in a few functions. Change the latter to 'ret' which is > more common in U-Boot and avoids confusion. > > Signed-off-by: Simon Glass >

Re: [PATCH 03/13] cbfs: Use bool type for whether initialised

2020-05-19 Thread Bin Meng
Hi Simon, On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > At present this uses an int type. U-Boot now supports bool so use this > instead. Also use English spelling for initialised which we are here. I don't understand what issue is with American English "initialized"? I think they

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 9:43 PM Marek Vasut wrote: > > On 5/19/20 3:33 PM, Bin Meng wrote: > > On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: > >> > >> Add weak function which is called right after fdtdec_setup() configured > >> the U-Boot DT. This permits board-specific adjustments to the

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Marek Vasut
On 5/19/20 3:33 PM, Bin Meng wrote: > On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: >> >> Add weak function which is called right after fdtdec_setup() configured >> the U-Boot DT. This permits board-specific adjustments to the U-Boot DT >> before U-Boot starts parsing the DT. This could be

Re: [PATCH] cbfs: drop file_cbfs_result declaration

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 5:02 PM Christian Gmeiner wrote: > > It is not definded anywhere. > > Signed-off-by: Christian Gmeiner > --- > include/cbfs.h | 2 -- > 1 file changed, 2 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: > > Add weak function which is called right after fdtdec_setup() configured > the U-Boot DT. This permits board-specific adjustments to the U-Boot DT > before U-Boot starts parsing the DT. This could be used e.g. to patch in > various custom

Antwort: [PATCH v2 13/35] acpigen: Support writing a length

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 13/35] acpigen: Support writing a length > > It is convenient to write a length value for preceding a block of data. > Of course the length is not known or is hard to calculate a priori. So add > a way to mark the start on a

Patch for CVE-2018-18440 and CVE-2018-18439

2020-05-19 Thread Abhay Singh
Hi All, Can anyone please help me to locate the patch(diff) file for CVE-2018-18440 and CVE-2018-18439. Regards, Abhay

[PATCH V2 4/5] ARM: rmobile: Merge prior-stage firmware DT fragment into U-Boot DT on Gen3

2020-05-19 Thread Marek Vasut
The prior-stage firmware generates DT fragment containing the /firmware node, /reserved-memory node and /memory@ nodes. Merge these nodes into the U-Boot DT, so U-Boot can use this information. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom

[PATCH V2 1/5] libfdt: Export overlay_apply_node() as fdt_overlay_apply_node()

2020-05-19 Thread Marek Vasut
This function is useful to merge a subset of DT into another DT, for example if some prior-stage firmware passes a DT fragment to U-Boot and U-Boot needs to merge it into its own DT. Export this function to permit implementing such functionality. Reviewed-by: Simon Glass Signed-off-by: Marek

[PATCH V2 5/5] ARM: rmobile: Enable support for OpTee on Gen3

2020-05-19 Thread Marek Vasut
Enable OpTee support on R-Car Gen3, so that U-Boot would copy the OpTee /firmware and /reserved-memory nodes into the Linux DT. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom Rini --- V2: No change --- configs/r8a77970_eagle_defconfig | 2

[PATCH V2 3/5] ARM: dts: rmobile: Reserve space in R-Car Gen3 DTs

2020-05-19 Thread Marek Vasut
Reserve 4 kiB of space in R-Car Gen3 DTs when those DTs are compiled to permit patching in OpTee-OS /firmware node, /reserved-memory node and possibly also additional /memory@ nodes. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom Rini ---

[PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Marek Vasut
Add weak function which is called right after fdtdec_setup() configured the U-Boot DT. This permits board-specific adjustments to the U-Boot DT before U-Boot starts parsing the DT. This could be used e.g. to patch in various custom nodes or merge in DT fragments from prior-stage firmware.

Re: [PATCH v1] i2c: octeon_i2c: Add I2C controller driver for Octeon

2020-05-19 Thread Simon Glass
Hi, On Thu, 14 May 2020 at 01:23, Stefan Roese wrote: > > From: Suneel Garapati > > Add support for I2C controllers found on Octeon II/III and Octeon TX > TX2 SoC platforms. > > Signed-off-by: Aaron Williams > Signed-off-by: Suneel Garapati > Signed-off-by: Stefan Roese > Cc: Heiko Schocher

Re: U-Boot DM device tree and Linux device tree - what are the differences and why?

2020-05-19 Thread Fabio Estevam
Hi Rudolf, On Tue, May 19, 2020 at 1:28 AM Rudolf J Streif wrote: > > I solved the problem with u-boot not recognizing the eMMC. The device > tree is working now for u-boot. > > However, i.MX6 is using SPL which is loaded into OCRAM. If I flash SPL > and u-boot to a boot partition on the eMMC

Re: [PATCH v4] dm: uclass: don't assign aliased seq numbers

2020-05-19 Thread Michael Walle
Hi Simon, Am 2020-04-24 16:17, schrieb Michael Walle: Hi Simon, Am 2020-04-20 01:38, schrieb Simon Glass: [..snip..] > uclass 31: eth > 0 * smsc95xx_eth @ 3db69ac0, seq 0, (req -1) Shouldn't this be "req 0" if the ethernet alias is actually matched. Does u-boot actually supports matching

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-19 Thread Jupiter
Thanks Richard for the response. On 5/19/20, Richard Weinberger wrote: > Neither UBI nor UBIFS care about ECC. The MTD stack does. > If you write something in Linux you cannot read back in u-boot a common > problem is that u-boot and Linux use different MTD settings (layout, > ECC, etc...).

[PATCH 4/4] arm: imx6q: pcm058: Convert pcm058 to use DM with DTs

2020-05-19 Thread Niel Fourie
Convert pcm058 support to use device trees and the driver model. Add rudimentary boot scripts to the environment, expand README. Signed-off-by: Niel Fourie Cc: Stefano Babic --- arch/arm/dts/Makefile | 1 + .../imx6q-phytec-mira-rdk-nand-u-boot.dtsi| 42 +++

[PATCH 3/4] arm: imx6q: pcm058: change MAINTAINER

2020-05-19 Thread Niel Fourie
Change the MAINTAINER of pcm058. Signed-off-by: Niel Fourie Cc: Stefano Babic --- board/phytec/pcm058/MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/phytec/pcm058/MAINTAINERS b/board/phytec/pcm058/MAINTAINERS index b0ca40277f..909dfc44af 100644 ---

[PATCH 2/4] arm: dts: imx6q: Add Linux dts files for Phytec Mira

2020-05-19 Thread Niel Fourie
Add Phytec Mira device tree files, for use with pcm058. >From Linux 5.6, commit 7111951b8d49 upstream Signed-off-by: Niel Fourie Cc: Stefano Babic --- arch/arm/dts/imx6q-phytec-mira-rdk-nand.dts | 72 arch/arm/dts/imx6qdl-phytec-mira.dtsi| 390 +++

[PATCH 1/4] dts-bindings: regulator: Add dlg,da9063-regulator

2020-05-19 Thread Niel Fourie
Add da9063-regulator bindings from Linux 5.6: commit 7111951b8d49 upstream Signed-off-by: Niel Fourie Cc: Stefano Babic --- .../dt-bindings/regulator/dlg,da9063-regulator.h | 16 1 file changed, 16 insertions(+) create mode 100644

[PATCH 0/4] arm: imx6q: pcm058: Convert support to use DM with DTs

2020-05-19 Thread Niel Fourie
This patch series updates the existing pcm058 board support to use device trees with driver model. The first two patches in the series pulls in the unmodified Linux dt-binding and dts files. The third patch changes the maintainer. The last patch contains the required changes. Niel Fourie (4):

Re: [RFC PATCH v3 3/3] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-19 Thread Marek Szyprowski
Hi Simon, On 19.05.2020 00:38, Simon Glass wrote: > On Mon, 18 May 2020 at 07:18, Marek Szyprowski > wrote: >> Create a non-cacheable mapping for the 0x6 physical memory region, >> where MMIO registers for the PCIe XHCI controller are instantiated by the >> PCIe bridge. Due to 32bit

Antwort: [PATCH v2 11/35] acpi: Support generation of I2C descriptor

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 11/35] acpi: Support generation of I2C descriptor > > Add a function to write a GPIO descriptor to the generated ACPI code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix memset of I2C descriptor > > Changes

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Fabio Estevam
Hi Heiko, On Tue, May 19, 2020 at 1:18 AM Heiko Schocher wrote: > I am happy to add boards! > > @Anatolij: Do we have this board in our vlab? Or somehow remote accessible? > > @Fabio: I am sure you have some boards for testing, do you have a CI >setup for them? With the approach to report

RE: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Peng Fan
+Simon > -Original Message- > From: Anatolij Gustschin > Sent: 2020年5月19日 18:27 > To: Peng Fan > Cc: u-boot@lists.denx.de; Ye Li ; Frank Li > ; sba...@denx.de > Subject: Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert > property value > > On Tue, 19 May 2020 10:05:21

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-19 Thread Richard Weinberger
On Sun, May 17, 2020 at 1:28 PM Jupiter wrote: > > Sorry for a bit recalcitrant with the issue of calling 'ubi part" > error -74 -EBADMSG, is it MTD issue or u-boot issue? > > I used Linux kernel 4.19 to flash UBIFS volume images ubi.img to > imx6ull NAND using following command in Linux: > >

<    1   2   3   >