Re: [PATCH 2/2] pinctrl: zynqmp: Add pinctrl driver

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:23 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > Add pinctrl driver for Xilinx ZynqMP SOC. This driver is compatible with > linux device tree parameters for configuring pinmux and pinconf. > > Signed-off-by: Ashok Reddy Soma > Signed-off-by: Michal Simek > -

Re: [PATCH 1/2] pinctrl: Increase length of pinmux status buffer

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:23 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > Xilinx ZynqMP SOC can set 6 parameters for its pins. pinmux status > command will print the status of these parameters for each pin. But > current print buffer length is only 40 characters long, increase it > to

Re: [PATCH 0/3] mmc: zynqmp_sdhci: Driver fixes

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:13 odesílatel Michal Simek napsal: > > Hi, > > we found 3 issues recently with this driver which needs to be fixed. > > Thanks, > Michal > > > Ashok Reddy Soma (3): > mmc: zynq_sdhci: Fix timeout issue > mmc: zynq_sdhci: Change granularity of timeout to 1us > mmc: zynq_sd

[PATCH] arm64: zynqmp: Fix i2c addresses for zynqmp-p-a2197

2022-03-06 Thread Michal Simek
After double checking some i2c addresses are not correct. It is visible from i2c dump ZynqMP> i2c bus Bus 3: i2c@ff02 74: i2c-mux@74, offset len 1, flags 0 Bus 5: i2c@ff02->i2c-mux@74->i2c@0 Bus 6: i2c@ff02->i2c-mux@74->i2c@2 Bus 7: i2c@ff02->i2c-mux@74->i2c@1 Bus 8: i2c@ff

Re: [PATCH 0/4] xilinx: Fru tool update

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:01 odesílatel Michal Simek napsal: > > Hi, > > the first 3 patches are fixes in current fru implementation to make sure > that code is not working with incorrect data or not waste time. > The last patch adds decoder for xilinx multirecord which stores MAC > addresses for DUT. >

Re: [PATCH] Revert "board: zynqmp: Fix for wrong AMS setting by ROM"

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:01 odesílatel Michal Simek napsal: > > From: T Karthik Reddy > > This reverts commit dfbe492edef421de09617dc26805fc428440924e. > Analog bus control register should be programmed in SPL only. This commit > 3414712ba8a ("arm64: zynqmp: Writing correct value to ANALOG_BUS") is >

Re: [PATCH] dm: pinctrl: Use explicit values for enums

2022-03-06 Thread Michal Simek
st 23. 2. 2022 v 15:02 odesílatel Michal Simek napsal: > > From: Ashok Reddy Soma > > Based on discussion at > https://lore.kernel.org/r/20200318125003.ga2727...@kroah.com we got > recommendation to use explicit values for all enums. > > So, add explicit values to all pinctrl related enums for re

[PATCH] MAINTAINERS: Remove duplicated entry for ehci-zynq.c

2022-03-06 Thread Michal Simek
ehci-zynq.c is assigned to Zynq and ZynqMP that's why remove one. Signed-off-by: Michal Simek --- MAINTAINERS | 1 - 1 file changed, 1 deletion(-) diff --git a/MAINTAINERS b/MAINTAINERS index bfddb66abc73..915316a86e95 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -658,7 +658,6 @@ F: drivers/

[PATCH] .mailmap: Fix Heinrich's xypron.g...@gmx.de record

2022-03-06 Thread Michal Simek
There is one issue with Heinrich xypron.g...@gmx.de record which should be specifically grouped with his name. Signed-off-by: Michal Simek --- .mailmap | 1 + 1 file changed, 1 insertion(+) diff --git a/.mailmap b/.mailmap index 36fc1164a2ba..1f88ea953cec 100644 --- a/.mailmap +++ b/.mailmap

Re: [PATCH v2 05/13] event: Add basic support for events

2022-03-06 Thread AKASHI Takahiro
Hi Simon, On Fri, Mar 04, 2022 at 08:43:00AM -0700, Simon Glass wrote: > Add a way to create and dispatch events without needing to allocate > memory. Also add a way to 'spy' on events, thus allowing 'hooks' to be > created. > > Use a linker list for static events, which we can use to replace fun

Re: [PATCH] usb: gadget: ci: Make various ops const

2022-03-06 Thread Marek Vasut
On 3/4/22 23:59, Adam Ford wrote: ci_udc_ops and ci_ep_ops do not change their operations. Mark them as const. Signed-off-by: Adam Ford diff --git a/drivers/usb/gadget/ci_udc.c b/drivers/usb/gadget/ci_udc.c index 542684c1c3..d9a89a17b2 100644 --- a/drivers/usb/gadget/ci_udc.c +++ b/drivers/usb

Re: [PATCH] power: zynqmp: Use zynqmp_pmufw_node() from firmware

2022-03-06 Thread Jaehoon Chung
On 3/1/22 17:10, Michal Simek wrote: > Remove private xpm_configobject[] and use zynqmp_pmufw_node() which > provides the same functionality. > Also add debug messages for easier debugging. > > Fixes: e0283cbdfd49 ("power: zynqmp: Add power domain driver for ZynqMP") > Signed-off-by: Michal Simek

Re: [PATCH] pmic: pca9450: Add PCA9450C compatible string

2022-03-06 Thread Jaehoon Chung
On 2/26/22 12:37, Marek Vasut wrote: > Add DT compatible string for PCA9450C PMIC. This is a variant of the > PCA9450 PMIC with 6 A dual-phase buck regulator and 3 A buck regulator, > and is software-wise compatible with the PCA9450B. This variant of the > PCA9450 is designed for use as companion P

Re: [PATCH 2/3] power: pmic: Provide DM_PMIC support for tps65217 driver

2022-03-06 Thread Jaehoon Chung
On 2/22/22 17:03, Lukasz Majewski wrote: > The tps65217 PMIC driver is used with am335x SoC based designs. > > It is used in the SPL (MLO) as well, so the DM conversion only is > for u-boot proper. > > This driver only allows simple reading/writing/dumping of the content > of its registers and re

Re: [PATCH 1/3] power: Rename CONFIG_POWER_TPS65217 with CONFIG_PMIC_TPS65217

2022-03-06 Thread Jaehoon Chung
On 2/22/22 17:03, Lukasz Majewski wrote: > Up till now the CONFIG_POWER_TPS65217 has been defined in several header > files for am335x SoC. > > This patch renames it to CONFIG_PMIC_TPS65217, which better reflects the > role of this IC circuit. > > Signed-off-by: Lukasz Majewski Reviewed-by: Jae

[PATCH] arm: kirkwood: Sheevaplug : Use Marvell uclass mvgbe and PHY driver for Ethernet

2022-03-06 Thread Tony Dinh
The Globalscale Technologies Sheevaplug board has the network chip Marvell 88E1116R. Use uclass mvgbe and the compatible driver M88E1310 driver to bring up Ethernet. - Currently, CONFIG_RESET_PHY_R symbol is used in arch/arm/mach-kirkwood/include/mach/config.h for all Kirkwood boards with mv883111

Re: [PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Tony Dinh
Hi Pali, I have an observation, which is not related to this patch. But about the kwboot options changes in general, I hope it is OK to mention it here. Before the changes you've made to solve the problem with the -b option, I can do this: kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.kwb But now,

RE: [EXT] Re: [PATCH v8 01/15] crypto/fsl: Add support for CAAM Job ring driver model

2022-03-06 Thread ZHIZHIKIN Andrey
Hello Stefano, > -Original Message- > From: U-Boot On Behalf Of Stefano Babic > Sent: Thursday, March 3, 2022 4:30 PM > To: Gaurav Jain ; Stefano Babic ; u- > b...@lists.denx.de; Marek Vasut > Cc: Fabio Estevam ; Peng Fan ; Simon > Glass > ; Priyanka Jain ; Ye Li > ; > Horia Geanta ; J

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Simon Glass
Hi Pali, On Sun, 6 Mar 2022 at 08:25, Pali Rohár wrote: > > On Sunday 06 March 2022 07:42:03 Simon Glass wrote: > > Yes let's go with that. > > Done, I sent final version of the patch. > > > > > > > > > Second thing is that CONFIG_VIDEO_LOGO is broken and does not > > > > > > > > work even it >

Re: [PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Simon Glass
Hi Pali, On Sun, 6 Mar 2022 at 08:09, Pali Rohár wrote: > > Mechanically convert video_hw_init() function to UCLASS_VIDEO probe > callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO. > > As framebuffer base address is setup by the bootloader which loads U-Boot, > set it into plat->base. A

Re: Pull request: u-boot-sunxi/master for v2022.04

2022-03-06 Thread Tom Rini
On Sun, Mar 06, 2022 at 12:38:40AM +, Andre Przywara wrote: > Hi Tom, > > please pull the master branch from u-boot-sunxi, containing some fixes > for 2022.04, for the newly merged F1C100 SoC: Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Pali Rohár
On Sunday 06 March 2022 07:42:03 Simon Glass wrote: > Yes let's go with that. Done, I sent final version of the patch. > > > > > > > Second thing is that CONFIG_VIDEO_LOGO is broken and does not > > > > > > > work even it > > > > > > > is enabled in config file. I do not know why too. > > > > >

[PATCH] Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Pali Rohár
Mechanically convert video_hw_init() function to UCLASS_VIDEO probe callback and replace CONFIG_CFB_CONSOLE by CONFIG_DM_VIDEO. As framebuffer base address is setup by the bootloader which loads U-Boot, set it into plat->base. And do not allocate framebuffer in video_post_bind function when base a

Re: [PATCH v2] binman: support mkimage separate files

2022-03-06 Thread Peter Geis
On Sat, Mar 5, 2022 at 10:08 PM Simon Glass wrote: > > Hi Peter, Good Morning, > > On Fri, 4 Mar 2022 at 12:56, Peter Geis wrote: > > > > mkimage has the ability to process two files at the same time. > > This is necessary for rk356x support as both TPL and SPL need to be > > hashed individuall

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Simon Glass
Hi Pali, On Sun, 6 Mar 2022 at 07:17, Pali Rohár wrote: > > On Sunday 06 March 2022 05:51:34 Simon Glass wrote: > > Hi Pali, > > > > On Sun, 6 Mar 2022 at 04:51, Pali Rohár wrote: > > > > > > PING? > > > > > > On Thursday 17 February 2022 13:20:43 Pali Rohár wrote: > > > > On Thursday 17 Februar

Re: [PATCH] sunxi: fix build when CONFIG_UART0_PORT_F is selected

2022-03-06 Thread Icenowy Zheng
在 2022-03-05星期六的 21:33 +,Andre Przywara写道: > On Sat,  5 Mar 2022 00:06:01 +0800 > Icenowy Zheng wrote: > > Hi Icenowy, > > > Currently CONFIG_UART0_PORT_F will forbid the build of sunxi-mmc > > driver, > > which leads calls to it in board/sunxi/board.c a undefined > > reference. > > > > Gua

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Pali Rohár
On Sunday 06 March 2022 05:51:34 Simon Glass wrote: > Hi Pali, > > On Sun, 6 Mar 2022 at 04:51, Pali Rohár wrote: > > > > PING? > > > > On Thursday 17 February 2022 13:20:43 Pali Rohár wrote: > > > On Thursday 17 February 2022 09:53:39 Anatolij Gustschin wrote: > > > > Hi Pali, > > > > > > > > On

Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-03-06 Thread Tom Rini
On Sun, Mar 06, 2022 at 12:50:24PM +0100, Pali Rohár wrote: > On Friday 21 January 2022 16:21:33 Tom Rini wrote: > > On Fri, Jan 14, 2022 at 06:34:43PM +0100, Pali Rohár wrote: > > > > > If image backend provides verify_header callback then call it after > > > writing > > > image to disk. This en

Re: [PATCH v3 00/31] Initial implementation of standard boot

2022-03-06 Thread Simon Glass
Hi Michael, On Sun, 6 Mar 2022 at 04:03, Michael Walle wrote: > > Hi Simon, > > Am 2022-03-06 04:08, schrieb Simon Glass: > > On Thu, 20 Jan 2022 at 11:16, Simon Glass wrote: > >> On Thu, 20 Jan 2022 at 01:38, Michael Walle wrote: > >> > Am 2022-01-19 15:56, schrieb Simon Glass: > >> > > On Wed

Re: [PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Marek Behún
On Sun, 6 Mar 2022 13:39:07 +0100 Pali Rohár wrote: > Call kwboot_open_tty() which baudrate value which was specified at the with > command line by option -B. This function returns error if baudrate is not > supported by selected tty device. > > Initial baudrate for ima

Re: [PATCH] tools: kwboot: Allow to specify custom baudrate only in supported operations

2022-03-06 Thread Marek Behún
On Sun, 6 Mar 2022 13:38:30 +0100 Pali Rohár wrote: > Custom baudrate different than 115200 may be specified only when kwboot is > not going to send boot/debug message pattern or when it is going to send > boot message pattern with image file (in which case baudrate change happens > after sendin

[PATCH v4 19/33] bootstd: Add a bootmeth command

2022-03-06 Thread Simon Glass
Add a 'bootmeth' command to handle listing and ordering of boot methods. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Move bootmeth ordering into the uclass cmd/Kconfig| 11 + cmd/Makefile | 1 + cmd/bootmeth.c | 113 ++

[PATCH v4 25/33] bootstd: Add a system bootdev for strange boot methods

2022-03-06 Thread Simon Glass
Some boot methods don't act on a single bootdev but instead do their own thing. An example is EFI bootmgr which scan various devices using its own logic. Add a bootdev to handle this. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add a log category boot/Makefile

[PATCH v4 23/33] bootstd: Add an implementation of distro PXE boot

2022-03-06 Thread Simon Glass
Add a bootmeth driver which handles distro boot from a network device, so we can boot a bootflow using this commonly used mechanism. In effect, this provides the same functionality as the 'pxe' command and shares the same code. But the interface into it is via a bootmeth. For now this requires th

[PATCH v4 10/33] dm: blk: Add a function to return the device type

2022-03-06 Thread Simon Glass
Use the uclass name to get the device type for a block device. Signed-off-by: Simon Glass --- Changes in v4: - Use new sphynx Return style drivers/block/blk-uclass.c | 7 +++ include/blk.h | 8 2 files changed, 15 insertions(+) diff --git a/drivers/block/blk-uclass.c

[PATCH v4 33/33] bootstd: doc: Add documentation

2022-03-06 Thread Simon Glass
Add documentation for this feature, including the commands and full devicetree bindings. Signed-off-by: Simon Glass --- Changes in v4: - Update docs for typos that have been fixed Changes in v3: - Update docs for "bootmeths" and "boot_targets" env vars MAINTAINERS |

[PATCH v4 31/33] bootstd: Add tests for bootstd including all uclasses

2022-03-06 Thread Simon Glass
Add a set of combined tests for the bootdev, bootflow and bootmeth commands, along with associated functionality. Expand the sandbox console-recording limit so that these can work. These tests rely on a filesystem script which is not yet added to the Python tests. It is included here as a shell s

[PATCH v4 21/33] bootstd: mmc: Add a bootdev driver

2022-03-06 Thread Simon Glass
Add a bootdev driver for MMC. It mostly just calls the bootdev helper function. Add a function to obtain the block device for an MMC controller. Fix up the comment for mmc_get_blk_desc() while we are here. Signed-off-by: Simon Glass --- Changes in v4: - Use new Return style in function comment

[PATCH v4 24/33] bootstd: Add an implementation of EFI boot

2022-03-06 Thread Simon Glass
Add a bootmeth driver which handles EFI boot, using EFI_LOADER. In effect, this provides the same functionality as the 'bootefi' command and shares the same code. But the interface into it is via a bootmeth, so it does not require any special scripts, etc. For now this requires the 'bootefi' comm

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Simon Glass
Hi Pali, On Sun, 6 Mar 2022 at 04:51, Pali Rohár wrote: > > PING? > > On Thursday 17 February 2022 13:20:43 Pali Rohár wrote: > > On Thursday 17 February 2022 09:53:39 Anatolij Gustschin wrote: > > > Hi Pali, > > > > > > On Wed, 16 Feb 2022 21:42:19 +0100 > > > Pali Rohár p...@kernel.org wrote: >

[PATCH v4 27/33] bootstd: Add a sandbox bootmeth driver

2022-03-06 Thread Simon Glass
Add a bootmeth driver for sandbox, used for testing. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Add a log category boot/Kconfig| 7 + boot/Makefile | 1 + boot/bootmeth_sandbox.c | 69 + 3 files cha

[PATCH v4 32/33] bootstd: Add setup for the bootflow tests

2022-03-06 Thread Simon Glass
We need to create a disk image with a partition table and a DOS-format filesystem containing a few files. Provide a fallback binary for CI since it does not seem able to detect the loopback partitions. Add this to a dm_init test so that it happens when needed. Signed-off-by: Simon Glass --- (no

[PATCH v4 30/33] bootstd: usb: Add a bootdev driver

2022-03-06 Thread Simon Glass
Add a bootdev driver for USB host. It can use the distro boot mechanism to locate a file, or any other available bootmeth. Signed-off-by: Simon Glass --- (no changes since v1) common/usb_storage.c | 12 +++ drivers/usb/host/Makefile | 4 +++ drivers/usb/host/usb_bootdev.c |

[PATCH v4 28/33] bootstd: sandbox: Add a hostfs bootdev

2022-03-06 Thread Simon Glass
It is helpful to be able to try out bootstd on sandbox, using host files. This is easier than using a block device, which must have a filesystem, partition table, etc. Add a new driver which provides this feature. For now it is not used in tests, but it is likely to be useful. Add notes in the de

[PATCH v4 22/33] bootstd: ethernet: Add a bootdev driver

2022-03-06 Thread Simon Glass
Add a bootdev driver for Ethernet. It can use the PXE boot mechanism to locate a file, added later. Signed-off-by: Simon Glass --- (no changes since v1) MAINTAINERS | 1 + net/Kconfig | 9 + net/Makefile | 1 + net/eth-uclass.c | 8 net/eth_bootdev.c | 101 ++

[PATCH v4 15/33] bootstd: Add the bootmeth uclass and helpers

2022-03-06 Thread Simon Glass
A bootmeth is a method of locating an operating system. For now, just add the uclass itself. Drivers for particular bootmeths are added later. If no bootmeths devices are included in the devicetree, create them automatically. This avoids the need for boilerplate in the devicetree files. Signed-of

[PATCH v4 16/33] bootstd: Add support for bootflows

2022-03-06 Thread Simon Glass
Add support for bootflows, including maintaining a list of them and iterating to find them. Signed-off-by: Simon Glass --- Changes in v4: - Show the bootmeth name when booting - Use new Return style in function comments Changes in v3: - Explain why it is OK to use "?" as an unknown bootflow sta

[PATCH v4 17/33] bootstd: Add a bootdev command

2022-03-06 Thread Simon Glass
Add a 'bootdev' command to handle listing and selection of bootdevs. Disable standard boot for a few boards which otherwise run out of space. Signed-off-by: Simon Glass --- (no changes since v3) Changes in v3: - Use separate Kconfig options for each command MAINTAINERS

[PATCH v4 14/33] bootstd: Add the bootdev uclass

2022-03-06 Thread Simon Glass
A 'bootdev' is a device which can be used to boot an operating system. It is a child of the media device (e.g. MMC) which handles reading files from that device, such as a bootflow file. Add a uclass for bootdev and the various helpers needed to make it work. Also add a binding file, empty for now

[PATCH v4 13/33] bootstd: Add the bootstd uclass and core implementation

2022-03-06 Thread Simon Glass
The 'bootstd' device provides the central information about U-Boot standard boot. Add a uclass for bootstd and the various helpers needed to make it work. Also add a binding file. Signed-off-by: Simon Glass --- Changes in v4: - NULL-terminate the default prefix list - Use new Return style in fu

[PATCH v4 12/33] bootstd: Add the concept of a bootflow

2022-03-06 Thread Simon Glass
A bootflow encapsulates the process used to boot an operating system. It typically has a control file (such as extlinux.conf) and information about which 'bootdev' it came from. Add the header file for this first, since it is needed by all other files. Signed-off-by: Simon Glass --- Changes in

[PATCH v4 11/33] fs: Add a function to set the filesystem type

2022-03-06 Thread Simon Glass
When sandbox is used with hostfs we won't have a block device, but still must set up the filesystem type before any filesystem operation, such as loading a file. Add a function to handle this. Signed-off-by: Simon Glass --- Changes in v4: - Add new patch with a function to set the filesystem typ

[PATCH v4 08/33] test: fastboot: Avoid using mmc1

2022-03-06 Thread Simon Glass
The bootflow tests need to use an MMC with an associated backing file containing a filesystem. Update the fastboot tests to cope with this. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/fastboot.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/dm/fa

[PATCH v4 09/33] test: dm: Restart USB before assuming it is stopped

2022-03-06 Thread Simon Glass
Update the blk test to stop USB first, in case another test has started it. Signed-off-by: Simon Glass --- (no changes since v1) test/dm/blk.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/test/dm/blk.c b/test/dm/blk.c index deccf05289..b5957a20fb 100644 --- a/test/dm/blk.c +++ b/t

[PATCH v4 06/33] dm: core: Rename and fix uclass_get_by_name_len()

2022-03-06 Thread Simon Glass
It seems that namelen is more common in U-Boot. Rename this function to fit in better. Also fix a bug where it breaks the operation of uclass_get_by_name() and add a test. Signed-off-by: Simon Glass Reported-by: Patrick Delaunay Reported-by: Tim Harvey --- Changes in v4: - Correct bug in this

[PATCH v4 07/33] dm: core: Allow finding a uclass device by partial name

2022-03-06 Thread Simon Glass
In some cases two devices are related and the only way to tell is to check that the names partially patch. Add a way to check this without needing to create a new string for the comparison. Fix the comment for device_find_child_by_namelen() while we are here. Signed-off-by: Simon Glass --- Chan

[PATCH v4 04/33] lib: Fix a few bugs in trailing_strtoln()

2022-03-06 Thread Simon Glass
At present this has a minor bug in that it reads the byte before the start of the string, if it is empty. Also it doesn't handle a non-numeric prefix which is only one character long. Fix these bugs with a reworked implementation. Add a test for the second case. The first one is hard to test. Sig

[PATCH v4 05/33] lib: Add a way to find the postiion of a trailing number

2022-03-06 Thread Simon Glass
At present it is not possible to find out which part of the string is the number part and which is before it. Add a new variant which provides this feature, so we can separate the two in the caller. Signed-off-by: Simon Glass --- Changes in v4: - Use new Return style in function comments Change

[PATCH v4 03/33] lib: Correct comment formatting to avoid sphinx problems

2022-03-06 Thread Simon Glass
Tweak a few comments to kep sphinx happy, in case we want to include this file one day. Also fix the 'exxamine' typo. Patch-notes: This uses: sed -i 's/@param \(\S*\)\s*/@\1: /' include/vsprintf.h to convert the @param to the new format. Signed-off-by: Simon Glass --- Changes in v4: - Add

[PATCH v4 02/33] test: Add tests for trailing_strtol()

2022-03-06 Thread Simon Glass
This function currently has no tests. Add some. Signed-off-by: Simon Glass --- Changes in v4: - Use new Return style in function comments include/vsprintf.h | 4 ++-- test/str_ut.c | 19 +++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/include/vsprintf.

[PATCH v4 01/33] lib: Move string tests to the string module

2022-03-06 Thread Simon Glass
A few string tests were added to the print module by mistake. Move them. Signed-off-by: Simon Glass --- Changes in v4: - Correct the commit tag test/print_ut.c | 40 test/str_ut.c | 40 2 files changed, 40 inse

[PATCH v4 00/33] Initial implementation of standard boot

2022-03-06 Thread Simon Glass
The bootflow feature provide a built-in way for U-Boot to automatically boot an Operating System without custom scripting and other customisation. This is called 'standard boot' since it provides a standard way for U-Boot to boot a distro, without scripting. It introduces the following concepts:

[PATCH] tools: kwboot: Check if baudrate value is supported before sending image

2022-03-06 Thread Pali Rohár
Call kwboot_open_tty() which baudrate value which was specified at the command line by option -B. This function returns error if baudrate is not supported by selected tty device. Initial baudrate for image transfer is always 115200, so call kwboot_tty_change_baudrate() with value 115200 immediatel

[PATCH] tools: kwboot: Allow to specify custom baudrate only in supported operations

2022-03-06 Thread Pali Rohár
Custom baudrate different than 115200 may be specified only when kwboot is not going to send boot/debug message pattern or when it is going to send boot message pattern with image file (in which case baudrate change happens after sending kwbimage header). BootROM detects boot/debug message pattern

Re: [PATCH] WIP: Nokia RX-51: Convert to CONFIG_DM_VIDEO

2022-03-06 Thread Pali Rohár
PING? On Thursday 17 February 2022 13:20:43 Pali Rohár wrote: > On Thursday 17 February 2022 09:53:39 Anatolij Gustschin wrote: > > Hi Pali, > > > > On Wed, 16 Feb 2022 21:42:19 +0100 > > Pali Rohár p...@kernel.org wrote: > > > > > --- > > > I had to comment "return -ENOSPC;" in video-uclass.c b

Re: [PATCH v2] tools: mkimage: Call verify_header after writing image to disk

2022-03-06 Thread Pali Rohár
On Friday 21 January 2022 16:21:33 Tom Rini wrote: > On Fri, Jan 14, 2022 at 06:34:43PM +0100, Pali Rohár wrote: > > > If image backend provides verify_header callback then call it after writing > > image to disk. This ensures that written image is correct. > > > > Signed-off-by: Pali Rohár > >

Re: [PATCH v3 00/31] Initial implementation of standard boot

2022-03-06 Thread Michael Walle
Hi Simon, Am 2022-03-06 04:08, schrieb Simon Glass: On Thu, 20 Jan 2022 at 11:16, Simon Glass wrote: On Thu, 20 Jan 2022 at 01:38, Michael Walle wrote: > Am 2022-01-19 15:56, schrieb Simon Glass: > > On Wed, 19 Jan 2022 at 01:09, Michael Walle wrote: > >> > >> > >> > The bootflow feature pro