[PATCH v2] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Marek Vasut
Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") forces '$fdtcontroladdr' DT address as a third parameter of bootm command even if the PXE transfer pulls in a fitImage which contains configuration node with its own DT that is preferrable to be passed to Linux. Limit the

Re: [PATCH V3 2/2] spi: cadence_qspi: use STIG mode for small reads

2022-12-13 Thread Dhruva Gole
Hey Pratyush, Thanks for reviewing. On 13/12/22 05:05, Pratyush Yadav wrote: On 25/11/22 11:29AM, Dhruva Gole wrote: Fix the issue where some flash chips like cypress S25HS256T return the value of the same register over and over in DAC mode. For example in the TI K3-AM62x Processors refer [0]

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Rick Chen
> On 12/13/22 11:24, Tom Rini wrote: > > On Tue, Dec 13, 2022 at 08:42:47AM +0800, Rick Chen wrote: > >> Hi Sean, > >> > >>> On 12/12/22 10:03, Tom Rini wrote: > On Mon, Dec 12, 2022 at 02:45:10PM +0800, Rick Chen wrote: > > Hi Tom > > > >> On Fri, Dec 09, 2022 at 08:48:37AM

Please pull u-boot-x86

2022-12-13 Thread Bin Meng
Hi Tom, This PR includes the following x86 changes for v2023.01 release: - Adjust CONFIG_TEXT_BASE for BayTrail based platforms - 2 cosmetic issue fixes CI result: PASS https://dev.azure.com/bmeng/GitHub/_build/results?buildId=479=results The following changes since commit

Re: [PATCH 4/4] sunxi: move arch timer setup out of board/ directory

2022-12-13 Thread Samuel Holland
Hi Andre, On 12/13/22 18:22, Andre Przywara wrote: > At the moment we have an #ifdef-protected routine in > board/sunxi/board.c, which sets up the arch timer CNTFRQ register, if > that hasn't been done already. > This only applies to ARMv7 SoCs running in secure state, and so is > much better

[RFC PATCH] riscv: cpu: check U-Mode before counteren write

2022-12-13 Thread Nikita Shubin
From: Nikita Shubin The Priv ISA states: "In systems without U-mode, the mcounteren register should not exist." Check U-Mode is present in MISA before writing to counteren, otherwise we endup with Illegal Instruction exception on systems without U-Mode. Also make checking MISA default for

Re: [PATCH 3/4] sunxi: board: annotate #endif lines

2022-12-13 Thread Samuel Holland
On 12/13/22 18:22, Andre Przywara wrote: > The legacy Allwinner code is cluttered with #ifdef's, some of them even > nested, which makes the code hard to read and error prone. > Eventually we will get rid of most of them, but for now let's at least > annotate the #endif lines with the

Re: [PATCH 2/4] sunxi: remove bogus mmc_pinmux_setup() prototype

2022-12-13 Thread Samuel Holland
On 12/13/22 18:22, Andre Przywara wrote: > Since all callers of mmc_pinmux_setup() are located after the definition > of that function, there is no need for a forward declaration (anymore?). > > Remove the prototype along with its #ifdef guards. > > Signed-off-by: Andre Przywara > --- >

Re: [PATCH 1/4] sunxi: remove unused CONFIG_MMC_SUNXI_SLOT

2022-12-13 Thread Samuel Holland
On 12/13/22 18:22, Andre Przywara wrote: > There is a CONFIG_MMC_SUNXI_SLOT definition in our sunxi_common.h config > header, which was used to note the first MMC controller to initialise. > The definition in that header was always set to 0, with no easy way of > overriding this, and certainly

Re: [PATCH] [RFC] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Simon Glass
Hi Marek, On Tue, 13 Dec 2022 at 20:50, Marek Vasut wrote: > > On 12/14/22 05:39, Simon Glass wrote: > > On Tue, 13 Dec 2022 at 12:46, Marek Vasut wrote: > >> > >> Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") > >> forces '$fdtcontroladdr' DT address as a third

Re: [PATCH v2] serial: ns16550: Enable clocks during probe

2022-12-13 Thread Samuel Holland
Hi Johan, On 12/13/22 03:06, Johan Jonker wrote: > Hi Samuel, > > Could you provide an example and or details for which SoC type this is in > mind? This is needed for Allwinner sunxi SoCs, which come out of the boot ROM with all clock gates disabled. Currently, the sunxi SPL board code enables

Re: [PATCH] [RFC] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Marek Vasut
On 12/14/22 05:39, Simon Glass wrote: On Tue, 13 Dec 2022 at 12:46, Marek Vasut wrote: Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") forces '$fdtcontroladdr' DT address as a third parameter of bootm command even if the PXE transfer pulls in a fitImage which

Re: [PATCH v4 1/5] image: Add fallback for fit_config_verify

2022-12-13 Thread Simon Glass
On Mon, 12 Dec 2022 at 11:13, Sean Anderson wrote: > > Add a fallback for this function so it can be used without regard to > whether FIT_SIGNATURE is enabled or not. > > Signed-off-by: Sean Anderson > --- > > Changes in v4: > - New > > include/image.h | 7 +++ > 1 file changed, 7

Re: [PATCH v2 1/3] asm/arch-meson: add missing meson_sm_write_efuse signature

2022-12-13 Thread Simon Glass
Hi Alexey, On Tue, 13 Dec 2022 at 10:32, Alexey Romanov wrote: > > This function can be used by other modules. > > Signed-off-by: Alexey Romanov > --- > arch/arm/include/asm/arch-meson/sm.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/arch/arm/include/asm/arch-meson/sm.h >

Re: [PATCH v2 0/3] arch-meson: introduce efusedump command

2022-12-13 Thread Simon Glass
Hi Alexey, On Tue, 13 Dec 2022 at 10:31, Alexey Romanov wrote: > > Keeping the commands code in an arch/ is not correct. This patchset > moves the meson smc commands from arch/arm/mach-meson to cmd/meson > folder and also adds a new 'efusedump' command with which user can > print efuse memory. >

Re: [PATCH] [RFC] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Simon Glass
On Tue, 13 Dec 2022 at 12:46, Marek Vasut wrote: > > Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") > forces '$fdtcontroladdr' DT address as a third parameter of bootm command > even if the PXE transfer pulls in a fitImage which contains configuration > node with its

Re: [SPAM] [PATCH v5 4/7] rockchip: Support building the all output files in binman

2022-12-13 Thread Simon Glass
Hi Jerome, On Fri, 9 Dec 2022 at 06:55, Jerome Forissier wrote: > > > > On 12/9/22 15:24, Quentin Schulz wrote: > > Hi Simon, > > > > On 12/8/22 18:32, Simon Glass wrote: > >> Hi Xavier, > >> > >> On Fri, 9 Dec 2022 at 03:25, Xavier Drudis Ferran > >> wrote: > >>> > >>> El Thu, Dec 08, 2022 at

Re: [PATCH v3] rtc: add ht1380 driver

2022-12-13 Thread Simon Glass
On Fri, 9 Dec 2022 at 08:15, Sergei Antonov wrote: > > Support Holtek HT1380/HT1381 Serial Timekeeper Chip. It provides seconds > , minutes, hours, day of the week, date, month and year information. > > Datasheet: > https://www.holtek.com.tw/documents/10179/11842/ht1380_1v130.pdf > >

Re: [PATCH v5 1/3] efi_loader: Add SPI I/O protocol support

2022-12-13 Thread Simon Glass
Hi Paul, On Wed, 23 Nov 2022 at 10:50, Paul Barker wrote: > > This addition allows UEFI applications running under u-boot to access > peripherals on SPI busses. It is based on the UEFI Platform > Initialization (PI) Specification, Version 1.7 Errata A (April 2020). > Only the core functionality

Re: [PATCH] x86: Fix i8259 ifdef include guard

2022-12-13 Thread Bin Meng
On Tue, Sep 27, 2022 at 6:23 AM Alistair Delva wrote: > > When building U-Boot with clang, it notices that the i8259.h include > guard does not work correctly due to a typo. Fix it. > > Signed-off-by: Alistair Delva > Cc: Simon Glass > Cc: Bin Meng > Cc: Nick Desaulniers > --- >

Re: [PATCH] x86: cosmetic: Fix a typo in the reserve_arch() comments

2022-12-13 Thread Bin Meng
On Sat, Nov 26, 2022 at 10:46 AM Simon Glass wrote: > > On Thu, 24 Nov 2022 at 04:34, Bin Meng wrote: > > > > It should be fsp_continue(). > > > > Signed-off-by: Bin Meng > > > > --- > > > > arch/x86/cpu/cpu.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > Reviewed-by: Simon

Re: [PATCH 1/5] x86: bayleybay: Adjust CONFIG_TEXT_BASE

2022-12-13 Thread Bin Meng
On Thu, Nov 24, 2022 at 7:33 PM Bin Meng wrote: > > At present U-Boot no longer builds as a complete rom for bayleybay. > > BINMAN .binman_stamp > Wrote map file './rom.map' to show errors > binman: Section '/binman/rom': contents size 0x814706 (8472326) exceeds > section size 0x80

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Rick Chen
Hi Tom, > On Wed, Dec 14, 2022 at 08:49:03AM +0800, Rick Chen wrote: > > Hi Tom, > > > > > On Tue, Dec 13, 2022 at 10:06:50AM +0800, Rick Chen wrote: > > > > > On Mon, Dec 12, 2022 at 03:49:10PM +0800, Rick Chen wrote: > > > > > > > On 12/7/22 01:23, Rick Chen wrote: > > > > > > > > In RISC-V, it

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Sean Anderson
On 12/13/22 11:24, Tom Rini wrote: On Tue, Dec 13, 2022 at 08:42:47AM +0800, Rick Chen wrote: Hi Sean, On 12/12/22 10:03, Tom Rini wrote: On Mon, Dec 12, 2022 at 02:45:10PM +0800, Rick Chen wrote: Hi Tom On Fri, Dec 09, 2022 at 08:48:37AM -0500, Sean Anderson wrote: On 12/7/22 01:23,

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Tom Rini
On Wed, Dec 14, 2022 at 08:49:03AM +0800, Rick Chen wrote: > Hi Tom, > > > On Tue, Dec 13, 2022 at 10:06:50AM +0800, Rick Chen wrote: > > > > On Mon, Dec 12, 2022 at 03:49:10PM +0800, Rick Chen wrote: > > > > > > On 12/7/22 01:23, Rick Chen wrote: > > > > > > > In RISC-V, it only provide normal

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Rick Chen
Hi Tom, > On Tue, Dec 13, 2022 at 10:06:50AM +0800, Rick Chen wrote: > > > On Mon, Dec 12, 2022 at 03:49:10PM +0800, Rick Chen wrote: > > > > > On 12/7/22 01:23, Rick Chen wrote: > > > > > > In RISC-V, it only provide normal mode booting currently. > > > > > > To speed up the booting process,

[PATCH 4/4] sunxi: move arch timer setup out of board/ directory

2022-12-13 Thread Andre Przywara
At the moment we have an #ifdef-protected routine in board/sunxi/board.c, which sets up the arch timer CNTFRQ register, if that hasn't been done already. This only applies to ARMv7 SoCs running in secure state, and so is much better located in the arch/arm/mach-sunxi directory. Move that routine

[PATCH 2/4] sunxi: remove bogus mmc_pinmux_setup() prototype

2022-12-13 Thread Andre Przywara
Since all callers of mmc_pinmux_setup() are located after the definition of that function, there is no need for a forward declaration (anymore?). Remove the prototype along with its #ifdef guards. Signed-off-by: Andre Przywara --- board/sunxi/board.c | 4 1 file changed, 4 deletions(-)

[PATCH 3/4] sunxi: board: annotate #endif lines

2022-12-13 Thread Andre Przywara
The legacy Allwinner code is cluttered with #ifdef's, some of them even nested, which makes the code hard to read and error prone. Eventually we will get rid of most of them, but for now let's at least annotate the #endif lines with the corresponding symbol the bracket started with.

[PATCH 1/4] sunxi: remove unused CONFIG_MMC_SUNXI_SLOT

2022-12-13 Thread Andre Przywara
There is a CONFIG_MMC_SUNXI_SLOT definition in our sunxi_common.h config header, which was used to note the first MMC controller to initialise. The definition in that header was always set to 0, with no easy way of overriding this, and certainly none of the existing boards made any use of that

[PATCH 0/4] sunxi: minor cleanups and refactoring

2022-12-13 Thread Andre Przywara
Just a collection of patches I came up with while trying to refactor and reorganise the Allwinner SPL code. Patch 1/4 aims to replace Tom's patch [1], which made CONFIG_MMC_SUNXI_SLOT a proper Kconfig variable. A closer inspection reveals that we don't really need that at all. Patch 2 and 3 are

[PATCH] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Marek Vasut
Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") forces '$fdtcontroladdr' DT address as a third parameter of bootm command even if the PXE transfer pulls in a fitImage which contains configuration node with its own DT that is preferrable to be passed to Linux. Limit the

Re: [PATCH u-boot] powerpc/mpc85xx: Pass correct cpu compiler flags

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 10:02:38PM +0100, Pali Rohár wrote: > Vagrant and Aurelien, could you test if this change fully fixes your > Debian issue? > > Tom, do you have any opinion for this change? It should help building > with binutils 2.38. I have both of your toolchain flag patches in my

Re: [PATCH u-boot] powerpc/mpc85xx: Pass correct cpu compiler flags

2022-12-13 Thread Pali Rohár
Vagrant and Aurelien, could you test if this change fully fixes your Debian issue? Tom, do you have any opinion for this change? It should help building with binutils 2.38. On Sunday 11 December 2022 15:12:04 Pali Rohár wrote: > When gcc's default cpu (selected by --with-cpu= during gcc's

[PATCH] [RFC] cmd: pxe_utils: Limit fdtcontroladdr usage to non-fitImage

2022-12-13 Thread Marek Vasut
Commit d5ba6188dfb ("cmd: pxe_utils: Check fdtcontroladdr in label_boot") forces '$fdtcontroladdr' DT address as a third parameter of bootm command even if the PXE transfer pulls in a fitImage which contains configuration node with its own DT that is preferrable to be passed to Linux. Limit the

hush parameter expansion ${parameter:+word} is backwards compared to bash

2022-12-13 Thread Bob
I notice that the hush parameter expansion ${parameter:+word} is backwards compared to bash. Here is a test case comparing 'u-boot hush' against 'debian bash'. It shows that at lines 4 and 8, the results are backwards: shell commandresult u-boot hush

Re: [PATCH 1/3] binman: add sign option for binman

2022-12-13 Thread Ivan Mikhaylov
On Fri, 2022-11-18 at 13:50 -0700, Simon Glass wrote: > Hi Ivan, > > On Thu, 15 Sept 2022 at 13:44, Ivan Mikhaylov > wrote: > > > > On Wed, 2022-09-07 at 15:10 -0600, Simon Glass wrote: > > > Hi Ivan, > > > > > > Section data comes from the BuildSectionData() method, so you > > > could > > >

Re: [PATCH 2/2] musb-new: omap2430: fix musb probing in gadget mode

2022-12-13 Thread Andreas Kemnade
Hi, just noticed I am doing two things in one patch. better do it with just some patches On Mon, 12 Dec 2022 14:00:57 -0500 Tom Rini wrote: > On Sat, Nov 26, 2022 at 11:30:10PM +0100, Andreas Kemnade wrote: > > > Host mode structures were accessed but not initialized first thing ->

Re: [PATCH v2] pinctrl: sunxi: Add P2WI and RSB pinmuxes

2022-12-13 Thread Andre Przywara
On Thu, 17 Nov 2022 22:22:27 -0600 Samuel Holland wrote: > P2WI and RSB are used to communicate with a PMIC. Most SoCs have only > one possible pinmux. F1C100s has two possibilities, with different mux > values, so omit it until some board needs one of them. > > Signed-off-by: Samuel Holland

[PATCH v2 2/3] arm/mach-meson: move smc commands in cmd/meson

2022-12-13 Thread Alexey Romanov
It is incorrect to keep commands in the arch/ folder. Signed-off-by: Alexey Romanov --- MAINTAINERS | 1 + arch/arm/mach-meson/sm.c | 144 cmd/Kconfig | 7 ++ cmd/Makefile | 3 + cmd/meson/Makefile | 5 ++

[PATCH v2 3/3] cmd/arm: meson: sm: introduce efusedump command

2022-12-13 Thread Alexey Romanov
Using this command user can print efuse memory: $ sm efusedump 0 10 : ff 00 31 00 00 ff 66 00 00 00 ..1...f... Signed-off-by: Alexey Romanov --- cmd/meson/sm.c | 35 ++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/cmd/meson/sm.c

[PATCH v2 1/3] asm/arch-meson: add missing meson_sm_write_efuse signature

2022-12-13 Thread Alexey Romanov
This function can be used by other modules. Signed-off-by: Alexey Romanov --- arch/arm/include/asm/arch-meson/sm.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/arm/include/asm/arch-meson/sm.h b/arch/arm/include/asm/arch-meson/sm.h index f3ae46a6d6b..b68edf842e4 100644 ---

[PATCH v2 0/3] arch-meson: introduce efusedump command

2022-12-13 Thread Alexey Romanov
Keeping the commands code in an arch/ is not correct. This patchset moves the meson smc commands from arch/arm/mach-meson to cmd/meson folder and also adds a new 'efusedump' command with which user can print efuse memory. Alexey Romanov (3): asm/arch-meson: add missing meson_sm_write_efuse

Re: [PATCH 4/8] sunxi: Convert H616 DRAM options to single setting

2022-12-13 Thread Jernej Škrabec
Dne torek, 13. december 2022 ob 17:51:35 CET je Andre Przywara napisal(a): > On Tue, 13 Dec 2022 17:23:12 +0100 > > Jernej Škrabec wrote: > > Hi, > > > > Dne ponedeljek, 12. december 2022 ob 18:50:44 CET je Andre Przywara > > > > napisal(a): > > > On Sun, 11 Dec 2022 17:32:09 +0100 > > >

Re: [PATCH 4/8] sunxi: Convert H616 DRAM options to single setting

2022-12-13 Thread Andre Przywara
On Tue, 13 Dec 2022 17:23:12 +0100 Jernej Škrabec wrote: > Hi, > > Dne ponedeljek, 12. december 2022 ob 18:50:44 CET je Andre Przywara > napisal(a): > > On Sun, 11 Dec 2022 17:32:09 +0100 > > Jernej Skrabec wrote: > > > > Hi, > > > > > Vendor DRAM settings use TPR10 parameter to enable

Re: [PATCH v2] board: ti: common: board_detect: Fix EEPROM read quirk for 2-byte

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 11:57:34AM +0530, Neha Malcom Francis wrote: > EEPROM detection logic in ti_i2c_eeprom_get() involves figuring out > whether addressing is 1-byte or 2-byte. There are currently different > behaviours seen across boards as documented in commit bf6376642fe8 > ("board: ti:

Re: [PATCH] Makefile: With BINMAN_ALLOW_MISSING=1 don't error on missing

2022-12-13 Thread Tom Rini
On Mon, Dec 12, 2022 at 10:59:01PM -0700, Simon Glass wrote: > Hi Tom, > > On Mon, 12 Dec 2022 at 16:43, Tom Rini wrote: > > > > On Tue, Dec 06, 2022 at 10:03:37AM -0500, Tom Rini wrote: > > > On Tue, Dec 06, 2022 at 03:36:49PM +1300, Simon Glass wrote: > > > > Hi Tom, > > > > > > > > On Tue, 6

Re: [PATCH] Makefile: link with --no-warn-rwx-segments

2022-12-13 Thread Tom Rini
On Wed, Dec 07, 2022 at 03:49:43PM -0500, Tom Rini wrote: > We borrow from the Linux Kernel 0d362be5b142 ("Makefile: link with -z > noexecstack --no-warn-rwx-segments") here to disable the RWX segment > linking warnings. We do not also bring in -z noexecstack as that > requires auditing and using

Re: [PATCH 1/5] configs: am333x_guardian: move MTDIDS_DEFAULT in defconfif

2022-12-13 Thread Tom Rini
On Wed, Dec 07, 2022 at 09:26:40AM +0100, Patrick Delaunay wrote: > Replace MTDIDS_DEFAULT in config include file by CONFIG_MTDIDS_DEFAULT > in defonfig to complete the Kconfig migration > > Signed-off-by: Patrick Delaunay For the series, applied to u-boot/next, thanks! -- Tom

Re: [PATCH 1/7] board/km: move ls102xa boards to environment text files

2022-12-13 Thread Tom Rini
On Fri, Dec 02, 2022 at 06:22:37PM +0100, Holger Brunck wrote: > Create a common.env which we can use later on also for other boards. > > Signed-off-by: Holger Brunck For the series, applied to u-boot/next, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 10:06:50AM +0800, Rick Chen wrote: > > On Mon, Dec 12, 2022 at 03:49:10PM +0800, Rick Chen wrote: > > > > On 12/7/22 01:23, Rick Chen wrote: > > > > > In RISC-V, it only provide normal mode booting currently. > > > > > To speed up the booting process, here provide

Re: [PATCH 1/4] riscv: spl: Introduce SPL_OPENSBI_OS_BOOT

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 08:42:47AM +0800, Rick Chen wrote: > Hi Sean, > > > On 12/12/22 10:03, Tom Rini wrote: > > > On Mon, Dec 12, 2022 at 02:45:10PM +0800, Rick Chen wrote: > > >> Hi Tom > > >> > > >>> On Fri, Dec 09, 2022 at 08:48:37AM -0500, Sean Anderson wrote: > > On 12/7/22 01:23,

Re: [PATCH 4/8] sunxi: Convert H616 DRAM options to single setting

2022-12-13 Thread Jernej Škrabec
Hi, Dne ponedeljek, 12. december 2022 ob 18:50:44 CET je Andre Przywara napisal(a): > On Sun, 11 Dec 2022 17:32:09 +0100 > Jernej Skrabec wrote: > > Hi, > > > Vendor DRAM settings use TPR10 parameter to enable various features. > > There are many mores features that just those that are

Re: cmd: exit: Exit functionality broken

2022-12-13 Thread Marek Vasut
On 12/13/22 16:41, Hector Palacios wrote: Hi Max, On 12/13/22 13:24, Max van den Biggelaar wrote: Hi, I have a question regarding the U-Boot exit command. We are currently using mainline U-Boot 2022.04 version to provide our embedded systems with a bootloader image. To start our firmware

[PATCH v3 3/3] ARM: tegra: include timer as default option

2022-12-13 Thread Svyatoslav Ryhel
Enable TIMER as default option for add Tegra devices and enable TEGRA_TIMER for TEGRA_ARMV7_COMMON. Additionally enable SPL_TIMER if build as SPL part and drop deprecated configs from common header. Signed-off-by: Svyatoslav Ryhel --- arch/arm/Kconfig | 1 +

[PATCH v3 1/3] ARM: tegra: remap clock_osc_freq for all Tegra family

2022-12-13 Thread Svyatoslav Ryhel
Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies, added in T30+ SoC while maintaining backwards compatibility with T20. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert

[PATCH v3 2/3] drivers: timer: add timer driver for ARMv7 based Tegra devices

2022-12-13 Thread Svyatoslav Ryhel
Add timer support for T20/T30/T114 and T124 based devices. Driver is based on DM, has device tree support and can be used on SPL and early boot stage. Tested-by: Andreas Westman Dorcsak # ASUS TF600T T30 Tested-by: Jonas Schwöbel # Surface RT T30 Tested-by: Robert Eckelmann # ASUS TF101 T20

[PATCH v3 0/3] Re-Send Timer support for ARM Tegra

2022-12-13 Thread Svyatoslav Ryhel
3.5 weeks have passed and I got no reviews. Since deadline of timer dm driver implementation is approaching I am re-sending partches. - ARM: tegra: remap clock_osc_freq for all Tegra family Enum clock_osc_freq was designed to use only with T20. This patch remaps it to use additional frequencies,

Re: cmd: exit: Exit functionality broken

2022-12-13 Thread Hector Palacios
Hi Max, On 12/13/22 13:24, Max van den Biggelaar wrote: Hi, I have a question regarding the U-Boot exit command. We are currently using mainline U-Boot 2022.04 version to provide our embedded systems with a bootloader image. To start our firmware via U-Boot environment, we use a bootscript

Re: [PATCH] Revert "cmd: pxe_utils: Check fdtcontroladdr in label_boot"

2022-12-13 Thread Peter Hoyes
On 13/12/2022 14:34, Quentin Schulz wrote: Hi Tom, On 12/13/22 15:29, Tom Rini wrote: With the change here, all extlinux.conf files with only "KERNEL /fitImage" don't work anymore. One common example of this would be those files generated by thee Poky/OE WIC bootimg-partition bootloader

Re: [PATCHv2 2/4] fwu: move meta-data management in core

2022-12-13 Thread Etienne Carriere
Hello Jassi, On Sat, 3 Dec 2022 at 04:17, wrote: > > From: Jassi Brar > > Instead of each i/f having to implement their own meta-data verification > and storage, move the logic in common code. This simplifies the i/f code > much simpler and compact. > > Signed-off-by: Jassi Brar > --- >

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2022-12-13 Thread Quentin Schulz
Hi Patrick, On 12/13/22 15:34, neil.armstr...@linaro.org wrote: On 13/12/2022 15:31, Patrick DELAUNAY wrote: Hi, On 11/22/22 20:43, Neil Armstrong wrote: On 22/11/2022 20:11, Neil Armstrong wrote: Hi, On 21/11/2022 13:23, Quentin Schulz wrote: Hi Patrick, Thanks for looking at it. On

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread neil . armstrong
On 13/12/2022 15:31, Quentin Schulz wrote: Hi, On 12/13/22 15:14, Neil Armstrong wrote: On 13/12/2022 14:45, Quentin Schulz wrote: Hi Tom, On 12/13/22 14:37, Tom Rini wrote: This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe: support INITRD

Re: [PATCH] Revert "cmd: pxe_utils: Check fdtcontroladdr in label_boot"

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 03:34:45PM +0100, Quentin Schulz wrote: > Hi Tom, > > On 12/13/22 15:29, Tom Rini wrote: > > With the change here, all extlinux.conf files with only "KERNEL > > /fitImage" don't work anymore. One common example of this would be those > > files generated by thee Poky/OE WIC

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2022-12-13 Thread neil . armstrong
On 13/12/2022 15:31, Patrick DELAUNAY wrote: Hi, On 11/22/22 20:43, Neil Armstrong wrote: On 22/11/2022 20:11, Neil Armstrong wrote: Hi, On 21/11/2022 13:23, Quentin Schulz wrote: Hi Patrick, Thanks for looking at it. On 10/28/22 11:01, Patrick Delaunay wrote: Since the commit

Re: [PATCH] Revert "cmd: pxe_utils: Check fdtcontroladdr in label_boot"

2022-12-13 Thread Quentin Schulz
Hi Tom, On 12/13/22 15:29, Tom Rini wrote: With the change here, all extlinux.conf files with only "KERNEL /fitImage" don't work anymore. One common example of this would be those files generated by thee Poky/OE WIC bootimg-partition bootloader partition generator. This reverts commit

Re: [PATCH 0/3] cmd: pxe: support INITRD and FDT selection with FIT

2022-12-13 Thread Patrick DELAUNAY
Hi, On 11/22/22 20:43, Neil Armstrong wrote: On 22/11/2022 20:11, Neil Armstrong wrote: Hi, On 21/11/2022 13:23, Quentin Schulz wrote: Hi Patrick, Thanks for looking at it. On 10/28/22 11:01, Patrick Delaunay wrote: Since the commit d5ba6188dfbf ("cmd: pxe_utils: Check fdtcontroladdr in

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Quentin Schulz
Hi, On 12/13/22 15:14, Neil Armstrong wrote: On 13/12/2022 14:45, Quentin Schulz wrote: Hi Tom, On 12/13/22 14:37, Tom Rini wrote: This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe: support INITRD and FDT selection with FIT") and f723c2778cf8

[PATCH] Revert "cmd: pxe_utils: Check fdtcontroladdr in label_boot"

2022-12-13 Thread Tom Rini
With the change here, all extlinux.conf files with only "KERNEL /fitImage" don't work anymore. One common example of this would be those files generated by thee Poky/OE WIC bootimg-partition bootloader partition generator. This reverts commit d5ba6188dfbf6bb68354bec86e483623f1f6dae2.

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Neil Armstrong
On 13/12/2022 15:22, Tom Rini wrote: On Tue, Dec 13, 2022 at 03:14:43PM +0100, Neil Armstrong wrote: On 13/12/2022 14:45, Quentin Schulz wrote: Hi Tom, On 12/13/22 14:37, Tom Rini wrote: This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe:

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 03:14:43PM +0100, Neil Armstrong wrote: > On 13/12/2022 14:45, Quentin Schulz wrote: > > Hi Tom, > > > > On 12/13/22 14:37, Tom Rini wrote: > > > This reverts commits > > > 51c5c28af59c ("cmd: pxe: use strdup to copy config"), > > > a5dacef7380e ("cmd: pxe: support INITRD

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Neil Armstrong
On 13/12/2022 14:45, Quentin Schulz wrote: Hi Tom, On 12/13/22 14:37, Tom Rini wrote: This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe: support INITRD and FDT selection with FIT") and f723c2778cf8 ("cmd: pxe: reorder kernel treatment in

Re: [PATCH v1] arch/arm: sm: introduce efusedump command

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 01:59:01PM +, Alexey Romanov wrote: > Hello! > > On Mon, Dec 12, 2022 at 11:08:34AM -0500, Tom Rini wrote: > > On Fri, Dec 09, 2022 at 03:52:04PM +0300, Alexey Romanov wrote: > > > > > Using this command user can print efuse memory: > > > > > > $ sm efusedump 0 10 >

Re: [PATCH v1] arch/arm: sm: introduce efusedump command

2022-12-13 Thread Alexey Romanov
Hello! On Mon, Dec 12, 2022 at 11:08:34AM -0500, Tom Rini wrote: > On Fri, Dec 09, 2022 at 03:52:04PM +0300, Alexey Romanov wrote: > > > Using this command user can print efuse memory: > > > > $ sm efusedump 0 10 > > : ff 00 31 00 00 ff 66 00 00 00 ..1...f... > > > >

Re: [PATCH v2] cmd: clk: probe the clock before dump them

2022-12-13 Thread Sean Anderson
On 12/13/22 08:57, Patrick Delaunay wrote: The clock UCLASS need to be probed to allow availability of the private data (struct clk *), get in show_clks() with dev_get_clk_ptr() before use them. Without this patch the clock dump can cause crash because all the private data are not available

[PATCH v2] cmd: clk: probe the clock before dump them

2022-12-13 Thread Patrick Delaunay
The clock UCLASS need to be probed to allow availability of the private data (struct clk *), get in show_clks() with dev_get_clk_ptr() before use them. Without this patch the clock dump can cause crash because all the private data are not available before calling the API clk_get_rate(). It is

Re: [PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Quentin Schulz
Hi Tom, On 12/13/22 14:37, Tom Rini wrote: This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe: support INITRD and FDT selection with FIT") and f723c2778cf8 ("cmd: pxe: reorder kernel treatment in label_boot"). As reported by Quentin Schulz, this

[PATCH] Revert "cmd: pxe: use strdup to copy config" et al

2022-12-13 Thread Tom Rini
This reverts commits 51c5c28af59c ("cmd: pxe: use strdup to copy config"), a5dacef7380e ("cmd: pxe: support INITRD and FDT selection with FIT") and f723c2778cf8 ("cmd: pxe: reorder kernel treatment in label_boot"). As reported by Quentin Schulz, this introduces a regression with previously

Re: [PATCH 3/3] cmd: pxe: use strdup to copy config

2022-12-13 Thread Tom Rini
On Tue, Dec 13, 2022 at 10:03:17AM +0100, Quentin Schulz wrote: > Hi Tom, > > On 12/12/22 22:34, Tom Rini wrote: > > On Fri, Oct 28, 2022 at 11:01:20AM +0200, Patrick Delaunay wrote: > > > > > Replace malloc and strcpy by strdup in > > > function parse_label_kernel. > > > > > > Signed-off-by:

cmd: exit: Exit functionality broken

2022-12-13 Thread Max van den Biggelaar
Hi, I have a question regarding the U-Boot exit command. We are currently using mainline U-Boot 2022.04 version to provide our embedded systems with a bootloader image. To start our firmware via U-Boot environment, we use a bootscript to start our firmware. However, when we tried to exit a

Re: [PATCH V3 2/2] spi: cadence_qspi: use STIG mode for small reads

2022-12-13 Thread Pratyush Yadav
On 25/11/22 11:29AM, Dhruva Gole wrote: > Fix the issue where some flash chips like cypress S25HS256T return the > value of the same register over and over in DAC mode. > > For example in the TI K3-AM62x Processors refer [0] Technical Reference I know where to find the useful information in this

Re: [PATCH V3 1/2] spi: cadence_qspi: setup ADDR Bits in cmd reads

2022-12-13 Thread Pratyush Yadav
On 25/11/22 11:29AM, Dhruva Gole wrote: > Setup the Addr bit field while issuing register reads in STIG mode. This > is needed for example flashes like cypress define in their transaction > table that to read any register there is 1 cmd byte and a few more address > bytes trailing the cmd byte.

Re: [PATCH V2 1/1] Configs: enable gigadevice xilinx_zynqmp_mini_qspi_defconfig

2022-12-13 Thread Vlim
Hi, Michal, Sorry, what is top posting? Regards, Victor Get Outlook for Android From: Michal Simek Sent: Tuesday, December 13, 2022, 12:08 AM To: Vlim Cc: u-boot@lists.denx.de ; vikhyat.go...@amd.com ; ashok.reddy.s...@amd.com

Re: [PATCH] usb: gadget: ether: split start/stop from init/halt

2022-12-13 Thread Niel Fourie
Hi Marek, On 12/12/2022 17:46, Marek Vasut wrote: On 12/12/22 16:29, Niel Fourie wrote: Split out _usb_eth_start() from _usb_eth_init() and usb_eth_stop() from _usb_eth_halt(). Now _usb_eth_init() only initialises and registers the gadget device, which _usb_eth_halt() reverses, and together

Re: [PATCH] serial: ns16550: Enable clocks during probe

2022-12-13 Thread Wadim Egorov
Hi Stefan, Am 13.12.22 um 07:14 schrieb Stefan Roese: > Hi Samuel, > > On 12/13/22 02:46, Samuel Holland wrote: >> On 12/12/22 12:54, Tom Rini wrote: >>> On Sun, Nov 27, 2022 at 11:48:34PM -0600, Samuel Holland wrote: >>> If the UART bus or baud clock has a gate, it must be enabled before

[PATCH] configs: phycore-rk3288: Enable CONFIG_LTO

2022-12-13 Thread Wadim Egorov
The phycore-rk3288 SPL binary is reaching the limits of 32KB very often. Enable CONFIG_LTO to reduce the size of the SPL and make the board more future proof for changes increasing the SPL size. Signed-off-by: Wadim Egorov --- configs/phycore-rk3288_defconfig | 1 + 1 file changed, 1

Re: [PATCH V2 1/1] Configs: enable gigadevice xilinx_zynqmp_mini_qspi_defconfig

2022-12-13 Thread Michal Simek
po 12. 12. 2022 v 23:48 odesílatel Vlim napsal: > > Hi, Michal, > > Sorry, what is top posting? Take a look https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/Documentation/process/2.Process.rst?h=v6.1#n437 Thanks, Michal -- Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID:

Re: [PATCH v2] serial: ns16550: Enable clocks during probe

2022-12-13 Thread Johan Jonker
Hi Samuel, Could you provide an example and or details for which SoC type this is in mind? For current Rockchip we don't need this. Everything works out of the box and is not touched in the clock driver. The setting is done with serial_rockchip.c Your clk_enable() function makes it a

Re: [PATCH 3/3] cmd: pxe: use strdup to copy config

2022-12-13 Thread Quentin Schulz
Hi Tom, On 12/12/22 22:34, Tom Rini wrote: On Fri, Oct 28, 2022 at 11:01:20AM +0200, Patrick Delaunay wrote: Replace malloc and strcpy by strdup in function parse_label_kernel. Signed-off-by: Patrick Delaunay Reviewed-by: Neil Armstrong Applied to u-boot/next, thanks! I believe this

Re: [PATCH 2/2] musb-new: omap2430: fix musb probing in gadget mode

2022-12-13 Thread Andreas Kemnade
Hi, On Mon, 12 Dec 2022 14:00:57 -0500 Tom Rini wrote: > On Sat, Nov 26, 2022 at 11:30:10PM +0100, Andreas Kemnade wrote: > > > Host mode structures were accessed but not initialized > > and gadget dm did not compile at all. > > > > Signed-off-by: Andreas Kemnade > > --- > >