Re: [PATCH v7 08/24] efi: Fix ll_boot_init() operation with the app

2021-12-21 Thread Heinrich Schuchardt
On 12/18/21 19:28, Simon Glass wrote: This should return false when the EFI app is running, since UEFI has done the required low-level init. Fix it. Signed-off-by: Simon Glass --- (no changes since v1) include/init.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

Please pull u-boot-marvell/next

2021-12-21 Thread Stefan Roese
Hi Tom, please pull the following Marvell MVEBU related patches into next: - pci_mvebu: Misc improvements and cleanup (Pali) - turris_mox: Remove extra newline after module topology (Marek)

[PATCH 1/1] doc: remove duplicate page inclusion

2021-12-21 Thread Heinrich Schuchardt
doc/usage/index.rst in branch origin/next includes usage/environment twice. Remove the duplicate entry. Signed-off-by: Heinrich Schuchardt --- Hello Tom, this seems to be merge error. We need this patch to build 'make htmldocs'. Please, apply to origin/next without further pull request. Best

Re: [PATCH u-boot-marvell 04/10] pci: pci_mvebu: Replace MBUS_PCI_*_SIZE by resource_size()

2021-12-21 Thread Stefan Roese
On 11/11/21 16:35, Marek Behún wrote: From: Pali Rohár Use more appropriate resource_size() function when working with data in struct resource. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Applied to u-boot-marvell/next Thanks, Stefan --- drivers/pci/pci_mvebu.c | 12

Re: [PATCH u-boot-marvell 08/10] pci: pci_mvebu: Remove unused DECLARE_GLOBAL_DATA_PTR

2021-12-21 Thread Stefan Roese
On 11/11/21 16:35, Marek Behún wrote: From: Pali Rohár The global data pointer is not used in this driver, remove it's declaration. Signed-off-by: Pali Rohár Signed-off-by: Marek Behún Applied to u-boot-marvell/next Thanks, Stefan --- drivers/pci/pci_mvebu.c | 3 --- 1 file changed,

Re: [PATCH v7 09/24] efi: Add a few comments to the stub

2021-12-21 Thread Heinrich Schuchardt
On 12/18/21 19:28, Simon Glass wrote: Comment some functions that need more information. Signed-off-by: Simon Glass --- (no changes since v6) Changes in v6: - Fix comment style in setup_info_table() lib/efi/efi_stub.c | 22 ++ 1 file changed, 22 insertions(+) diff

Re: [PATCH u-boot-marvell 10/10] arm: mvebu: turris_mox: Remove extra newline after module topology

2021-12-21 Thread Stefan Roese
On 11/11/21 16:35, Marek Behún wrote: From: Marek Behún Remove extra newline after module topology is printed. Signed-off-by: Marek Behún Applied to u-boot-marvell/next Thanks, Stefan --- board/CZ.NIC/turris_mox/turris_mox.c | 3 --- 1 file changed, 3 deletions(-) diff --git

Re: [PATCH u-boot-marvell 03/10] pci: pci_mvebu: Move setup for BAR[0] where other BARs are setup

2021-12-21 Thread Stefan Roese
On 11/11/21 16:35, Marek Behún wrote: From: Pali Rohár Function mvebu_pcie_setup_wins() sets up all other BARs, so move setup of BAR[0] to this function to have common code at one place. In the past, commit 193a1e9f196b ("pci: pci_mvebu: set BAR0 after memory space is set") moved setup of

[PATCH 1/1] efi: fix typo in description of struct efi_entry_hdr

2021-12-21 Thread Heinrich Schuchardt
Add missing colon. Signed-off-by: Heinrich Schuchardt --- include/efi.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/efi.h b/include/efi.h index 0ec5913ddd..1432038838 100644 --- a/include/efi.h +++ b/include/efi.h @@ -321,7 +321,7 @@ struct efi_info_hdr { *

Re: [PATCH 0/3] Apple M1 power management controller support

2021-12-21 Thread Mark Kettenis
> From: Jaehoon Chung > Date: Tue, 21 Dec 2021 08:00:38 +0900 Hello Jaehoon, > Dear Mark, > > On 12/7/21 4:03 AM, Mark Kettenis wrote: > > This series adds support for the power management controller found on > > Apple SoCs based on the device tree bindings submitted to upstream > > Linux.

Re: [PATCH u-boot-marvell 00/10] PCI mvebu and aardvark changes

2021-12-21 Thread Stefan Roese
Hi Pali, On 12/20/21 14:30, Pali Rohár wrote: On Saturday 18 December 2021 14:53:52 Stefan Roese wrote: Hi Pali, On 12/16/21 11:28, Pali Rohár wrote: On Wednesday 15 December 2021 09:10:50 Stefan Roese wrote: Hi Pali, On 12/13/21 11:27, Pali Rohár wrote: On Monday 13 December 2021

Re: [PATCH 3/4] Convert CONFIG_TIMESTAMP to Kconfig

2021-12-21 Thread Simon Glass
Hi Sean, On Sat, 18 Dec 2021 at 08:16, Sean Anderson wrote: > > On 12/18/21 10:08 AM, Simon Glass wrote: > > This converts the following to Kconfig: > > CONFIG_TIMESTAMP > > > > Signed-off-by: Simon Glass > > --- > > [...] > > > diff --git a/net/Kconfig b/net/Kconfig > > index

[PATCH 2/3] misc: atsha204a: add delay after sending the message

2021-12-21 Thread Adrian Fiergolski
Once request is sent, and before receiving a response, the delay is required. This patch fixes missing delay for before first response try. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 3/3] misc: atsha204a: fix i2c address readout from DTS

2021-12-21 Thread Adrian Fiergolski
This patch replaces use fdtdec_get_addr with recommended fdtdec_get_addr_size_auto_parent. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index

[PATCH 0/3] misc: atsha204a: bug fixes

2021-12-21 Thread Adrian Fiergolski
Series of patches fixing atsha204a driver. Partially inspired by Enclustra's repo [1]. [1] https://github.com/enclustra-bsp/xilinx-uboot Adrian Fiergolski (3): misc: atsha204a: return timeout from wakeup function misc: atsha204a: add delay after sending the message misc: atsha204a: fix

[PATCH 1/3] misc: atsha204a: return timeout from wakeup function

2021-12-21 Thread Adrian Fiergolski
If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. Signed-off-by: Adrian Fiergolski --- drivers/misc/atsha204a-i2c.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/misc/atsha204a-i2c.c b/drivers/misc/atsha204a-i2c.c index

[PATCH u-boot-marvell 01/16] tools: kwbimage: Mark all local functions as static

2021-12-21 Thread Pali Rohár
Mark all local functions as static. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 37 +++-- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index 875f636c7a4f..9f852923dc61 100644

[PATCH u-boot-marvell 00/16] tools: kwbimage: Load address fixes

2021-12-21 Thread Pali Rohár
This patch series fixes generating images in kwbimage format, main fix is setting correct load address of U-Boot SPL. Also it adds support for generating kwbimage config file from existing kwbimage file via dumpimage tool. Pali Rohár (16): tools: kwbimage: Mark all local functions as static

[PATCH u-boot-marvell 14/16] tools: kwbimage/kwboot: Check ext field for non-zero value

2021-12-21 Thread Pali Rohár
Despite the official specification, BootROM does not look at the lowest bit of ext field but rather checks if ext field is non-zero. Moreover original Marvell doimage tool puts into the mhdr->ext field the number of extended headers, so basically it sets ext filed to non-zero value if some

[PATCH u-boot-marvell 12/16] tools: kwbimage: Dump kwbimage config file on '-p -1' option

2021-12-21 Thread Pali Rohár
To regenerate kwbimage from existing image, it is needed to have kwbimage config file. Add a new option to generate kwbimage config file from existing kwbimage when '-p 1' option is given. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 175

[PATCH u-boot-marvell 15/16] tools: kwbimage: Extract main data image without -p arg for dumpimage

2021-12-21 Thread Pali Rohár
When there is no -p argument for dumpimage tool specified, extract the main data image from kwbimage file. This makes dumpimage consistent with other image formats. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 67 +--- 1

[PATCH u-boot-marvell 16/16] tools: kwbimage: Fix mkimage/dumpimage -l argument

2021-12-21 Thread Pali Rohár
Do not check for kwbimage configuration file when just showing information about existing kwbimage file. The check for kwbimage configuration file is required only when creating kwbimage, not when showing information about image or when extracting data from image. With this change, it is

[PATCH u-boot-marvell 05/16] arm: mvebu: Generate kwbimage.cfg with $(call cmd, ...)

2021-12-21 Thread Pali Rohár
Usage of $(call cmd,...) is standard way to call other commands which generate things. It also has the advantage of printing build information in the form KWBCFG arch/arm/mach-mvebu/kwbimage.cfg if verbosity is disabled, and printing the build command otherwise. Note that the '#' character

[PATCH u-boot-marvell 02/16] tools: kwbimage: Deduplicate v1 regtype header finishing

2021-12-21 Thread Pali Rohár
Deduplicate code that finishes OPT_HDR_V1_REGISTER_TYPE header by extracing it into separate function. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 41 ++--- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git

[PATCH u-boot-marvell 04/16] tools: kwbimage: Preserve order of BINARY, DATA and DATA_DELAY commands

2021-12-21 Thread Pali Rohár
Preserve the order of BINARY, DATA and DATA_DELAY commands as they appear in the input file. They may depend on each other. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 58 +++- 1 file changed, 38 insertions(+), 20

[PATCH u-boot-marvell 03/16] tools: kwbimage: Fix generating image with multiple DATA_DELAY commands

2021-12-21 Thread Pali Rohár
Register set header consists of sequence of DATA commands followed by exactly one DATA_DELAY command. Thus if we are generating image with multiple DATA_DELAY commands, we need to create more register set headers. Fix calculation of image size with multiple DATA_DELAY commands and correctly set

[PATCH u-boot-marvell 07/16] tools: kwbimage: Check the return value of image_headersz_v1()

2021-12-21 Thread Pali Rohár
Function image_headersz_v1() may return zero on fatal errors. In this case the function already printed an error message. Check the return value of image_headersz_v1() in kwbimage_generate(), and exit on zero value with EXIT_FAILURE. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún ---

[PATCH u-boot-marvell 10/16] tools: kwbimage: Add missing check for maximal value for DATA_DELAY

2021-12-21 Thread Pali Rohár
Data delay is stored as 8-bit number in kwbimage structure. Ensure the given value is at most 255. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.c | 4 1 file changed, 4 insertions(+) diff --git a/tools/kwbimage.c b/tools/kwbimage.c index

[PATCH u-boot-marvell 09/16] arm: mvebu: Enable BootROM output on A38x

2021-12-21 Thread Pali Rohár
BootROMs on pre-A38x SoCs enabled its output on UART by default, but A38x' BootROM has its output on UART disabled by default. To enable BootROM output on A38x SoC, it is required to set DEBUG flag (which only enables BootROM output and nothing more) in kwbimage. For UART images this DEBUG flag

[PATCH u-boot-marvell 06/16] tools: kwbimage: Add support for specifying LOAD_ADDRESS for BINARY command

2021-12-21 Thread Pali Rohár
ARM executable code included in kwbimage binary header, which is not position independent, needs to be loaded and executed by BootROM at the correct fixed address. Armada BootROMs load kwbimage header (in which the executable code is also stored) at fixed address 0x4000, which seems to be

[PATCH u-boot-marvell 08/16] arm: mvebu: Correctly set LOAD_ADDRESS for U-Boot SPL binary in kwbimage

2021-12-21 Thread Pali Rohár
U-Boot SPL for mvebu platform is not compiled as position independent. Therefore it is required to instruct BootROM to load U-Boot SPL at the correct address. Loading of kwbimage binary code at specific address can be now achieved by the new LOAD_ADDRESS token as part of BINARY command in kwbimage

[PATCH u-boot-marvell 11/16] tools: kwbimage: Show binary image address in mkimage -l, in addition to size

2021-12-21 Thread Pali Rohár
For debugging purposes it is good to know where the binary image would be loaded and also it is needed to know if printed size is image size or the size of header together with image. Make it unambiguous by showoing that printed size is not the size of the whole header, but only the size of

[PATCH u-boot-marvell 13/16] tools: kwbimage: Do not cast const pointers to non-const pointers

2021-12-21 Thread Pali Rohár
Avoid casting const to non-const. Signed-off-by: Pali Rohár Reviewed-by: Marek Behún --- tools/kwbimage.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/kwbimage.h b/tools/kwbimage.h index 8d37357e5abd..c000cba4b8d1 100644 --- a/tools/kwbimage.h +++

[PATCH] armv8: apple: Disable PSCI reset

2021-12-21 Thread Mark Kettenis
Apple's ARMv8 cores don't implement EL3 and therefore don't provide a PSCI implementation. So don't attempt to use PSCI to reset on machines using Apple SoCs. Signed-off-by: Mark Kettenis --- arch/arm/cpu/armv8/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH 1/4] udoo_neo: Call gpio_request()

2021-12-21 Thread Peter Robinson
Calling gpio_request() prior to its usage is now mandatory. This fixes the following GPIO errors: gpio@20a8000: set_dir_flags: error: gpio GPIO4_16 not reserved gpio@20a8000: set_dir_flags: error: gpio GPIO4_13 not reserved gpio@20a8000: set_dir_flags: error: gpio GPIO4_0 not reserved

Re: [PATCH 4/6] udoo: Adjust the SD card device numbering

2021-12-21 Thread Peter Robinson
On Sat, Dec 18, 2021 at 9:10 PM Fabio Estevam wrote: > > After the conversion to DM the SD card shows up as 'mmc 2' > device. > > Adjust the 'mmcdev' and the distro command 'func' accordingly. > > Signed-off-by: Fabio Estevam Reviewed-by: Peter Robinson > --- > configs/udoo_defconfig | 1 + >

extend environment with file

2021-12-21 Thread Frank Wunderlich
Hi, currently i use distroboot on my board which sets some environment-variables, some other (memory addresses) were set in my soc-specific header file (include/configs/rk3568_common.h). But distroboot is a bit too limited for my needs (no tftp, no script, ...), so imho i need to use the

[PATCH u-boot-marvell 6/9] pci: pci_mvebu: Split initialization of PCIe ports into 3 phases

2021-12-21 Thread Pali Rohár
In first phase just parse DT properties and fill struct mvebu_pcie. In second phase setup all PCIe links (without enabling them). And in the last third phase enable all PCIe links and create UCLASS_PCI device for each one. Because parsing of DT is done before UCLASS_PCI is created, we cannot use

[PATCH u-boot-marvell 9/9] arm: mvebu: a38x: serdes: Move non-serdes PCIe code to pci_mvebu.c

2021-12-21 Thread Pali Rohár
As explained in commit 3bedbcc3aa18 ("arm: mvebu: a38x: serdes: Don't overwrite read-only SAR PCIe registers") it is required to set Maximum Link Width bits of PCIe Root Port Link Capabilities Register depending of number of used serdes lanes. As this register is part of PCIe address space and not

[PATCH u-boot-marvell 4/9] pci: pci_mvebu: Inline mvebu_pcie_port_parse_dt() function

2021-12-21 Thread Pali Rohár
Function mvebu_pcie_port_parse_dt() is called only from mvebu_pcie_of_to_plat() function. Both these function parse DT properties required to setup mvebu pcie. So inline mvebu_pcie_port_parse_dt() function into mvebu_pcie_of_to_plat() to have all code related to parsing DT properties at one place.

[PATCH u-boot-marvell 7/9] pci: pci_mvebu: Wait 100ms for Link Up in mvebu_pcie_probe()

2021-12-21 Thread Pali Rohár
After function mvebu_pcie_probe() returns U-Boot DM expects that PCIe link is already up. In followup patches link initialization will be moved from SPL to proper and therefore explicitly link up delay is required. Delay mvebu_pcie_probe() for 100ms to ensure that PCIe link is up after function

[PATCH u-boot-marvell 8/9] arm: mvebu: Implement simple mvebu-reset driver for enabling/disabling PCIe ports

2021-12-21 Thread Pali Rohár
Enabling and disabling PCIe ports is done via address space of system controller. All 32-bit Armada SoCs use low 4 bits in SoC Control 1 Register for enabling and disabling some or more PCIe ports. Correct mapping needs to be set in particular DTS files. DT API for mvebu-reset is prepared for

Re: [PATCH v2 2/2] doc: add Arm Juno board documentation

2021-12-21 Thread Sudeep Holla
On Mon, Dec 20, 2021 at 06:12:04PM +, Andre Przywara wrote: > The Juno Arm development board is an open, vendor-neutral, Armv8-A > development platform. > Add documentation that briefly outlines the hardware, and describes > building and installation of U-Boot. > Reviewed-by: Sudeep Holla

Re: [PATCH v2 1/2] doc: Add documentation for the Arm VExpress64 board configs

2021-12-21 Thread Sudeep Holla
On Mon, Dec 20, 2021 at 06:12:03PM +, Andre Przywara wrote: > From: Peter Hoyes > > Create a new documentation section for Arm Ltd boards with a sub-page > for the FVP VExpress64 system. > Reviewed-by: Sudeep Holla -- Regards, Sudeep

[PATCH 3/4] udoo_neo: Fix ethernet

2021-12-21 Thread Peter Robinson
The ethernet has a RMII not RGMII, also needs DM_MDIO and finally initialise it later in the process as it's not needed that early on and not everything is ready so it locks up the device. Signed-off-by: Peter Robinson --- board/udoo/neo/neo.c | 3 ++- configs/udoo_neo_defconfig | 2 +- 2

[PATCH 2/4] udoo_neo: Fixes for booting from the mSD card

2021-12-21 Thread Peter Robinson
This fixes booting from the mSD card from both SPL and when using it for the OS booting. It also cleans up a few mmc booting bits that are no longer needed. Signed-off-by: Peter Robinson --- arch/arm/dts/imx6sx-udoo-neo-u-boot.dtsi | 7 - board/udoo/neo/neo.c | 40

[PATCH 4/4] udoo_neo: Enable support for USB and storage

2021-12-21 Thread Peter Robinson
Enable support for USB and USB storage on the UDOO Neo. Signed-off-by: Peter Robinson --- configs/udoo_neo_defconfig | 7 +++ include/configs/udoo_neo.h | 1 + 2 files changed, 8 insertions(+) diff --git a/configs/udoo_neo_defconfig b/configs/udoo_neo_defconfig index 2a37757100..ca08de1bd4

Re: [PATCH 1/4] udoo_neo: Call gpio_request()

2021-12-21 Thread Fabio Estevam
On Tue, Dec 21, 2021 at 9:32 AM Peter Robinson wrote: > > Calling gpio_request() prior to its usage is now mandatory. > > This fixes the following GPIO errors: > gpio@20a8000: set_dir_flags: error: gpio GPIO4_16 not reserved > gpio@20a8000: set_dir_flags: error: gpio GPIO4_13 not reserved >

Re: [PATCH 2/4] udoo_neo: Fixes for booting from the mSD card

2021-12-21 Thread Fabio Estevam
On Tue, Dec 21, 2021 at 9:32 AM Peter Robinson wrote: > > This fixes booting from the mSD card from both SPL and when > using it for the OS booting. It also cleans up a few mmc > booting bits that are no longer needed. > > Signed-off-by: Peter Robinson Reviewed-by: Fabio Estevam

Re: [PATCH 5/6] udoo: Increase CONFIG_ENV_OFFSET

2021-12-21 Thread Peter Robinson
On Sat, Dec 18, 2021 at 9:10 PM Fabio Estevam wrote: > > Increase CONFIG_ENV_OFFSET to avoid the environment region to > overlap with U-Boot proper. > > Signed-off-by: Fabio Estevam Reviewed-by: Peter Robinson > --- > configs/udoo_defconfig | 2 +- > 1 file changed, 1 insertion(+), 1

Re: [PATCH 6/6] udoo: Select CMD_DM

2021-12-21 Thread Peter Robinson
On Sat, Dec 18, 2021 at 9:10 PM Fabio Estevam wrote: > > CMD_DM is useful for showing the whole DM tree. > > Enable it via "imply CMD_DM". > > Signed-off-by: Fabio Estevam Reviewed-by: Peter Robinson > --- > arch/arm/mach-imx/mx6/Kconfig | 1 + > 1 file changed, 1 insertion(+) > > diff --git

Re: [PATCH 3/4] udoo_neo: Fix ethernet

2021-12-21 Thread Fabio Estevam
On Tue, Dec 21, 2021 at 9:32 AM Peter Robinson wrote: > > The ethernet has a RMII not RGMII, also needs DM_MDIO and finally > initialise it later in the process as it's not needed that early on > and not everything is ready so it locks up the device. > > Signed-off-by: Peter Robinson

Re: [PATCH 4/4] udoo_neo: Enable support for USB and storage

2021-12-21 Thread Fabio Estevam
On Tue, Dec 21, 2021 at 9:33 AM Peter Robinson wrote: > > Enable support for USB and USB storage on the UDOO Neo. > > Signed-off-by: Peter Robinson Reviewed-by: Fabio Estevam

Re: [PATCH u-boot-marvell 00/10] PCI mvebu and aardvark changes

2021-12-21 Thread Pali Rohár
On Tuesday 21 December 2021 09:19:12 Stefan Roese wrote: > Hi Pali, > > On 12/20/21 14:30, Pali Rohár wrote: > > On Saturday 18 December 2021 14:53:52 Stefan Roese wrote: > > > Hi Pali, > > > > > > On 12/16/21 11:28, Pali Rohár wrote: > > > > On Wednesday 15 December 2021 09:10:50 Stefan Roese

[PATCH u-boot-marvell 3/9] pci: pci_mvebu: Fix PCIe MEM and IO resources assignment and mbus mapping

2021-12-21 Thread Pali Rohár
Do not call pci_set_region() for resources which were not properly mapped. This prevents U-Boot to access unmapped memory space. Update MBUS_PCI_MEM_SIZE and MBUS_PCI_IO_SIZE macros to cover all PCIe MEM and IO ranges. Previously these macros covered only address ranges for the first PCIe port.

[PATCH u-boot-marvell 5/9] pci: pci_mvebu: Remove dependency on SOC_REGS_PHY_BASE macro

2021-12-21 Thread Pali Rohár
SoC specific macro SOC_REGS_PHY_BASE is used for two things: * calculation of base PCIe port address * filling PCIe register with address of internal registers For calculating base PCIe port address use function ofnode_translate_address() which translates DT "assigned-addresses" to final PCIe

[PATCH u-boot-marvell 1/9] arm: mvebu: Convert board_pex_config() to CONFIG_SPL_BOARD_INIT

2021-12-21 Thread Pali Rohár
The only user of board_pex_config() weak function is A385 controlcenterdc board. It looks like that code in its board_pex_config() function needs to be executed after PCIe link is up. Therefore put this code into spl_board_init() function which is called after a38x serdes initialization, and

[PATCH u-boot-marvell 2/9] board: gdsys: a38x: Enable PCIe link 2 in spl_board_init()

2021-12-21 Thread Pali Rohár
A385 controlcenterdc board does not use PCI DM properly and touches some PCIe devices directly in its board code. This controlcenterdc spl_board_init() function expects that PCIe link is already initialized. Link itself is initialized in a38x serdes code but this will change in future and link

[PATCH u-boot-marvell 0/9] mvebu: Move PCIe code from serdes to PCIe driver

2021-12-21 Thread Pali Rohár
This patch series removes gdsys's board_pex_config() function by converting it to spl_board_init(), adds a new mvebu-reset driver for enabling / disabling PCIe ports and finally moves PCIe code from serdes driver to pci_mvebu.c driver. After all these changes, PCIe link is not initialized in

Re: [PATCH 1/1] doc: remove duplicate page inclusion

2021-12-21 Thread Tom Rini
On Tue, Dec 21, 2021 at 09:00:44AM +0100, Heinrich Schuchardt wrote: > doc/usage/index.rst in branch origin/next includes usage/environment twice. > Remove the duplicate entry. > > Signed-off-by: Heinrich Schuchardt > --- > Hello Tom, > > this seems to be merge error. We need this patch to

Re: [PATCH 1/1] doc: remove duplicate page inclusion

2021-12-21 Thread Tom Rini
On Tue, Dec 21, 2021 at 09:00:44AM +0100, Heinrich Schuchardt wrote: > doc/usage/index.rst in branch origin/next includes usage/environment twice. > Remove the duplicate entry. > > Signed-off-by: Heinrich Schuchardt Applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP

[PATCH 11/11] drivers/usb/gadget/dwc2_udc_otg.c: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- drivers/usb/gadget/dwc2_udc_otg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/gadget/dwc2_udc_otg.c b/drivers/usb/gadget/dwc2_udc_otg.c index 2f31814442..b30604eba0 100644 --- a/drivers/usb/gadget/dwc2_udc_otg.c +++ b/drivers/usb/gadget/dwc2_udc_otg.c @@

Re: [PATCH] udoo_neo: Move to DM for REGUALTOR/PMIC/I2C drivers

2021-12-21 Thread Fabio Estevam
Hi Peter, On Tue, Dec 21, 2021 at 9:17 PM Peter Robinson wrote: > > This moves over the PMIC power init to DM and the associated i2c and > regulator bits. > > Signed-off-by: Peter Robinson > --- > board/udoo/neo/neo.c | 139 +++-- >

[PATCH] udoo_neo: Move to DM for REGUALTOR/PMIC/I2C drivers

2021-12-21 Thread Peter Robinson
This moves over the PMIC power init to DM and the associated i2c and regulator bits. Signed-off-by: Peter Robinson --- board/udoo/neo/neo.c | 139 +++-- configs/udoo_neo_defconfig | 10 +-- include/configs/udoo_neo.h | 5 -- 3 files changed, 15

Re: [PATCH v2 2/2] doc: add Arm Juno board documentation

2021-12-21 Thread Linus Walleij
On Mon, Dec 20, 2021 at 7:12 PM Andre Przywara wrote: > The Juno Arm development board is an open, vendor-neutral, Armv8-A > development platform. > Add documentation that briefly outlines the hardware, and describes > building and installation of U-Boot. > > Signed-off-by: Andre Przywara This

Aw: extend environment with file

2021-12-21 Thread Frank Wunderlich
Hi, as far as i have debugged it: soc-config is in CONFIG_EXTRA_ENV_SETTINGS distroboot (include/config_distro_bootcmd.h) lands in BOOTENV magic is in include/env_default.h where at least CONFIG_EXTRA_ENV_SETTINGS is only mapped if CONFIG_USE_DEFAULT_ENV_FILE is not set, if set a generated

[PATCH 08/11] drivers/core/of_addr.c: Fix spelling of "shouldn't".

2021-12-21 Thread Vagrant Cascadian
--- drivers/core/of_addr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/core/of_addr.c b/drivers/core/of_addr.c index 3fbc0a7afa..431dd4e565 100644 --- a/drivers/core/of_addr.c +++ b/drivers/core/of_addr.c @@ -367,7 +367,7 @@ int of_get_dma_range(const struct

[PATCH 09/11] arch/arm/mach-keystone/ddr3.c: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- arch/arm/mach-keystone/ddr3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-keystone/ddr3.c b/arch/arm/mach-keystone/ddr3.c index 9ee3284156..53117c2695 100644 --- a/arch/arm/mach-keystone/ddr3.c +++ b/arch/arm/mach-keystone/ddr3.c @@ -344,7 +344,7 @@ void

[PATCH 10/11] drivers/ddr/altera/sequencer.c: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- drivers/ddr/altera/sequencer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/ddr/altera/sequencer.c b/drivers/ddr/altera/sequencer.c index 8a016f0628..e402f2929a 100644 --- a/drivers/ddr/altera/sequencer.c +++ b/drivers/ddr/altera/sequencer.c @@ -2770,7 +2770,7

[PATCH 05/11] cmd/Kconfig: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- cmd/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/Kconfig b/cmd/Kconfig index 5b30b13e43..bb11aec9b7 100644 --- a/cmd/Kconfig +++ b/cmd/Kconfig @@ -1012,7 +1012,7 @@ config CMD_IDE select IDE help Provides an 'ide' command which

[PATCH 06/11] drivers/net/fec_mxc.c: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- drivers/net/fec_mxc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c index 40a86a3e12..811bc275c1 100644 --- a/drivers/net/fec_mxc.c +++ b/drivers/net/fec_mxc.c @@ -1465,7 +1465,7 @@ static int fecmxc_probe(struct udevice

[PATCH 07/11] common/fdt_support.c: Fix spelling of "shouldn't".

2021-12-21 Thread Vagrant Cascadian
--- common/fdt_support.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/common/fdt_support.c b/common/fdt_support.c index 8992ac5d3f..a7dbe0efdf 100644 --- a/common/fdt_support.c +++ b/common/fdt_support.c @@ -1407,7 +1407,7 @@ int fdt_get_dma_range(const void *blob, int

Re: [PATCH 1/3] misc: atsha204a: return timeout from wakeup function

2021-12-21 Thread Marek Behún
On Tue, 21 Dec 2021 17:17:20 +0100 Adrian Fiergolski wrote: > If the maximum number of wake-up attempts is exceeded, return -ETIMEDOUT. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

Re: [PATCH 2/3] misc: atsha204a: add delay after sending the message

2021-12-21 Thread Marek Behún
On Tue, 21 Dec 2021 17:17:21 +0100 Adrian Fiergolski wrote: > Once request is sent, and before receiving a response, the delay is required. > This patch fixes missing delay for before first response try. > > Signed-off-by: Adrian Fiergolski Reviewed-by: Marek Behún

Re: [PATCH 0/3] misc: atsha204a: bug fixes

2021-12-21 Thread Marek Behún
On Tue, 21 Dec 2021 10:00:14 -0700 Josh Datko wrote: > Thanks everyone for including me — I don’t have any code comments but I will > say that this i2c driver, with the exception of the i2c default address > (which looks like is being set via the device tree anyway), should also work > with

Re: [PATCH 3/3] misc: atsha204a: fix i2c address readout from DTS

2021-12-21 Thread Marek Behún
On Tue, 21 Dec 2021 17:17:22 +0100 Adrian Fiergolski wrote: > This patch replaces use fdtdec_get_addr with recommended > fdtdec_get_addr_size_auto_parent. And why is that required? If at all, I would rather change it to simple dev_read_addr(). Marek

[PATCH 01/11] arch/arm/mach-bcm283x/msg.c: Fix spelling of "Failed".

2021-12-21 Thread Vagrant Cascadian
--- arch/arm/mach-bcm283x/msg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-bcm283x/msg.c b/arch/arm/mach-bcm283x/msg.c index 01a8ed2a7b..fe243e2dca 100644 --- a/arch/arm/mach-bcm283x/msg.c +++ b/arch/arm/mach-bcm283x/msg.c @@ -194,7 +194,7 @@ int

[PATCH 02/11] drivers/mtd/ubispl/ubispl.c: Fix spelling of "mismatched".

2021-12-21 Thread Vagrant Cascadian
--- drivers/mtd/ubispl/ubispl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mtd/ubispl/ubispl.c b/drivers/mtd/ubispl/ubispl.c index 03b31f002b..b58d8e8d56 100644 --- a/drivers/mtd/ubispl/ubispl.c +++ b/drivers/mtd/ubispl/ubispl.c @@ -953,7 +953,7 @@ retry:

[PATCH 03/11] drivers/usb/musb/musb_udc.c: Fix spelling of "mismatch".

2021-12-21 Thread Vagrant Cascadian
--- drivers/usb/musb/musb_udc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/usb/musb/musb_udc.c b/drivers/usb/musb/musb_udc.c index b9510e3045..2ffcb7caaa 100644 --- a/drivers/usb/musb/musb_udc.c +++ b/drivers/usb/musb/musb_udc.c @@ -269,7 +269,7 @@ static void

[PATCH 04/11] arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c: Fix spelling of "resetting".

2021-12-21 Thread Vagrant Cascadian
--- arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c b/arch/arm/cpu/armv8/fsl-layerscape/fsl_lsch2_serdes.c index 41c89b8904..60769e139e 100644 ---

RE: printf works but how can I make debug() printed to serial port console?

2021-12-21 Thread ckim
As the document said, I tried added "#define DEBUG" in each file but it doesn't work. If I add "#define debug printf" then, of course debug() is printed. -Original Message- From: U-Boot On Behalf Of Chan Kim Sent: Wednesday, December 22, 2021 3:13 PM To: U-Boot Mailing List Subject:

Re: [PATCH v2 1/2] doc: Add documentation for the Arm VExpress64 board configs

2021-12-21 Thread Linus Walleij
On Mon, Dec 20, 2021 at 7:12 PM Andre Przywara wrote: > From: Peter Hoyes > > Create a new documentation section for Arm Ltd boards with a sub-page > for the FVP VExpress64 system. > > Signed-off-by: Peter Hoyes > [Andre: remove Juno stub, RSTify] > Signed-off-by: Andre Przywara Reviewed-by:

printf works but how can I make debug() printed to serial port console?

2021-12-21 Thread Chan Kim
Hello all, I'm trying to boot from RAM using SPL only. (Another scp processor loads the FIT image to the SDRAM before starting u-boot-spl is started) Since the debugger doesn't work yet, I have to rely on prints to debug. The printf works fine (I once asked about initializing serial port

[PATCH] net: phy: add TI DP83869HM ethernet driver

2021-12-21 Thread Christian Gmeiner
From: Dominic Rath This driver is based on an older downstream TI kernel, with changes and cleanups to work with mainline device-tree bindings. Signed-off-by: Dominic Rath Signed-off-by: Christian Gmeiner --- drivers/net/phy/Kconfig | 6 + drivers/net/phy/Makefile