Re: [PATCH v3 13/13] test/py: efi_secboot: add a test for verifying with digest of signed image

2020-07-10 Thread Heinrich Schuchardt
On 7/8/20 7:02 AM, AKASHI Takahiro wrote: > Signature database (db or dbx) may have not only certificates that contain > a public key for RSA decryption, but also digests of signed images. > > In this test case, if database has an image's digest (EFI_CERT_SHA256_GUID) > and if the value matches to

Re: SDwire boards?

2020-07-10 Thread Simon Glass
Hi, Just a note that these have arrived. They came in at $21 each. Shipping cost depends on where you are. Please email me if you'd like some. I have at least 40 left. Hopefully we can get some more micro-labs out there soon! https://wiki.tizen.org/SDWire Regards, Simon On Wed, 27 May 2020 at

Re: [PATCH v5 6/6] config: Enable support for the XHCI controller on RPI4 board

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:45PM +0200, Marek Szyprowski wrote: > This requires enabling BRCMSTB PCIe and XHCI_PCI drivers as well as PCI > and USB commands. To get it working one has to call the following commands: > "pci enum; usb start;", thus such commands have been added to the default > "p

Re: [PATCH v5 5/6] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:44PM +0200, 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 limit in the CPU virtual address space in ARM > 32b

Re: [PATCH v5 1/6] powerpc: move ADDR_MAP to Kconfig

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:40PM +0200, Marek Szyprowski wrote: > Move ADDR_MAP related config options from include/configs/*.h to the > proper place in lib/Kconfig. This has been done using > ./tools/moveconfig.py and manual inspection of the generated changes. > This is a preparation to use AD

Re: [PATCH v5 4/6] mmc: bcm283x: fix int to pointer cast

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:43PM +0200, Marek Szyprowski wrote: > From: Seung-Woo Kim > > On build with 32 bit, there is a warning for int-to-pointer-cast. > Fix the int to pointer cast by using uintptr_t. > > Signed-off-by: Seung-Woo Kim > Signed-off-by: Marek Szyprowski Applied to u-boot

Re: [PATCH v5 3/6] arm: provide a function for boards init code to modify MMU virtual-physical map

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:42PM +0200, Marek Szyprowski wrote: > Provide function for setting arbitrary virtual-physical MMU mapping > and cache settings for the given region. > > Signed-off-by: Marek Szyprowski > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.

Re: [PATCH v5 2/6] arm: update comments to the common style

2020-07-10 Thread Tom Rini
On Wed, Jun 03, 2020 at 02:43:41PM +0200, Marek Szyprowski wrote: > Update the comments in include/asm/system.h to the common style. > > Signed-off-by: Marek Szyprowski > Reviewed-by: Tom Rini Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [GIT PULL] rpi-next for v2020.10

2020-07-10 Thread Tom Rini
On Fri, Jul 10, 2020 at 04:50:08PM +0200, Matthias Brugger wrote: > Hi Tom, > > Please have a look on the first pull request for RPi for the future v2020.10 > release. > > With this patches accepted we will have USB support on 64 bit. 32 bit > support is in the works and should land in v2020.10

[PATCH v2 1/1] CI: show skipped Python tests

2020-07-10 Thread Heinrich Schuchardt
Call pytest3 with argument -ra to display the reason why Python tests are skipped. The -r flag displays a test summary info for each test. -ra eliminates this info for passed tests. Pros an cons were discussed in: https://lists.denx.de/pipermail/u-boot/2020-June/417090.html Signed-off-by: Heinri

[PATCH] github: azure: Update our GitHub template to note for CI

2020-07-10 Thread Tom Rini
While the general policy of not taking changes to the project via pull requests directly on GitHub has not changed, it can be useful to submit a PR there in order to trigger a CI run on Azure. These are run automatically and the results are populated back to GitHub. Add a note to the template to

Re: Pull request for UEFI sub-system for efi-2020-10-rc1 (2)

2020-07-10 Thread Tom Rini
On Thu, Jul 09, 2020 at 06:12:02PM +0200, Heinrich Schuchardt wrote: > The following changes since commit 61608f395e7dcb2be6060407a72a1149b046430a: > > Merge branch '2020-07-08-misc-features-and-fixes' (2020-07-08 20:20:24 > -0400) > > are available in the Git repository at: > > https://git

Re: [PATCH 1/3] arm: Add support for Qualcomm IPQ40xx family

2020-07-10 Thread Tom Rini
On Fri, Jul 10, 2020 at 07:31:34PM +0200, Robert Marko wrote: > On Fri, Jul 10, 2020 at 6:57 PM Tom Rini wrote: > > > > On Fri, Jul 10, 2020 at 05:52:51PM +0200, Robert Marko wrote: > > > On Fri, Jul 10, 2020 at 5:25 PM Tom Rini wrote: > > > > > > > On Mon, Jul 06, 2020 at 10:37:54AM +0200, Rober

Re: [PATCH 1/3] arm: Add support for Qualcomm IPQ40xx family

2020-07-10 Thread Robert Marko
On Fri, Jul 10, 2020 at 6:57 PM Tom Rini wrote: > > On Fri, Jul 10, 2020 at 05:52:51PM +0200, Robert Marko wrote: > > On Fri, Jul 10, 2020 at 5:25 PM Tom Rini wrote: > > > > > On Mon, Jul 06, 2020 at 10:37:54AM +0200, Robert Marko wrote: > > > > > > > This introduces initial support for the popul

[PATCH v4 13/14] arm: add support for SoC s5p4418 (cpu) / nanopi2 board

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - SPL not supported yet --> no spl-dir in arch/arm/cpu/armv7/s5p4418/. Appropriate line in Makefile removed. - cpu.c: '#include ' added. - arch/arm/cpu/armv7/s5p4418/u-boot.lds removed, is not required anylonger. - "obj-$(CONFIG_ARCH

[PATCH v4 14/14] arm: add (default) config for nanopi2 board

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - Configuration changed, mainly several "CONFIG_..." moved from s5p4418_nanopi2.h to s5p4418_nanopi2_defconfig and USB related configs removed because USB is not supported yet. - s5p4418_nanopi2.h: "CONFIG_" removed from several s5p4

[PATCH v4 08/14] video: add nexell video driver (soc: displaytop)

2020-07-10 Thread Stefan Bosch
Low level functions for DisplayTop (Display Topology). Signed-off-by: Stefan Bosch --- (no changes since v1) drivers/video/nexell/soc/s5pxx18_soc_disptop.c | 185 ++ drivers/video/nexell/soc/s5pxx18_soc_disptop.h | 385 + drivers/video/nexell/soc/s5pxx18_soc

[PATCH v4 12/14] video: add nexell video driver (display/video driver)

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - nexell_display.c: Changed to DM, CONFIG_FB_ADDR can not be used anymore because framebuffer is allocated by video_reserve() in video-uclass.c. Therefore code changed appropriately. - '#ifdef CONFIG...' changed to 'if (IS_ENABLED(CO

[PATCH v4 11/14] video: add nexell video driver (soc: dpc, makefile)

2020-07-10 Thread Stefan Bosch
Low level functions for DPC (Display Controller) and Makefile for all nexell video low level functions. Signed-off-by: Stefan Bosch --- (no changes since v1) drivers/video/nexell/soc/Makefile | 11 + drivers/video/nexell/soc/s5pxx18_soc_dpc.c | 1569 dri

[PATCH v4 10/14] video: add nexell video driver (soc: lvds, hdmi)

2020-07-10 Thread Stefan Bosch
Low level functions for LVDS and HDMI display interfaces. Signed-off-by: Stefan Bosch --- (no changes since v1) drivers/video/nexell/soc/s5pxx18_soc_hdmi.c | 50 +++ drivers/video/nexell/soc/s5pxx18_soc_hdmi.h | 488 drivers/video/nexell/soc/s5pxx18_soc_lvds.c | 2

[PATCH v4 09/14] video: add nexell video driver (soc: mlc, mipi)

2020-07-10 Thread Stefan Bosch
Low level functions for MLC (Multi Layer Control) and MIPI (Mobile Industry Processor Interface). Signed-off-by: Stefan Bosch --- (no changes since v1) drivers/video/nexell/soc/s5pxx18_soc_mipi.c | 580 + drivers/video/nexell/soc/s5pxx18_soc_mipi.h | 291 + drivers/video/nexell/s

[PATCH v4 07/14] pwm: add driver for nexell

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - Since drivers/pwm/pwm-nexell.c is an adapted version of s5p-common/pwm.c an appropriately changed version of s5p-common/pwm.c is used instead. Therefore arch/arm/mach-s5pc1xx/include/mach/pwm.h copied to arch/arm/mach-nexell/incl

[PATCH v4 04/14] i2c: add nexell driver

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - i2c/nx_i2c.c: Some adaptions mainly because of changes in "struct udevice". - several Bugfixes in nx_i2c.c. - the driver has been for s5p6818 only. Code extended appropriately in order s5p4418 is also working. - "probe_chip" added.

[PATCH v4 06/14] pinctrl: add nexell driver

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - livetree API (dev_read_...) is used instead of fdt one (fdt...). - doc/device-tree-bindings/pinctrl/nexell,s5pxx18-pinctrl.txt added. Signed-off-by: Stefan Bosch --- (no changes since v3) Changes in v3: - Kconfig: Missing helps add

[PATCH v4 03/14] gpio: add nexell driver

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - livetree API (dev_read_...) is used instead of fdt one (fdt...). Signed-off-by: Stefan Bosch --- (no changes since v3) Changes in v3: - Changed to livetree API as proposed by patman: fdtdec_get_int() --> dev_read_s32_default()

[PATCH v4 05/14] mmc: add nexell driver

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - driver changed to DM. - pinctrl-driver/dt is used now instead of configuring the mmc I/O-pins in the mmc-driver. - nexell_dwmmc_ofdata_to_platdata() reworked, i.e. valid default values are used now (where possible) and the appropri

[PATCH v4 02/14] arm: add mach-nexell (all files except header files)

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - SPL not supported yet --> no spl-directory in arch/arm/mach-nexell. Appropriate line in Makefile removed. - clock.c: 'section(".data")' added to declaration of clk_periphs[] and core_hz. - Kconfig: Changes to have a structure like

[PATCH v4 01/14] arm: add mach-nexell (header files)

2020-07-10 Thread Stefan Bosch
Changes in relation to FriendlyARM's U-Boot nanopi2-v2016.01: - DM_VIDEO support (display_dev.h). - boot0.h added, handles NSIH --> tools/nexell obsolete. - gpio.h: Include-path to errno.h changed. Signed-off-by: Stefan Bosch --- (no changes since v2) Changes in v2: - cosmetic: additional GPL l

Please pull u-boot-dm

2020-07-10 Thread Simon Glass
Hi Tom, Results here: https://gitlab.denx.de/u-boot/custodians/u-boot-dm/pipelines/3981 The following changes since commit 506d52308a2f5de48c2b9a08229fee9a0ee2842a: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-x86 (2020-07-09 09:54:22 -0400) are available in the Git repository at:

[PATCH v4 00/14] arm: add support for SoC S5P4418

2020-07-10 Thread Stefan Bosch
This patch adds support for SAMSUNG's/NEXELL's ARM Cortex-A9 based S5P4418 SoC, especially FriendlyARM's NanoPi2 and NanoPC-T2 boards. It is based on the following FriendlyARM's U-Boot version: https://github.com/friendlyarm/u-boot/tree/nanopi2-v2016.01. Main changes in relation to nanopi2-v2016

Re: [PATCH 1/3] arm: Add support for Qualcomm IPQ40xx family

2020-07-10 Thread Tom Rini
On Fri, Jul 10, 2020 at 05:52:51PM +0200, Robert Marko wrote: > On Fri, Jul 10, 2020 at 5:25 PM Tom Rini wrote: > > > On Mon, Jul 06, 2020 at 10:37:54AM +0200, Robert Marko wrote: > > > > > This introduces initial support for the popular Qualcomm > > > IPQ40x8 and IPQ40x9 WiSoC series. > > > > >

[PATCH] doc: driver-model: Update SPI migration status

2020-07-10 Thread Jagan Teki
All SPI drivers are converted to DM_SPI but 3 drivers still operate in nondm mode for SPL due to footprint constraints. Update the migration status for it. Signed-off-by: Jagan Teki --- doc/driver-model/migration.rst | 15 +-- 1 file changed, 1 insertion(+), 14 deletions(-) diff --

Re: [PATCH v3 06/17] efi_loader: add option to initialise EFI subsystem early

2020-07-10 Thread Heinrich Schuchardt
On 10.07.20 03:25, AKASHI Takahiro wrote: > If this option, CONFIG_EFI_SETUP_EARLY, is enabled, the initialisation > of UEFI subsystem will be done as part of U-Boot initialisation. > > Please note that this option won't be enabled explicitly by users, > instead, should be enabled implicitly by oth

Re: [PATCH v3 05/17] dfu: export dfu_list

2020-07-10 Thread Heinrich Schuchardt
On 10.07.20 03:25, AKASHI Takahiro wrote: > This variable will be utilized to enumerate all dfu entities > for UEFI capsule firmware update in a later commit. > > Signed-off-by: AKASHI Takahiro > --- > drivers/dfu/dfu.c | 2 +- > include/dfu.h | 3 +++ > 2 files changed, 4 insertions(+), 1 de

Re: [PATCH v3 04/17] common: update: add a generic interface for FIT image

2020-07-10 Thread Heinrich Schuchardt
On 10.07.20 03:25, AKASHI Takahiro wrote: > The main purpose of this patch is to separate a generic interface for > updating firmware using DFU drivers from "auto-update" via tftp. > > This function will also be used in implementing UEFI capsule update > in a later commit. > > Signed-off-by: AKASHI

Re: [PATCH v4 3/4] rtc: rk8xx: Add base support for the RK808 PMIC RTC

2020-07-10 Thread Suniel Mahesh
On Fri, Jul 10, 2020 at 9:21 PM Jagan Teki wrote: > From: Suniel Mahesh > > Rockchip RK808 PMIC provides an integrated RTC module. It is > commonly used with Rockchip SoCs. Add basic support to access > date and time. > > Signed-off-by: Jagan Teki > Signed-off-by: Suniel Mahesh --- > Change

[PATCH] arm: socfpga: soc64: Initialize timer in SPL only

2020-07-10 Thread Chee Hong Ang
Timer only need to be initialized once in SPL. This patch remove the redundancy of initializing the timer again in U-Boot proper Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/timer_s10.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-socfpga/timer_s1

Re: [PATCH 1/3] arm: Add support for Qualcomm IPQ40xx family

2020-07-10 Thread Robert Marko
On Fri, Jul 10, 2020 at 5:25 PM Tom Rini wrote: > On Mon, Jul 06, 2020 at 10:37:54AM +0200, Robert Marko wrote: > > > This introduces initial support for the popular Qualcomm > > IPQ40x8 and IPQ40x9 WiSoC series. > > > > IPQ40xx series have 4x Cortex A7 ARM-v7A cores. > > Supported are: IPQ4018,

[PATCH] arm: socfpga: soc64: Remove PHY interface setup from misc arch init

2020-07-10 Thread Chee Hong Ang
'dwmac_socfpga' driver will setup the PHY interface during probe. PHY interface setup in arch_misc_init() is no longer needed. Signed-off-by: Chee Hong Ang --- arch/arm/mach-socfpga/misc_s10.c | 84 +--- 1 file changed, 1 insertion(+), 83 deletions(-) diff --git a/ar

[PATCH v4 3/4] rtc: rk8xx: Add base support for the RK808 PMIC RTC

2020-07-10 Thread Jagan Teki
From: Suniel Mahesh Rockchip RK808 PMIC provides an integrated RTC module. It is commonly used with Rockchip SoCs. Add basic support to access date and time. Signed-off-by: Jagan Teki --- Change for v4: - rebase - style fixes - warning fixes drivers/rtc/Kconfig | 8 ++ drivers/rtc/Makef

[PATCH v4 2/4] power: pmic: rk8xx: bind rk808 RTC

2020-07-10 Thread Jagan Teki
From: Suniel Mahesh RK808 PMIC is a multi functional device with an RTC. In order to access RTC, bind to its parent device i.e. RK808 PMIC. Signed-off-by: Suniel Mahesh Reviewed-by: Kever Yang --- Change for v4: - none drivers/power/pmic/rk8xx.c | 19 ++- 1 file changed, 18 i

[PATCH v4 0/4] rtc: Add RK808 PMIC RTC

2020-07-10 Thread Jagan Teki
This series support RK808 PMIC RTC on rk3399. Changes for v4: - rebase on master - cleanup of style changes Any inputs? Jagan. Suniel Mahesh (4): arm: dts: rockchip: rk3399-roc-pc: Add RTC child node for RK808 PMIC power: pmic: rk8xx: bind rk808 RTC rtc: rk8xx: Add base support for the RK

[PATCH v4 1/4] arm: dts: rockchip: rk3399-roc-pc: Add RTC child node for RK808 PMIC

2020-07-10 Thread Jagan Teki
From: Suniel Mahesh Rockchip RK808 PMIC is a multi function device which hosts a Real Time Clock along with other devices. Add a child RTC node so that it can be bound and probed once the master pmic node completes probe. Signed-off-by: Suniel Mahesh Reviewed-by: Kever Yang --- Change for v4:

[PATCH v4 4/4] roc-rk3399-pc: Enable DM RTC

2020-07-10 Thread Jagan Teki
From: Suniel Mahesh Enable rtc driver DM for rk808 PMIC's. Signed-off-by: Suniel Mahesh Signed-off-by: Jagan Teki --- Change for v4: - drop CMD_DATE configs/roc-pc-mezzanine-rk3399_defconfig | 1 + configs/roc-pc-rk3399_defconfig | 1 + 2 files changed, 2 insertions(+) diff --git

Re: [PATCH 3/3] msm_gpio: Add support for Qualcomm IPQ40xx

2020-07-10 Thread Tom Rini
On Mon, Jul 06, 2020 at 10:37:56AM +0200, Robert Marko wrote: > Snapdragon SoCs and IPQ40xx use common TLMM IP, > so existing driver supports IPQ40xx as well. > > So lets simply add a compatible for IPQ40xx. > > Signed-off-by: Robert Marko > --- > doc/device-tree-bindings/gpio/gpio-msm.txt | 3

Re: [PATCH 2/3] msm_serial: Read bit rate register value from DT

2020-07-10 Thread Tom Rini
On Mon, Jul 06, 2020 at 10:37:55AM +0200, Robert Marko wrote: > IPQ40xx and currently supported Snapdragon boards don't use the same one > so enable reading it from DT, if no DT property is found default value > is the same as the previous define. > > Signed-off-by: Robert Marko > --- > doc/dev

Re: [PATCH 1/3] arm: Add support for Qualcomm IPQ40xx family

2020-07-10 Thread Tom Rini
On Mon, Jul 06, 2020 at 10:37:54AM +0200, Robert Marko wrote: > This introduces initial support for the popular Qualcomm > IPQ40x8 and IPQ40x9 WiSoC series. > > IPQ40xx series have 4x Cortex A7 ARM-v7A cores. > Supported are: IPQ4018, IPQ4019, IPQ4028 and IPQ4029. > > IPQ40x8 and IPQ40x9 use the

RE: [PATCH] arm: Add extra boot device (UART) to run Ymodem u-boot.img boot on XEA (imx28)

2020-07-10 Thread Peng Fan
> Subject: [PATCH] arm: Add extra boot device (UART) to run Ymodem > u-boot.img boot on XEA (imx28) > > This commit enables imx28 based XEA board's u-boot.sb (SPL) to download > u-boot proper (u-boot.img) via Ymodem protocol. > > This is extremely useful in the recovery scenario where u-boot.sb i

Re: Question Porting U-Boot to iMX8MN with LPDDR4

2020-07-10 Thread Peng Fan
Sorry for top post and not plain text. connection issue with O365. To JTAG to see whether DRAM is stable. Fire a breakpoint or deadloop in the end of SPL, or beginning of ATF to narrow down which triggers reboot. Yes i.MX8MN has LPDDR version, not upstreamed. Did you try NXP 5.4 Q2 release? 4.19

Re: sunxi: Add SPI Flash support for Orange PI R1

2020-07-10 Thread Peter Robinson
On Fri, Jul 10, 2020 at 3:59 PM Yaroslav Petrov wrote: > > Hi, > > > Thank you very much for your feedback. I try to send it to kernel.org The u-boot,dm-pre-reloc; doesn't go upstream to kernel.org as it's U-Boot specific, look at other examples of *-u-boot.dtsi and the associated commits for tho

Re: sunxi: Add SPI Flash support for Orange PI R1

2020-07-10 Thread Yaroslav Petrov
Hi, Thank you very much for your feedback. I try to send it to kernel.org Mit freundlichen Grüßen, Yaroslav Petrov On 10.07.20 13:31, Peter Robinson wrote: > On Fri, Jul 10, 2020 at 12:15 PM Yaroslav Petrov wrote: >> diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts >> b/arch/arm/dts/s

Question Porting U-Boot to iMX8MN with LPDDR4

2020-07-10 Thread Adam Ford
I have a board already supported in U-Boot based on the i.MX8MM with LPDDR4, and with a simple part change, we have built a Nano version as well with the same LPDDR4. I have mostly copied the imx8mn EVK files to the board support, and migrated the device tree files for my board. I also created a

Re: [GIT PULL] rpi-next for v2020.10

2020-07-10 Thread Matthias Brugger
On 10/07/2020 16:50, Matthias Brugger wrote: Hi Tom, Please have a look on the first pull request for RPi for the future v2020.10 release. With this patches accepted we will have USB support on 64 bit. 32 bit support is in the works and should land in v2020.10 as well. Like many times I

[GIT PULL] rpi-next for v2020.10

2020-07-10 Thread Matthias Brugger
Hi Tom, Please have a look on the first pull request for RPi for the future v2020.10 release. With this patches accepted we will have USB support on 64 bit. 32 bit support is in the works and should land in v2020.10 as well. Please pull :) Regards, Matthias --- The following changes since

Re: [PATCH] board: Add support for iMX8QXP AI_ML board

2020-07-10 Thread Manivannan Sadhasivam
Hi, On Tue, Nov 05, 2019 at 09:02:28PM +0530, Manivannan Sadhasivam wrote: > This commit adds initial board support for iMX8QXP AI_ML board from > Einfochips. This board is one of the 96Boards Consumer Edition and AI > boards of the 96Boards family based on i.MX8QXP SoC from NXP/Freescale. > > Th

[PATCH] ARM: uniphier: remove NAND reset code

2020-07-10 Thread Masahiro Yamada
Now that commit fceee65c878c ("mtd: nand: raw: denali: Assert reset before deassert") added the reset assertion, this code in the board file is unneeded. Signed-off-by: Masahiro Yamada --- arch/arm/mach-uniphier/Makefile | 1 - arch/arm/mach-uniphier/board_init.c | 4 --- arch/arm/mach-un

Re: [PATCH v2 2/2] mtd: nand: raw: denali: Wait for reset completion status

2020-07-10 Thread Masahiro Yamada
On Fri, Jul 10, 2020 at 3:58 PM Ley Foon Tan wrote: > > Fixed delay 200us is not working in certain platforms. Change to > poll for reset completion status to have more reliable reset process. > > Controller will set the rst_comp bit in intr_status register after > controller has completed its res

Re: [PATCH v2 1/2] mtd: nand: raw: denali: Assert reset before deassert

2020-07-10 Thread Masahiro Yamada
On Fri, Jul 10, 2020 at 3:58 PM Ley Foon Tan wrote: > > Always put the controller in reset, then take it out of reset. > This is to make sure controller always in reset state in both SPL and > proper Uboot. > > This is preparation for the next patch to poll for reset completion > (rst_comp) bit af

[PATCH v1 4/4] clk: agilex: Additional membus writes for HPS PLL

2020-07-10 Thread Chee Hong Ang
Add additional membus writes to configure main and peripheral PLL for Agilex's clock manager. Signed-off-by: Chee Hong Ang --- drivers/clk/altera/clk-agilex.c | 94 +++-- 1 file changed, 78 insertions(+), 16 deletions(-) diff --git a/drivers/clk/altera/clk-agilex.c b

[PATCH v1 3/4] clk: agilex: Handle clock configuration differently in SPL and U-Boot proper

2020-07-10 Thread Chee Hong Ang
Since warm reset may optionally set the CLock Manager to'boot mode', the clock driver should always force the Agilex's Clock Manager to 'boot mode' before the clock driver start configuring the Clock Manager in SPL. In SSBL, clock driver will skip the Clock Manager configuration if it's already bei

[PATCH v1 0/4] Agilex's clock driver updates and fixes

2020-07-10 Thread Chee Hong Ang
- Add clock enable. - Add clock source for NAND. - Add additional PLL configurations via mebus writes. - U-Boot proper will not re-initialize the clock again if it's already initialized by SPL. Chee Hong Ang (2): clk: agilex: Handle clock configuration differently in SPL and U-Boot proper

[PATCH v1 1/4] clk: agilex: Add NAND clock support

2020-07-10 Thread Chee Hong Ang
From: Ley Foon Tan Add get nand_clk and nand_x clock support. Signed-off-by: Ley Foon Tan Signed-off-by: Chee Hong Ang --- drivers/clk/altera/clk-agilex.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/clk/altera/clk-agilex.c b/drivers/clk/altera/clk-agilex.c index 0042958f4c.

[PATCH v1 2/4] clk: agilex: Add clock enable support

2020-07-10 Thread Chee Hong Ang
From: Ley Foon Tan Some drivers probing failed if clock enable function is not supported in clock driver. So, add clock enable function to clock driver to solve it. Return 0 (success) for *.enable function because all clocks are enabled by default in clock driver probe. Signed-off-by: Ley Foon

[PATCH v2 3/3] xilinx: versal: Use lowest memory for U-Boot

2020-07-10 Thread Michal Simek
Find and use the lowest memory for Versal to make sure that we keep u-boot as low as possible and never use memory above u-boot's maximum VA mapping. Signed-off-by: Michal Simek --- Changes in v2: - split from generic patch sent in v1 board/xilinx/versal/board.c | 2 +- 1 file changed, 1 inser

[PATCH v2 0/3] xilinx: Enable Versal allocation from low memory

2020-07-10 Thread Michal Simek
Hi, Generated DTS files don't need to have memory nodes sorted out that's why it can happen that the first memory node is not pointing to lowest DDR which is normally used for system boot. That's why new function was introduced which finds out the lowest memory available and use it for u-boot and

[PATCH v2 2/3] lib: fdt: Convert fdtdes_setup_mem..() to livetree API

2020-07-10 Thread Michal Simek
Convert fdtdec_setup_mem_size_base(), get_next_memory_node(), fdtdec_setup_memory_banksize() and fdtdec_setup_mem_size_base_lowest() to livetree API. Tested on ZynqMP zcu104 board. Signed-off-by: Michal Simek --- Changes in v2: - new patch asked by Simon lib/fdtdec.c | 67

[PATCH v2 1/3] lib: fdt: Introduce fdtdec_setup_mem_size_base_lowest()

2020-07-10 Thread Michal Simek
New function should be called from board dram_init() because it initialized gd->ram_base/ram_size. It finds the lowest available memory. On systems with multiple memory nodes finding out the first memory node by fdtdec_setup_mem_size_base() is not enough because this memory can be above actual U-B

Re: sunxi: Add SPI Flash support for Orange PI R1

2020-07-10 Thread Peter Robinson
On Fri, Jul 10, 2020 at 12:15 PM Yaroslav Petrov wrote: > > diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts > b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts > index 3356f4210d..675d38738d 100644 > --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts > +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1

[PATCH] xilinx: Setup bootm variables

2020-07-10 Thread Michal Simek
On system with PL DDR which is placed before PS DDR in DT env_get_bootm_size() and env_get_bootm_low() without specifying bootm_low and bootm_size variables are taking by default gd->bd->bi_dram[0].start and gd->bd->bi_dram[0].size. As you see 0 means bank 0 which doesn't need to be PS ddr and even

[PATCH 3/3] Revert "lib: fdt: Split fdtdec_setup_mem_size_base()"

2020-07-10 Thread Michal Simek
This reverts commit 3ebe09d09a407f93022d945a205c5318239eb3f6. There is no user of this split function that's why remove it. Signed-off-by: Michal Simek --- include/fdtdec.h | 20 lib/fdtdec.c | 11 +++ 2 files changed, 3 insertions(+), 28 deletions(-) diff --g

[PATCH 1/3] ARM: rmobile: Switch back to fdtdec_setup_memory/banksize_fdt()

2020-07-10 Thread Michal Simek
The commit 361377dbdbc9 ("ARM: rmobile: Merge prior-stage firmware DT fragment into U-Boot DT on Gen3") reverted changes introduced by commit 175f5027345c ("ARM: renesas: Configure DRAM size from ATF DT fragment") that's why there is no reason to use functions with _fdt() suffix because parameter i

[PATCH 2/3] Revert "lib: fdt: Split fdtdec_setup_memory_banksize()"

2020-07-10 Thread Michal Simek
This reverts commit 118f4d4559a4386fa87a1e2509e84a1986b24a34. There is no user of this split function that's why remove it. Signed-off-by: Michal Simek --- include/fdtdec.h | 19 --- lib/fdtdec.c | 18 ++ 2 files changed, 6 insertions(+), 31 deletions(-) di

[PATCH 0/3] lib: fdt: Remove two functions from fdtdec.c

2020-07-10 Thread Michal Simek
Hi, Simon has asked in thread https://lists.denx.de/pipermail/u-boot/2020-July/419489.html to move to ofnode functions. And by looking at it I found that fdtdec_setup_memory/banksize_fdt() can be removed to simplify conversion to ofnode. Renesas low level code is simply to convert to previous func

Re: [PATCH v8 1/2] spi: ca_sflash: Add CAxxxx SPI Flash Controller

2020-07-10 Thread Pengpeng Chen
Hi Jagan, You mean it is a generic SPI controller that handles NOR, NAND devices? • Yes so above the single, dual, quad is number lines than number flash chips, isn't it? • Yes. Thanks, PengPeng From: Alex Nemirovsky Date: Thursday, July 9, 2020 at 10:53 PM To: Pengpeng Chen Subject: Fwd: [

sunxi: Add SPI Flash support for Orange PI R1

2020-07-10 Thread Yaroslav Petrov
diff --git a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts index 3356f4210d..675d38738d 100644 --- a/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts +++ b/arch/arm/dts/sun8i-h2-plus-orangepi-r1.dts @@ -65,6 +65,7 @@     aliases {     ethernet1

[PATCH] memsize: Make get_ram_size() work with arbitary RAM size

2020-07-10 Thread Bin Meng
From: Bin Meng Currently get_ram_size() only works with certain RAM size like 1GiB, 2GiB, 4GiB, 8GiB, etc. Chanage the codes to work with any RAM size. Signed-off-by: Bin Meng --- common/memsize.c | 28 +--- 1 file changed, 17 insertions(+), 11 deletions(-) diff --git

[PATCH v4 2/2] configs: ns3: enable tee and optee driver

2020-07-10 Thread Rayagonda Kokatanur
Enable tee and optee drivers. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index 0e078f3244..720

[PATCH v4 1/2] drivers: tee: broadcom: add optee based bnxt fw load driver

2020-07-10 Thread Rayagonda Kokatanur
From: Vikas Gupta Add optee based bnxt fw load driver. bnxt is Broadcom NetXtreme controller Ethernet card. This driver is used to load bnxt firmware binary using OpTEE. Signed-off-by: Vikas Gupta Signed-off-by: Rayagonda Kokatanur --- Changes from v3: -Address review comments from Simon, R

[PATCH v4 0/2] add optee support for broadcom NS3 soc

2020-07-10 Thread Rayagonda Kokatanur
This is fourth patch set series prepared on top of third patch set ("add FIT image support for broadcom NS3 soc"). This patch adds optee support. Changes from v3: -Address review comments from Simon, Rearrange code and remove while loop, Add comments for function. Changes from v2: -Address

[PATCH v2] serial: Fix SIFIVE debug serial dependency

2020-07-10 Thread Michal Simek
The commit 4cc24aeaf420 ("serial: Add missing Kconfig dependencies for debug consoles") has added incorrect dependency for SIFIVE debug uart which should depend on SIFIVE driver instead of PL01x. Fixes: 4cc24aeaf420 ("serial: Add missing Kconfig dependencies for debug consoles") Signed-off-by: Mi

AW: [PATCH 03/16] dh_imx6: Switch to full DM-aware

2020-07-10 Thread Ludwig Zenz
On 7/8/20 3:07 PM, Jagan Teki wrote: > On Mon, Jun 22, 2020 at 3:09 PM 'Ludwig Zenz' via Amarula Linux > wrote: > > > > On 6/13/20 3:55 PM, Jagan Teki wrote: > > > Enable DM_SPI/DM_SPI_FLASH with a related config option. > > > > > > Build fine, but not tested. > > > > Hello, > > > > due to memory

[PATCH v2 11/14] drivers: serial: Make serial_initialize return int

2020-07-10 Thread Ovidiu Panait
serial_initialize is called only during the common init sequence, after relocation (in common/board_r.c). Because it has a void return value, it has to wrapped in initr_serial. In order to be able to get rid of this indirection, make serial_initialize return int. Remove extern from prototype in or

[PATCH v2 13/14] blkcache: Extend blkcache_init to cover CONFIG_NEEDS_MANUAL_RELOC

2020-07-10 Thread Ovidiu Panait
Extend manual relocation of block_cache list pointers to all platforms that enable CONFIG_NEEDS_MANUAL_RELOC. Remove m68k-specific checks and provide a single implementation that adds gd->reloc_off to the pre-relocation pointers. Cc: Angelo Durgehello Reviewed-by: Simon Glass Signed-off-by: Ovid

[PATCH v2 12/14] common/board_r: Remove initr_serial wrapper

2020-07-10 Thread Ovidiu Panait
Remove the initr_serial->serial_initialize indirection and call serial_initialize directly. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag common/board_r.c | 8 +--- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/common/board_r.c b

[PATCH v2 14/14] common/board_r: Move blkcache_init call earlier in the boot sequence

2020-07-10 Thread Ovidiu Panait
blkcache_init manually relocates blkcache list pointers when CONFIG_NEEDS_MANUAL_RELOC is enabled. However, it is called very late in the boot sequence, which could be a problem if previous boot calls execute blkcache operations with the non-relocated pointers. For example, mmc is initialized earli

[PATCH v2 07/14] board_f: ppc: Factor out ppc-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out ppc-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/powerpc/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SY

[PATCH v2 08/14] board_f: sh: Factor out sh-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out sh-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/sh/lib/board.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SRAM_

[PATCH v2 06/14] board_f: m68k: Factor out m68k-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out m68k-specific bdinfo setup to arch_setup_bdinfo in arch/m68k/lib/bdinfo.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SRAM_BASE" arch/m68k/lib/

[PATCH v2 05/14] board_f: Introduce arch_setup_bdinfo initcall

2020-07-10 Thread Ovidiu Panait
Certain architectures (ppc, mips, sh, m68k) use setup board_part1 and setup_board_part2 calls during pre-relocation init to populate gd->bd boardinfo fields. This makes the generic init sequence cluttered with arch-specific ifdefs. In order to clean these arch-specific sequences from generic init,

[PATCH v2 10/14] dm: blk: Use IS_ENABLED() instead of #ifdefs in blk_post_probe

2020-07-10 Thread Ovidiu Panait
Use IS_ENABLED() instead of #ifdef in blk_post_probe function. No functional change intended. Reviewed-by: Simon Glass Signed-off-by: Ovidiu Panait --- v2 updates: - add reviewed-by tag drivers/block/blk-uclass.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dri

[PATCH v2 03/14] Kconfig: Convert CONFIG_SYS_SRAM_SIZE to Kconfig

2020-07-10 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_SIZE to Kconfig. Signed-off-by: Ovidiu Panait --- Kconfig | 7 +++ include/configs/devkit8000.h | 1 - include/configs/pic32mzdask.h | 2 -- include/configs/tricorder.h | 1 - scripts/config_whitelist.txt | 1 - 5 files changed,

[PATCH v2 09/14] board_f: mips: Factor out mips-specific bdinfo setup

2020-07-10 Thread Ovidiu Panait
Factor out mips-specific bdinfo setup from generic init sequence to arch_setup_bdinfo in arch/mips/lib/boot.c. Also, use if(IS_ENABLED()) instead of #ifdef where possible. Signed-off-by: Ovidiu Panait --- v2 updates: - use "if (IS_ENABLED(CONFIG_SYS_HAS_SRAM))" instead of "#ifdef CONFIG_SYS_SR

[PATCH v2 04/14] Kconfig: Remove CONFIG_SYS_SRAM_START

2020-07-10 Thread Ovidiu Panait
Remove ad-hoc CONFIG_SYS_SRAM_START and use CONFIG_SYS_SRAM_BASE instead. Signed-off-by: Ovidiu Panait --- Kconfig | 2 ++ include/configs/devkit8000.h | 3 --- include/configs/tricorder.h | 3 --- scripts/config_whitelist.txt | 1 - 4 files changed, 2 insertions(+), 7 del

[PATCH v2 02/14] Kconfig: Convert CONFIG_SYS_SRAM_BASE to Kconfig

2020-07-10 Thread Ovidiu Panait
This converts ad-hoc CONFIG_SYS_SRAM_BASE to Kconfig. Signed-off-by: Ovidiu Panait --- Kconfig | 5 + include/configs/pic32mzdask.h | 1 - scripts/config_whitelist.txt | 1 - 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Kconfig b/Kconfig index 641748

[PATCH v2 01/14] Kconfig: Introduce CONFIG_SYS_HAS_SRAM

2020-07-10 Thread Ovidiu Panait
In order to be able to replace "#ifdef CONFIG_SYS_SRAM_BASE" sequences with the IS_ENABLED() equivalent, introduce a new boolean Kconfig option that signals whether the platform has SRAM support. Signed-off-by: Ovidiu Panait --- Kconfig | 11 +++ 1 file changed, 11 insertions(+) diff -

Re: [PATCH v4 2/5] rk3399: spl: Print SPL banner after relocation

2020-07-10 Thread Jagan Teki
Hi Kever, On Sun, Jun 28, 2020 at 8:26 AM Kever Yang wrote: > > Hi Jagan, > > On 2020/6/18 下午11:39, Jagan Teki wrote: > > Usually printing the SPL banner varies between architecture > > or board codes. > > - Some would print before relocation at the end board_init_f > >for making sure all ini

[PATCH v3 2/3] board: ns3: add FIT image its file

2020-07-10 Thread Rayagonda Kokatanur
From: Pramod Kumar Add FIT image its file. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur --- board/broadcom/bcmns3/fit/multi.its | 59 + 1 file changed, 59 insertions(+) create mode 100644 board/broadcom/bcmns3/fit/multi.its diff --git a/board/br

[PATCH v3 3/3] board: ns3: add development keys used in FIT

2020-07-10 Thread Rayagonda Kokatanur
From: Pramod Kumar Add development keys used in FIT. Signed-off-by: Pramod Kumar Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- board/broadcom/bcmns3/fit/keys/dev.crt | 21 +++ board/broadcom/bcmns3/fit/keys/dev.key | 28 ++ 2 files ch

[PATCH v3 0/3] add FIT image support for broadcom NS3 soc

2020-07-10 Thread Rayagonda Kokatanur
This is third patch set series prepared on top of second patch set ("add basic driver support for broadcom NS3 soc"). This patch set enables FIT config and add FIT image its files and keys. Changes from v2: - Rebase on top of second patch set. Changes from v1: -Address self review comments,

[PATCH v3 1/3] configs: ns3: enable FIT config

2020-07-10 Thread Rayagonda Kokatanur
Enable FIT config for NS3. Signed-off-by: Rayagonda Kokatanur Reviewed-by: Simon Glass --- configs/bcm_ns3_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/bcm_ns3_defconfig b/configs/bcm_ns3_defconfig index ab26617158..0e078f3244 100644 --- a/configs/bcm_ns3_defconfig

  1   2   >