Re: [PATCH] arm: sunxi: dram: restore previous value in DRAM

2022-04-23 Thread Samuel Holland
On 2/13/22 9:10 AM, Andrei Lalaev wrote: > It's better to restore previous value at offset because otherwise the > function can corrupt memory reserved by Linux (e.g. ramoops). With this patch, does ramoops work for you? and on which hardware? If so, I am definitely in favor of applying this patch

Re: [PATCH] clk: sunxi: h6_r: Correct the driver name

2022-04-23 Thread Heinrich Schuchardt
On 4/23/22 23:07, Samuel Holland wrote: H6 is from the sun50i family, not sun6i. Signed-off-by: Samuel Holland Cf. https://linux-sunxi.org/Allwinner_SoC_Family Reviewed-by: Heinrich Schuchardt --- drivers/clk/sunxi/clk_h6_r.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

Pull request for efi-2022-07-rc1-3

2022-04-23 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit faeb5641131ba0bfafa5ed61dd03b98b1f2a5edb: Merge https://gitlab.denx.de/u-boot/custodians/u-boot-pmic (2022-04-22 11:06:38 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2022-07-

[PATCH] clk: sunxi: h6_r: Correct the driver name

2022-04-23 Thread Samuel Holland
H6 is from the sun50i family, not sun6i. Signed-off-by: Samuel Holland --- drivers/clk/sunxi/clk_h6_r.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/clk/sunxi/clk_h6_r.c b/drivers/clk/sunxi/clk_h6_r.c index b9e527e16a..2e0bbaa903 100644 --- a/drivers/clk/sunxi

Re: [PATCH] sunxi: fix initial environment loading without MMC

2022-04-23 Thread Samuel Holland
Hi Andre, On 4/20/22 7:34 PM, Andre Przywara wrote: > Commit e42dad4168fe ("sunxi: use boot source for determining environment > location") changed our implementation of env_get_location() and enabled > it for every board, even those without MMC support (like the C.H.I.P. > boards). However the de

Re: [RESEND PATCH] gpio: rgpio2p: Enhance reading of GPIO pin value

2022-04-23 Thread Christoph Fritz
Hello Stefano, could you please pick up this patch? bye -- Christoph On Tue, 2022-04-05 at 12:29 +0200, Christoph Fritz wrote: > Add support for reading GPIO pin value when function is output. > With this patch applied, gpio toggle command is working. > > Signed-off-by: Christoph Fritz > Rev

Re: [PATCH 6/7] efi_loader: disk: compile efi_disk when CONFIG_BLK

2022-04-23 Thread Heinrich Schuchardt
On 4/21/22 02:30, AKASHI Takahiro wrote: On Wed, Apr 20, 2022 at 09:42:00AM +0200, Heinrich Schuchardt wrote: On 4/19/22 03:01, AKASHI Takahiro wrote: Now we can build efi_loader with block device support (CONFIG_BLK) and without CONFIG_PARTITIONS. So change Makefile. Signed-off-by: AKASHI Tak

Re: [PATCH 7/7] binman: Refuse to replace sections for now

2022-04-23 Thread Alper Nebi Yasak
On 20/04/2022 00:54, Simon Glass wrote: > On Sun, 27 Mar 2022 at 09:32, Alper Nebi Yasak > wrote: >> >> Binman interfaces allow attempts to replace any entry in the image with >> arbitrary data. When trying to replace sections, the changes in the >> section entry's data are not propagated to its

Re: [PATCH] arm: apple: Point stdout-path to framebuffer when keyboard present

2022-04-23 Thread Tom Rini
On Tue, Apr 19, 2022 at 09:20:31PM +0200, Mark Kettenis wrote: > Unless you have a spare Apple Silicon machine, getting access to > the serial port on Apple Silicon machines requires special > hardware. Given that most machines come with a built-in screen > the framebuffer is likely to be the most

Re: [PATCH] arm: apple: Don't clear framebuffer

2022-04-23 Thread Tom Rini
On Tue, Apr 19, 2022 at 09:10:29PM +0200, Mark Kettenis wrote: > Enable CONFIG_NO_FB_CLEAR to preserve the Asahi logo. Since that > logo is drawn on a black background also enable > CONFIG_SYS_WHITE_ON_BLACK such that text printed by U-Boot is still > visible. > > Signed-off-by: Mark Kettenis A

Re: [PATCH v3] Allow colon in PXE bootfile URLs

2022-04-23 Thread Tom Rini
On Sat, Apr 16, 2022 at 11:36:43AM -0400, Lyle Franklin wrote: > - U-boot's PXE flow supports prefixing your bootfile name with an > IP address to fetch from a server other than the DHCP server, > e.g. `hostIPaddr:bootfilename`: > > https://github.com/u-boot/u-boot/commit/a93907c43f847f076d

Re: [PATCH] fdt: Fix TPL SEPARATE_BSS check when locating DTB

2022-04-23 Thread Tom Rini
On Sat, Apr 16, 2022 at 10:12:31AM +1000, Andrew Abbott wrote: > Commit 690af71850149bf242502f688eca80fb302d1f76 changed this condition > from an explicit > > IS_ENABLED(CONFIG_SPL_SEPARATE_BSS) > > to > > CONFIG_IS_ENABLED(SEPARATE_BSS) > > The documentation for CONFIG_IS_ENABLED() in include

Re: [PATCH v2] cmd: adc: Add support for storing ADC result in env variable

2022-04-23 Thread Tom Rini
On Thu, Apr 14, 2022 at 06:52:25PM +0200, Marek Vasut wrote: > Add the ability to save ADC conversion result in an environment > variable. This is useful for further arbitrary processing by the > U-Boot scripts. > > Signed-off-by: Marek Vasut > Cc: Fabrice Gasnier > Cc: Patrice Chotard > Cc: P

Re: [PATCH] fdt: Add -q option to fdt addr for distro_bootcmd

2022-04-23 Thread Tom Rini
On Thu, Mar 31, 2022 at 11:53:22AM +0100, Peter Hoyes wrote: > From: Peter Hoyes > > distro_bootcmd uses this construct a few times to test $fdt_addr_r, > and fall back on $fdtcontroladdr if not set/invalid: > > if fdt addr ${fdt_addr_r}; then > ... > else > ... > fi

[RFC PATCH] spl: spl_nand: Fix bad block handling in fitImage

2022-04-23 Thread Michael Trimarchi
If the fitImage has some bad block in fit image area, the offset must be recalulcated. This should be done always. After implementing it in mxs now is possible to call the function even for that platform Signed-off-by: Michael Trimarchi --- common/spl/spl_nand.c | 5 + 1 file changed, 1 inse

[PATCH 2/2] mtd: nand: mxs_nand_spl: Fix bad block skipping

2022-04-23 Thread Michael Trimarchi
The file was fill of problems and bugs. The bad block are marked beginning of erase block. The first erase block was never checked and the specific function to skip bad block in fit image was never implemented. The imx8mn bootrom seems that not handle the bad block as expected so this needed later

[PATCH 1/2] nand: raw: mxs_nand: Fix specific hook registration

2022-04-23 Thread Michael Trimarchi
Move the hook after nand_scan_tail is called. The hook must be replaced to the mxs specific one but those must to be assignment later in the probe function. With this fix markbad is working Signed-off-by: Michael Trimarchi --- drivers/mtd/nand/raw/mxs_nand.c | 32 ---

[PATCH 0/2] MXS nand fixes in SPL

2022-04-23 Thread Michael Trimarchi
Those patches come after some testing of failing in factory on some unit. We found out that the bootrom imx loader was not able to handling badblock. This can be a limit of the implementation right now in imx8mn. Anyway not all the imx platform has the support of this loader. I found some problems

Re: [PATCH v2 5/6] board: amlogic: jethub j100: enable saradc in dts

2022-04-23 Thread Vyacheslav
22.04.2022 16:26, Neil Armstrong wrote: On 22/04/2022 07:29, Vyacheslav Bocharov wrote: Prepare to use ADC channel 1 to check the hardware revision of the board. Signed-off-by: Vyacheslav Bocharov ---   arch/arm/dts/meson-axg-jethome-jethub-j100.dts | 5 +   1 file changed, 5 insertions(

Re: [PATCH v2 1/6] clk: meson: add minimal driver for axg-ao clocks

2022-04-23 Thread Vyacheslav
23.04.2022 1:55, Sean Anderson wrote: On 4/22/22 1:29 AM, Vyacheslav Bocharov wrote: Add minimal driver AO clocks on meson AXG family. Only ADC related clocks are supported. Signed-off-by: Vyacheslav Bocharov ---   drivers/clk/meson/Makefile |  1 +   drivers/clk/meson/axg-ao.c | 89