RE: [PATCH] configs: layerscape: Disable the EFI_LOADER feature

2021-07-26 Thread Z.Q. Hou
Hi Tom, > -Original Message- > From: Tom Rini > Sent: 2021年7月26日 20:29 > To: Z.Q. Hou > Cc: Michael Walle ; Heinrich Schuchardt > ; u-boot@lists.denx.de; Priyanka Jain > > Subject: Re: [PATCH] configs: layerscape: Disable the EFI_LOADER feature > > On Mon, Jul 26, 2021 at 07:37:53AM

Re: [PATCH 22/33] net: Drop DM_PCI check from designware driver

2021-07-26 Thread Ramon Fried
On Mon, Jul 26, 2021 at 4:38 PM Simon Glass wrote: > > We don't need this check anymore since when PCI is enabled, driver model > is always used. > > Drop it. > > Signed-off-by: Simon Glass > --- > > drivers/net/designware.c | 22 ++ > 1 file changed, 10 insertions(+), 12

Re: [PATCH v6 2/5] net: atheros: Add a check for OF_CONTROL

2021-07-26 Thread Ramon Fried
On Sun, Jul 25, 2021 at 7:14 PM Simon Glass wrote: > > This phy cannot be used when OF_CONTROL is not enabled. A few boards > expect it to build, though, so add a runtime check for this case. > > Signed-off-by: Simon Glass > --- > > Changes in v6: > - Add new patch for atheros > >

[PATCH 4/4] clk: k210: Try harder to get the best config

2021-07-26 Thread Sean Anderson
In some cases, the best config cannot be used because the VCO would be out-of-spec. In these cases, we may need to try a worse combination of r/od in order to find the best representable config. This also adds a few test cases to catch this and other (possible) unlikely errors. Signed-off-by:

[PATCH 3/4] test: dm: k210: Reduce duplication in test cases

2021-07-26 Thread Sean Anderson
Having to copy-paste the same 3 lines makes adding new test cases error-prone. Use a macro. Signed-off-by: Sean Anderson --- test/dm/k210_pll.c | 30 -- 1 file changed, 12 insertions(+), 18 deletions(-) diff --git a/test/dm/k210_pll.c b/test/dm/k210_pll.c index

[PATCH 2/4] k210: clk: Refactor out_of_spec tests

2021-07-26 Thread Sean Anderson
Everything here sits in a while (true) loop. However, this introduces a couple of layers of indentation. We can simplify the code by introducing a single goto instead of using continue/break. This will also make adding loops in the next patch easier. Signed-off-by: Sean Anderson ---

[PATCH 1/4] clk: k210: Fix checking if ulongs are less than 0

2021-07-26 Thread Sean Anderson
Some clock functions return ulong but still have "negative" errors. To deal with this, cast the relevant arguments to long. Fixes: 609bd60b94 ("clk: k210: Rewrite to remove CCF") Reported-by: Coverity Scan Signed-off-by: Sean Anderson --- drivers/clk/clk_kendryte.c | 6 +++--- 1 file changed,

Re: [PATCH v3] qemu-riscv64_smode: fix extlinux (define preboot)

2021-07-26 Thread Leo Liang
On Mon, Jul 26, 2021 at 06:20:17PM +0800, Dimitri John Ledkov wrote: > Commit 37304aaf60bf ("Convert CONFIG_USE_PREBOOT and CONFIG_PREBOOT to > Kconfig") removed preboot commands in RISC-V targets and broke > extlinux support as reported by Fu Wei . > > The patch finishes migration of

Re: [scan-ad...@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

2021-07-26 Thread Sean Anderson
On 7/26/21 10:52 PM, Tom Rini wrote: - Forwarded message from scan-ad...@coverity.com - Date: Tue, 27 Jul 2021 01:10:27 + (UTC) From: scan-ad...@coverity.com To: tom.r...@gmail.com Subject: New Defects reported by Coverity Scan for Das U-Boot Hi, Please find the latest report on

Re: [PATCH v2 0/2] cmd/sbi: add missing SBI information

2021-07-26 Thread Leo Liang
On Mon, Jul 26, 2021 at 08:59:02PM +0800, Heinrich Schuchardt wrote: > The series provides library functions to read > > * SBI implementation version > * machine vendor ID > * machine architecture ID > * machine implementation ID > > and enhances the sbi command to display this information. > >

[scan-ad...@coverity.com: New Defects reported by Coverity Scan for Das U-Boot]

2021-07-26 Thread Tom Rini
- Forwarded message from scan-ad...@coverity.com - Date: Tue, 27 Jul 2021 01:10:27 + (UTC) From: scan-ad...@coverity.com To: tom.r...@gmail.com Subject: New Defects reported by Coverity Scan for Das U-Boot Hi, Please find the latest report on new defect(s) introduced to Das U-Boot

Re: Help with u-boot when using the eMMC card in DDR mode

2021-07-26 Thread Jaehoon Chung
On 7/26/21 5:36 PM, Abder wrote: > Hi Jaehoon, > This is the output with MMC_TRACE enabled > > U-Boot >mmc dev 2 > blk_find_device: if_type=6, devnum=2: us...@02198000.blk, 6, 2 > ofnode_read_u32: vmmc-supply: 0x33 (51) > ofnode_read_u32: vqmmc-supply: 0x33 (51) > clock is disabled (0Hz) >

Re: [PATCH] configs: khadas-vim*: Enable SMBIOS

2021-07-26 Thread Art Nikpal
Got it, thanks! patches already resend with new subject On Mon, Jul 26, 2021 at 3:37 PM Neil Armstrong wrote: > > Hi, > > Subject should be: "[PATCH] configs: Enable SMBIOS for Khadas VIM boards" > > with that: > Reviewed-by: Neil Armstrong > > On 15/07/2021 07:00, Artem Lapkin wrote: > >

Re: [PATCH] dts: khadas vim series: Use devicetree for SMBIOS settings

2021-07-26 Thread Art Nikpal
Got it, thanks! patches already resend with new subject On Mon, Jul 26, 2021 at 3:37 PM Neil Armstrong wrote: > > Hi, > > Subject should be: "[PATCH] ARM: dts: meson: Use devicetree for SMBIOS > settings for Khadas VIM boards" > > with that: > Reviewed-by: Neil Armstrong > > On 15/07/2021

Re: [PATCH 18/33] pci: msc01: Drop use of DM_PCI

2021-07-26 Thread Daniel Schwierzeck
Am Montag, den 26.07.2021, 07:34 -0600 schrieb Simon Glass: > Now that DM_PCI is always enabled we don't need to check it. Drop > this > old code. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci_msc01.c | 64 - > > 1 file changed, 64

Re: [PATCH 17/33] pci: gt64120: Drop use of DM_PCI

2021-07-26 Thread Daniel Schwierzeck
Am Montag, den 26.07.2021, 07:34 -0600 schrieb Simon Glass: > Now that DM_PCI is always enabled we don't need to check it. Drop > this > old code. > > Signed-off-by: Simon Glass > --- > > drivers/pci/pci_gt64120.c | 64 --- > > 1 file changed, 64

[PATCH] configs: Enable SMBIOS for Khadas VIM boards

2021-07-26 Thread Artem Lapkin
Enable configs to support SMBIOS for all Khadas VIM boards Reviewed-by: Neil Armstrong Signed-off-by: Artem Lapkin --- configs/khadas-vim2_defconfig | 2 ++ configs/khadas-vim3_defconfig | 2 ++ configs/khadas-vim3l_defconfig | 2 ++ configs/khadas-vim_defconfig | 2 ++ 4 files changed, 8

[PATCH] ARM: dts: meson: Use devicetree for SMBIOS settings for Khadas VIM boards

2021-07-26 Thread Artem Lapkin
Khadas vim series: Use devicetree for SMBIOS settings Add settings and enable the default sysinfo driver so that these can come from the device tree. Reviewed-by: Neil Armstrong Signed-off-by: Artem Lapkin --- .../meson-g12b-a311d-khadas-vim3-u-boot.dtsi | 23 +++

Re: [PATCH 15/33] ppc: malta: Drop use of DM_PCI

2021-07-26 Thread Daniel Schwierzeck
Am Montag, den 26.07.2021, 07:34 -0600 schrieb Simon Glass: > Now that DM_PCI is always enabled we don't need to check it. Drop > this > old code. > > Signed-off-by: Simon Glass > --- > > board/imgtec/malta/malta.c | 67 > -- > 1 file changed, 67

[ANN] U-Boot v2021.10-rc1 released

2021-07-26 Thread Tom Rini
Hey all, It's release day, and here's v2021.10-rc1. There's a few more platform pull requests I would like to see come in, but I think we're overall in good shape. With v2021.10, that means that the migration deadline for DM watchdog will have gone two years past deadline. In this case, In

RISC-V Microconference Accepted into 2021 Linux Plumbers Conference

2021-07-26 Thread Atish Patra
The CFP for topic proposals for the RISC-V micro conference is open now. Please submit it as soon as possible. Here is the announcement. https://www.linuxplumbersconf.org/blog/2021/index.php/2021/07/26/risc-v-microconference-accepted-into-2021-linux-plumbers-conference/ FYI: The Linux plumbers

[PATCH] board: ti: k2g: Program PadConfig_202 before locking RSTMUX8

2021-07-26 Thread Suman Anna
The PADCONFIG_202 register (0x02621328) is affected by the locking of the RSTMUX8 register (0x02620328), and so cannot be configured in kernel. This has been confirmed as a hardware bug and affects all K2G SoCs. Setup the pinmux for this pin before locking the RSTMUX8 register to allow the ICSS1

Re: [PATCH 7/7] mmc: zynq_sdhci: Use set_control_reg from sdhci.c

2021-07-26 Thread Jaehoon Chung
On 7/24/21 5:10 PM, Ashok Reddy Soma wrote: > Since set_control_reg is available in sdhci.c, use it and remove > arasan_sdhci_set_control_reg(). > > Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung > --- > > drivers/mmc/zynq_sdhci.c | 21

Re: [PATCH 6/7] mmc: zynq_sdhci: Wait till sd card detect state is stable

2021-07-26 Thread Jaehoon Chung
On 7/24/21 5:10 PM, Ashok Reddy Soma wrote: > From: T Karthik Reddy > > As per SD spec when SD host controller is reset, it takes 1000msec > to detect the card state. In case, if we enable the sd bus voltage & > card detect state is not stable, then host controller will disable > the sd bus

Re: [PATCH 5/7] mmc: zynq_sdhci: Change variable deviceid to node_id

2021-07-26 Thread Jaehoon Chung
On 7/24/21 5:10 PM, Ashok Reddy Soma wrote: > Change deviceid to node_id in arasan_zynqmp_dll_reset() and also in > tapdelay related static inline functions to reflect proper name and > for consistency. > > Signed-off-by: Ashok Reddy Soma Reviewed-by: Jaehoon Chung Best Regards, Jaehoon Chung

Re: [PATCH 4/7] mmc: zynq_sdhci: Move setting tapdelay code to driver

2021-07-26 Thread Jaehoon Chung
On 7/24/21 5:10 PM, Ashok Reddy Soma wrote: > tap_delays.c just has calls to xilinx_pm_request() for setting tapdelays. > Simply move these calls to zynq_sdhci.c and make them static inline. > Similarly zynqmp_tap_delay.h also has call to xilinx_pm_request() for > dll reset. Do the same for this

Re: [PATCH 3/7] mmc: zynq_sdhci: Use xilinx pm request instead of mmio_write

2021-07-26 Thread Jaehoon Chung
Hi, On 7/24/21 5:10 PM, Ashok Reddy Soma wrote: > Currently xilinx sdhci driver is using zynqmp_mmio_write() to set > tapdelay values. Use xilinx_pm_request() using appropriate arguments > to set input/output tapdelays for zynqmp. Where tapdelay setting is > done by firmware. Host driver should

Re: [PATCH v2 7/9] Make EFI_LOADER depend on DM and OF_CONTROL

2021-07-26 Thread Tom Rini
On Fri, Jul 02, 2021 at 12:36:18PM -0600, Simon Glass wrote: > This feature should never have been made available when driver model > or devicetree are disabled. Add these as conditions, so that we don't > create even more barriers to migration. > > Add a note about the substantial size

Re: [PATCH 0/5] Cleanup MAIN R5F boot from R5 SPL

2021-07-26 Thread Suman Anna
On 7/26/21 4:13 PM, Suman Anna wrote: > Hi Lokesh, > > The following series cleans up the code related to booting of Main > R5FSS0 Core0 from R5 SPL, and moves it to A72 U-Boot on J721E SoCs. > This is no longer supported after the R5 SPL re-architecture that > splits the System Firmware

[PATCH 5/5] configs: j721e_evm_r5: Disable K3 R5F remoteproc

2021-07-26 Thread Suman Anna
The J721E R5 SPL will no longer support booting of the Main R5FSS Core0 after the R5 SPL re-architecture for System Firmware split. The MCU R5F branch-only boot does not use the K3 R5F remoteproc driver, and relies only on the filesystem (FS) support for now. The K3 R5F remoteproc driver is

[PATCH 4/5] arm: dts: k3-j721e-r5: Remove MAIN R5FSS0 cluster from SPL

2021-07-26 Thread Suman Anna
The MAIN R5FSS0 cluster and corresponding nodes are no longer required to be enabled in R5 SPL after removing the support for booting any core from this cluster on R5 SPL. So, remove these from the relevant dts files. This is essentially a revert of the additions done in commit 2984b82b3b76

[PATCH 1/5] arm: mach-k3: j721e: Move booting of Main R5FSS Core0 to A72 U-Boot

2021-07-26 Thread Suman Anna
The Main R5FSS Core0 on J721E SoCs is originally booted from R5 SPL itself to achieve certain product-level early-boot metrics. This is no longer supported after the R5 SPL re-architecture (support merged for v2021.10-rc1). Move the booting of this core altogether from R5 SPL to A72 U-Boot. The

[PATCH 2/5] arm: mach-k3: j721e: Cleanup MAIN R5 boot code from R5 SPL

2021-07-26 Thread Suman Anna
The common J7 specific start_non_linux_remote_cores() override function implements the logic to load and boot the Main R5FSS Core0 from R5 SPL. This won't be supported any more for either J721E or J7200 after the R5 SPL rearchitecture for the System Firmware split into TI Foundation Security

[PATCH 0/5] Cleanup MAIN R5F boot from R5 SPL

2021-07-26 Thread Suman Anna
Hi Lokesh, The following series cleans up the code related to booting of Main R5FSS0 Core0 from R5 SPL, and moves it to A72 U-Boot on J721E SoCs. This is no longer supported after the R5 SPL re-architecture that splits the System Firmware functionality onto two separate processors. This

[PATCH 3/5] arm: mach-k3: Cleanup common start_non_linux_remote_cores()

2021-07-26 Thread Suman Anna
The mach-k3 common code defined a weak start_non_linux_remote_cores() function so that the proper implementation can be plugged in the SoC-specific source files. This won't be needed anymore, so remove the the common code. Signed-off-by: Suman Anna --- arch/arm/mach-k3/common.c | 5 -

[PATCH] board: sl28: drop unneeded and outdated flash partitions

2021-07-26 Thread Michael Walle
This board doesn't use the MTD subsystem in u-boot, thus there is no need to specify the partitions. They are outdated anyway. Just drop them. Signed-off-by: Michael Walle --- arch/arm/dts/fsl-ls1028a-kontron-sl28.dts | 55 --- 1 file changed, 55 deletions(-) diff --git

Re: [PATCH] spi: nxp_fspi: Ensure width is respected in spi-mem operations

2021-07-26 Thread Pratyush Yadav
On 26/07/21 09:35PM, Michael Walle wrote: > Import linux commit 007773e16a6f ("spi: nxp-fspi: Ensure width is > respected in spi-mem operations") to fix SPI access on boards which > don't have all SPI I/O lines connected to the flash. > > Since commit 71025f013ccb ("mtd: spi-nor-core: Rework

[PATCH] spi: nxp_fspi: Ensure width is respected in spi-mem operations

2021-07-26 Thread Michael Walle
Import linux commit 007773e16a6f ("spi: nxp-fspi: Ensure width is respected in spi-mem operations") to fix SPI access on boards which don't have all SPI I/O lines connected to the flash. Since commit 71025f013ccb ("mtd: spi-nor-core: Rework hwcaps selection") u-boot figures out the capabilities

[PATCH] warp: Use the correct symbol for CONFIG_IMX_HAB

2021-07-26 Thread Fabio Estevam
The intention of commit d714a75fd4dc ("imx: replace CONFIG_SECURE_BOOT with CONFIG_IMX_HAB") was to convert from CONFIG_SECURE_BOOT to CONFIG_IMX_HAB, but it replaced with an extra "_" character. Fix it by using the correct CONFIG_IMX_HAB symbol. Fixes: d714a75fd4dc ("imx: replace

Re: [GIT PULL] xilinx patches for v2021.10-rc1

2021-07-26 Thread Tom Rini
On Mon, Jul 26, 2021 at 05:56:22PM +0200, Michal Simek wrote: > Hi Tom, > > please pull the following changes to your tree. I am expecting some > other enhancements to sdhci driver which have been sent by Ashok but I > don't want to delay these changes to come to tree and start to be tested. >

Re: using binman fails boot

2021-07-26 Thread Tim Harvey
On Sat, Jul 24, 2021 at 3:01 PM Simon Glass wrote: > > Hi Tim, > > On Fri, 23 Jul 2021 at 16:52, Tim Harvey wrote: > > > > On Fri, Jul 23, 2021 at 2:41 PM Simon Glass wrote: > > > > > > Hi Tim, > > > > > > On Fri, 23 Jul 2021 at 15:06, Tim Harvey wrote: > > > > > > > > On Thu, Jul 22, 2021 at

Re: [PATCH v2 3/3] binman: Show an error if __image_copy_start is missing

2021-07-26 Thread Tim Harvey
On Sun, Jul 25, 2021 at 9:54 AM Simon Glass wrote: > > Binman needs this symbol to be able to figure out the start of the image. > Detect if it is missing and report an error if any symbols are needed. > > Add more documentation about possible binman warnings. > > Signed-off-by: Simon Glass >

Re: [PATCH v2 2/3] arm: Add an __image_copy_start symbol for ARMv8

2021-07-26 Thread Tim Harvey
On Sun, Jul 25, 2021 at 9:54 AM Simon Glass wrote: > > This symbol is needed for binman to locate the start of the image. Add it. > > Note: the existing line to bring in the .__image_copy_start symbol does > not appear to do anything. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > -

[PATCH] arm: dts: k3-am65: Fix up MCU R5FSS cluster mode back to Split-mode

2021-07-26 Thread Suman Anna
The default U-Boot environment variables and design are all set up to have the MCU R5FSS cluster to be in Split-mode. This is the setting in v2021.01 U-Boot and the dt nodes are synched with the kernel binding property names in commit 468ec2f3ef8f ("remoteproc: k3_r5: Sync to upstreamed kernel DT

[PATCH] sunxi: h3: enable clock support for r_pio gpios

2021-07-26 Thread Manuel Dipolt
This patch enables clock for the r_pio gpios for the h3 Signed-off-by: Manuel Dipolt --- drivers/clk/sunxi/Makefile | 1 + drivers/clk/sunxi/clk_h3-r.c | 51 drivers/gpio/sunxi_gpio.c | 9 +++ 3 files changed, 61 insertions(+) create mode 100644

[GIT PULL] xilinx patches for v2021.10-rc1

2021-07-26 Thread Michal Simek
Hi Tom, please pull the following changes to your tree. I am expecting some other enhancements to sdhci driver which have been sent by Ashok but I don't want to delay these changes to come to tree and start to be tested. Gitlab CI doesn't show any issue. Thanks, Michal The following changes

[PATCH v2 6/6] configs: am64x_evm_*_defconfig: Enable config to support gpt and FDT library overlay

2021-07-26 Thread Aswath Govindraju
Enable config to support gpt command on AM642 evm/sk and enable config for FDT library overlay support Signed-off-by: Aswath Govindraju --- configs/am64x_evm_a53_defconfig | 2 ++ configs/am64x_evm_r5_defconfig | 1 + 2 files changed, 3 insertions(+) diff --git

[PATCH v2 5/6] configs: am64x_evm_*_defconfig: Enable configs to support eMMC boot

2021-07-26 Thread Aswath Govindraju
From: Kishon Vijay Abraham I Enable configs to support eMMC boot. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- configs/am64x_evm_a53_defconfig | 1 + configs/am64x_evm_r5_defconfig | 2 ++ 2 files changed, 3 insertions(+) diff --git

[PATCH v2 4/6] configs: am64x_evm: Move CONFIG_SYS_MMC_ENV_DEV and CONFIG_SYS_MMC_ENV_PART to defconfig files and enable configs to save env in eMMC and FAT write.

2021-07-26 Thread Aswath Govindraju
Kconfig symbols for SYS_MMC_ENV_DEV and SYS_MMC_ENV_PART have been added by commit 7d080773347c1f6e0e896d9284134a2a411155d6. Therefore, move the definitions of configs to corresponding board defconfig files and enable configs to save env in eMMC. Also enable config for FAT write in U-Boot.

[PATCH v2 3/6] configs: am64x_evm_a53_defconfig: Enable configs to support HS200/HS400

2021-07-26 Thread Aswath Govindraju
From: Kishon Vijay Abraham I Enable configs to support HS200/HS400. Signed-off-by: Kishon Vijay Abraham I Signed-off-by: Aswath Govindraju --- configs/am64x_evm_a53_defconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/configs/am64x_evm_a53_defconfig

[PATCH v2 2/6] arch: dts: am642-sk-u-boot: Disable main_sdhci0 DT node and define alias index 1 for main_sdhci1 node

2021-07-26 Thread Aswath Govindraju
A Wilink wireless device is connected to MMCSD0 subsystem and is not supported in U-Boot. Therefore, disable main_sdhci0 device tree node in U-Boot. If main_sdhci0 device tree node is disabled then the the index of main_sdhci1 node becomes 0 which leads to break in boot flow. Therefore, add an

[PATCH v2 1/6] arch: arm: mach-k3: am642_init: Correct the function name spl_boot_mode() to spl_mmc_boot_mode()

2021-07-26 Thread Aswath Govindraju
Function spl_boot_mode() is called in common/spl/spl_mmc.c, to find the boot mode for a given boot device. This function was renamed to spl_mmc_boot_mode() by commit e97590654aea4c964f49bd915543a417d0c76996. Therefore, rename spl_boot_mode to spl_mmc_boot_mode. Fixes: 57dba04afbb7 ("arm:

[PATCH v2 0/6] AM64: Add support for higher speed modes and boot mode in eMMC

2021-07-26 Thread Aswath Govindraju
The following series of patches add support for, - HS200/HS400 speed modes - eMMC boot mode - gpt and FDT library overlay This series of patches, - dependent on https://patchwork.ozlabs.org/project/uboot/list/?series=237442 - applies on top of,

Re: [PATCH 2/2] serial: a37xx: Do not call get_ref_clk() in _debug_uart_init()

2021-07-26 Thread Marek Behun
On Mon, 26 Jul 2021 16:58:04 +0200 Pali Rohár wrote: > On Monday 26 July 2021 16:55:22 Marek Behun wrote: > > On Mon, 26 Jul 2021 14:58:59 +0200 > > Pali Rohár wrote: > > > > > Static inline function _debug_uart_init() should avoid calling external > > > (non-inline) functions. > > > >

Re: [PATCH 1/2] serial: a37xx: Use CONFIG_BAUDRATE for initializing early debug UART

2021-07-26 Thread Marek Behun
On Mon, 26 Jul 2021 14:58:58 +0200 Pali Rohár wrote: > CONFIG_BAUDRATE should be used for setting the baudrate for the early debug > UART. This replaces current hardcoded 115200 value. > > Signed-off-by: Pali Rohár Reviewed-by: Marek Behun

Re: [PATCH 03/33] ppc: Remove UCP1020 board

2021-07-26 Thread Tom Rini
On Mon, Jul 26, 2021 at 07:34:09AM -0600, Simon Glass wrote: > This board has not been converted to CONFIG_DM by the deadline. > Remove it. > > Leave the Kconfig options to avoid warnings on other boards. > > Signed-off-by: Simon Glass Note the big missed migration deadline here is DM_PCI,

[PATCH] configs: am64x_evm_r5_defconfig: Fix CONFIG_SPL_TEXT_BASE to 0x70000000

2021-07-26 Thread Aswath Govindraju
CONFIG_SPL_TEXT_BASE was set to 0x7000 in the commit, "26f32c32b250 configs: am64x_evm_*_defconfig: Rearrange the components in SRAM to satisfy the limitations for USB DFU boot mode". This change seems to have been dropped during a merge commit. Therefore, fix this by setting

Re: [PATCH 2/2] serial: a37xx: Do not call get_ref_clk() in _debug_uart_init()

2021-07-26 Thread Pali Rohár
On Monday 26 July 2021 16:55:22 Marek Behun wrote: > On Mon, 26 Jul 2021 14:58:59 +0200 > Pali Rohár wrote: > > > Static inline function _debug_uart_init() should avoid calling external > > (non-inline) functions. > > Why? Function is called in stage when stack is not fully initialized and

Re: [PATCH 2/2] serial: a37xx: Do not call get_ref_clk() in _debug_uart_init()

2021-07-26 Thread Marek Behun
On Mon, 26 Jul 2021 14:58:59 +0200 Pali Rohár wrote: > Static inline function _debug_uart_init() should avoid calling external > (non-inline) functions. Why?

Re: [PATCH v6 0/5] of-platdata: Avoid building libfdt

2021-07-26 Thread Tom Rini
On Mon, Jul 26, 2021 at 07:45:27AM -0600, Simon Glass wrote: > Hi Tom, > > On Mon, 26 Jul 2021 at 06:09, Tom Rini wrote: > > > > On Sun, Jul 25, 2021 at 09:57:25PM -0600, Simon Glass wrote: > > > Hi Tom, > > > > > > On Sun, 25 Jul 2021 at 14:32, Tom Rini wrote: > > > > > > > > On Sun, Jul 25,

Re: [PATCH] rockchip: Fix u-boot-rockchip.bin build

2021-07-26 Thread Simon Glass
On Sun, 25 Jul 2021 at 08:26, Johan Gunnarsson wrote: > > Currently there are a few arm32 rockchip board configs that don't > generate u-boot-rockchip.bin when running make because CONFIG_BINMAN > is not enabled. This patch changes CONFIG_ARCH_ROCKCHIP to also select > CONFIG_BINMAN if CONFIG_SPL

Re: [PATCH 1/2] GPIO: fxl6408: Add support for FXL6408 GPIO expander

2021-07-26 Thread Simon Glass
Hi Oleksandr, On Sun, 25 Jul 2021 at 16:19, Oleksandr Suvorov wrote: > > Hi Simon, > > On Sun, Jul 25, 2021 at 1:01 AM Simon Glass wrote: > > > > Hi Oleksandr, > > > > On Wed, 21 Jul 2021 at 06:21, Oleksandr Suvorov > > wrote: > > > > > > Initial support for Fairchild's 8 bit I2C gpio expander

Re: [PATCH v6 2/4] rockchip: rk3066: add clock driver for rk3066 soc

2021-07-26 Thread Simon Glass
Hi Paweł, On Sun, 25 Jul 2021 at 08:15, Paweł Jarosz wrote: > > Hi Simon, > > > sorry for late response i was offline a bit > > W dniu 13.07.2021 o 22:17, Simon Glass pisze: > > Hi Paweł, > > > > On Tue, 13 Jul 2021 at 12:59, Paweł Jarosz > > wrote: > >> Add clock driver for rk3066 platform. >

Re: [PATCH v3 2/6] cmd: printf: import busybox-1.33.1 printf.c

2021-07-26 Thread Simon Glass
Hi Roland, On Mon, 26 Jul 2021 at 02:11, Roland Gaudig (OSS) wrote: > > Hi Simon, > > On 23.07.21 21:41, Simon Glass wrote: > > On Fri, 23 Jul 2021 at 06:30, Roland Gaudig > > wrote: > >> > >> From: Roland Gaudig > >> > >> Import printf.c from the Busybox project, which provides Bash like > >>

Re: Debugging dtoc?

2021-07-26 Thread Simon Glass
Hi Tom, On Sun, 25 Jul 2021 at 15:10, Tom Rini wrote: > > So, I'm trying to fix the problem on am335x_evm (and some family > configs) with needing SPL_OF_CONTROL enabled. This is mostly fine just > enabling the option, except on am335x_evm itself, which is the > kitchen-sink config and

Re: [PATCH v6 0/5] of-platdata: Avoid building libfdt

2021-07-26 Thread Simon Glass
Hi Tom, On Mon, 26 Jul 2021 at 06:09, Tom Rini wrote: > > On Sun, Jul 25, 2021 at 09:57:25PM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Sun, 25 Jul 2021 at 14:32, Tom Rini wrote: > > > > > > On Sun, Jul 25, 2021 at 10:13:42AM -0600, Simon Glass wrote: > > > > > > > The original patch of

Re: [PATCH] spl: Align device tree blob address at 8-byte boundary

2021-07-26 Thread Tom Rini
On Mon, Jul 26, 2021 at 09:26:26PM +0800, Bin Meng wrote: > On Wed, Jul 14, 2021 at 5:11 AM Tom Rini wrote: > > > > On Tue, Jul 13, 2021 at 10:35:03PM +0200, Marek Vasut wrote: > > > On 7/13/21 8:11 PM, Tom Rini wrote: > > > > On Tue, Jul 13, 2021 at 07:50:49PM +0200, Marek Vasut wrote: > > > > >

[PATCH 19/33] pci: imx: Drop use of DM_PCI

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- drivers/pci/pcie_imx.c | 81 -- 1 file changed, 81 deletions(-) diff --git a/drivers/pci/pcie_imx.c b/drivers/pci/pcie_imx.c index

[PATCH 09/33] pci: powerpc: Drop old code

2021-07-26 Thread Simon Glass
Drop the old pre-driver model code from these drivers. Signed-off-by: Simon Glass --- arch/powerpc/cpu/mpc83xx/pci.c| 160 - arch/powerpc/cpu/mpc85xx/Makefile | 1 - arch/powerpc/cpu/mpc85xx/pci.c| 191 -- 3 files changed, 352

[PATCH 23/33] pci: imx: Drop DM_PCI check from cpu driver

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Drop it. Signed-off-by: Simon Glass --- arch/arm/mach-imx/cpu.c | 4 include/pci.h | 4 2 files changed, 8 deletions(-) diff --git a/arch/arm/mach-imx/cpu.c b/arch/arm/mach-imx/cpu.c

[PATCH 24/33] pci: arm: mvebu: Drop DM_PCI check from

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Use CONFIG_PCI instead. Signed-off-by: Simon Glass --- arch/arm/mach-mvebu/arm64-common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/arm/mach-mvebu/arm64-common.c

[PATCH 17/33] pci: gt64120: Drop use of DM_PCI

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- drivers/pci/pci_gt64120.c | 64 --- 1 file changed, 64 deletions(-) diff --git a/drivers/pci/pci_gt64120.c b/drivers/pci/pci_gt64120.c index

[PATCH 32/33] pci: Drop DM_PCI

2021-07-26 Thread Simon Glass
This option has not effect now. Drop it, using PCI instead where needed. Signed-off-by: Simon Glass --- arch/Kconfig | 1 - arch/arm/Kconfig | 2 +- arch/arm/mach-imx/mx6/Kconfig| 2 +- arch/mips/Kconfig| 2 +-

[PATCH 26/33] distro_bootcmd: Drop DM_PCI check

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Signed-off-by: Simon Glass --- include/config_distro_bootcmd.h | 5 - 1 file changed, 5 deletions(-) diff --git a/include/config_distro_bootcmd.h b/include/config_distro_bootcmd.h index

[PATCH 25/33] pci: sata_sil: Drop DM_PCI checks

2021-07-26 Thread Simon Glass
We don't need these checks anymore since when PCI is enabled, driver model is always used. Drop them. Signed-off-by: Simon Glass --- drivers/ata/sata_sil.c | 8 drivers/ata/sata_sil.h | 4 2 files changed, 12 deletions(-) diff --git a/drivers/ata/sata_sil.c

[PATCH 18/33] pci: msc01: Drop use of DM_PCI

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- drivers/pci/pci_msc01.c | 64 - 1 file changed, 64 deletions(-) diff --git a/drivers/pci/pci_msc01.c b/drivers/pci/pci_msc01.c index

[PATCH 08/33] ppc: Drop CONFIG_SYS_PCI_SUBSYS_VENDORID

2021-07-26 Thread Simon Glass
This is not used. Drop it. Signed-off-by: Simon Glass --- include/configs/MPC8349EMDS.h | 1 - include/configs/MPC8349EMDS_SDRAM.h | 1 - include/configs/MPC837XERDB.h | 1 - include/configs/MPC8540ADS.h| 1 - include/configs/MPC8560ADS.h| 1 -

[PATCH 30/33] ppc: Drop t4qds and b4860qds references

2021-07-26 Thread Simon Glass
These boards have been removed. Drop the config file and other references. Signed-off-by: Simon Glass --- .azure-pipelines.yml | 4 +- doc/board/freescale/b4860qds.rst | 453 --- doc/board/freescale/index.rst| 1 - include/configs/t4qds.h

[PATCH 33/33] pci: Drop migration method

2021-07-26 Thread Simon Glass
Migration is complete. Drop the message. Signed-off-by: Simon Glass --- doc/develop/driver-model/migration.rst | 9 - 1 file changed, 9 deletions(-) diff --git a/doc/develop/driver-model/migration.rst b/doc/develop/driver-model/migration.rst index 8d0bb7635b5..8bb8601c582 100644 ---

[PATCH 31/33] pci: Drop PCI_INDIRECT_BRIDGE

2021-07-26 Thread Simon Glass
This does not work with driver model so can be removed. Signed-off-by: Simon Glass --- README | 3 -- drivers/pci/Makefile| 1 - drivers/pci/pci_indirect.c | 71 - include/configs/MPC8349EMDS.h | 4 --

[PATCH 28/33] pci: ppc: Drop ftpci100 driver

2021-07-26 Thread Simon Glass
This is not used in U-Boot at present. Drop it and related config options. Signed-off-by: Simon Glass --- arch/nds32/include/asm/arch-ag102/ag102.h | 2 - drivers/pci/Makefile | 1 - drivers/pci/pci_ftpci100.c| 319 --

[PATCH 29/33] ppc: Drop idt8t49n222a_serdes_clk driver

2021-07-26 Thread Simon Glass
This is not used. Drop it. Signed-off-by: Simon Glass --- board/freescale/common/Makefile | 1 - .../common/idt8t49n222a_serdes_clk.c | 208 -- .../common/idt8t49n222a_serdes_clk.h | 106 - 3 files changed, 315 deletions(-) delete mode

[PATCH 27/33] pci: Drop pci_init_board()

2021-07-26 Thread Simon Glass
With the conversion to driver model, this is not needed now. Drop it. Signed-off-by: Simon Glass --- board/cavium/thunderx/thunderx.c | 7 -- board/freescale/mpc8349emds/pci.c| 73 -- board/freescale/mpc837xerdb/Makefile | 1 - board/freescale/mpc837xerdb/pci.c

[PATCH 22/33] net: Drop DM_PCI check from designware driver

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Drop it. Signed-off-by: Simon Glass --- drivers/net/designware.c | 22 ++ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/drivers/net/designware.c

[PATCH 21/33] pci: Drop DM_PCI check from bios_emul

2021-07-26 Thread Simon Glass
We don't need these checks anymore since when PCI is enabled, driver model is always used. Drop them. Signed-off-by: Simon Glass --- drivers/bios_emulator/atibios.c | 98 - drivers/bios_emulator/bios.c| 39 - include/bios_emul.h | 16

[PATCH 20/33] pci: scsi: pci: Drop DM_PCI check from scsi

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Drop it. Signed-off-by: Simon Glass --- drivers/scsi/scsi.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/scsi/scsi.c b/drivers/scsi/scsi.c index ce69750c7ff..d93d2419285 100644 ---

[PATCH 16/33] ppc: socrates: Drop use of DM_PCI

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- board/socrates/socrates.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/board/socrates/socrates.c b/board/socrates/socrates.c index 3444af6a8c7..3ba2fbbd560

[PATCH 15/33] ppc: malta: Drop use of DM_PCI

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- board/imgtec/malta/malta.c | 67 -- 1 file changed, 67 deletions(-) diff --git a/board/imgtec/malta/malta.c b/board/imgtec/malta/malta.c index

[PATCH 14/33] pci: usb: Drop DM_PCI from ohci

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old condition and update the comment. Signed-off-by: Simon Glass --- drivers/usb/host/ohci-hcd.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/usb/host/ohci-hcd.c

[PATCH 13/33] pci: acpi: Drop DM_PCI check from ahci

2021-07-26 Thread Simon Glass
We don't need these checks anymore since when PCI is enabled, driver model is always used. Drop them. Signed-off-by: Simon Glass --- drivers/ata/ahci.c | 55 -- include/ahci.h | 4 2 files changed, 59 deletions(-) diff --git

[PATCH 10/33] pci: freescale: Drop old code

2021-07-26 Thread Simon Glass
Drop this old pre-driver model code. Signed-off-by: Simon Glass --- board/freescale/common/cds_pci_ft.c | 59 -- board/freescale/common/p_corenet/Makefile | 1 - board/freescale/common/p_corenet/pci.c | 25 - board/freescale/mpc8548cds/mpc8548cds.c | 114

[PATCH 12/33] ppc: Drop DM_PCI from config files

2021-07-26 Thread Simon Glass
Now that DM_PCI is always enabled we don't need to check it. Drop this old code. Signed-off-by: Simon Glass --- include/configs/MPC8548CDS.h | 16 include/configs/P1010RDB.h | 28 include/configs/P2041RDB.h | 17 -

[PATCH 11/33] pci: dm: core: Drop DM_PCI check from devfdt_get_addr_pci()

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Signed-off-by: Simon Glass --- drivers/core/fdtaddr.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/core/fdtaddr.c b/drivers/core/fdtaddr.c index b9874c743d1..4ffbd6b2ebc

[PATCH 05/33] pci: Remove guard around compatibility functions

2021-07-26 Thread Simon Glass
This prevents use of IS_ENABLED() in other files. Functions should be visible in headers even if they are not available at link time. Fix it. Signed-off-by: Simon Glass --- include/pci.h | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/include/pci.h b/include/pci.h

[PATCH 07/33] pci: Drop DM_PCI check from pci_common

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Signed-off-by: Simon Glass --- drivers/pci/pci_common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pci/pci_common.c b/drivers/pci/pci_common.c index

[PATCH 03/33] ppc: Remove UCP1020 board

2021-07-26 Thread Simon Glass
This board has not been converted to CONFIG_DM by the deadline. Remove it. Leave the Kconfig options to avoid warnings on other boards. Signed-off-by: Simon Glass --- board/Arcturus/ucp1020/Kconfig | 28 +- board/Arcturus/ucp1020/MAINTAINERS | 7 - board/Arcturus/ucp1020/Makefile

[PATCH 04/33] pci: Drop old code from header file

2021-07-26 Thread Simon Glass
We don't need this code anymore since when PCI is enabled, driver model is always used. Signed-off-by: Simon Glass --- include/pci.h | 60 +++ 1 file changed, 3 insertions(+), 57 deletions(-) diff --git a/include/pci.h b/include/pci.h index

[PATCH 06/33] pci: Drop DM_PCI check from fdtdec

2021-07-26 Thread Simon Glass
We don't need this check anymore since when PCI is enabled, driver model is always used. Sadly this doesn't work with nds32 for some reason to do with the toolchain. Add a work-around for that. Signed-off-by: Simon Glass --- lib/fdtdec.c | 10 -- 1 file changed, 8 insertions(+), 2

[PATCH 02/33] pci: Drop old code from pci command

2021-07-26 Thread Simon Glass
Drop the pre-driver model code from this file. Signed-off-by: Simon Glass --- cmd/pci.c | 212 -- 1 file changed, 212 deletions(-) diff --git a/cmd/pci.c b/cmd/pci.c index e53b7c858c6..8cfa5bbdaa7 100644 --- a/cmd/pci.c +++ b/cmd/pci.c @@

[PATCH 00/33] pci: Drop all pre-driver model code

2021-07-26 Thread Simon Glass
The hard work to actually enable DM_PCI everywhere was done recently. This series attempts to drop most of the code that it no-longer needed now that PCI has been converted to driver model. It also drops the UCP1020 board since it has various unique build issues. It doesn't even support driver

  1   2   >