Re: [PATCH 07/29] i2c: mediatek: fix I2C usability for MT7981

2023-08-09 Thread Heiko Schocher
Hello Weijie Gao On 19.07.23 11:16, Weijie Gao wrote: > MT7981 actually uses MediaTek I2C controller v3 instead of v1. > This patch adds support for I2C controller v3 fix fixes the I2C usability > for MT7981. > > Signed-off-by: Sam Shih > Signed-off-by: Weijie Gao > --- > drivers/i2c/mtk_i2c.c

Re: [PATCH v4 2/3] riscv: Add SPL_ZERO_MEM_BEFORE_USE implementation

2023-08-09 Thread Leo Liang
On Wed, Aug 09, 2023 at 09:11:32PM +0800, Shengyu Qu wrote: > Add the actual support code for SPL_ZERO_MEM_BEFORE_USE and remove > existing Starfive JH7110's L2 LIM clean code, since existing code has > following issues: > 1. Each hart (in the middle of a function call) overwriting its own > s

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-09 Thread Simon Glass
Hi Sean, On Wed, 9 Aug 2023 at 16:35, Sean Edmond wrote: > > > On 2023-08-08 7:03 p.m., Simon Glass wrote: > > Hi, > > > > On Fri, 4 Aug 2023 at 17:34, wrote: > >> From: Dhananjay Phadke > >> > >> fdt_fixup_kaslr_seed() will update given FDT with random seed value. > >> Source for random seed c

Re: [PATCH] arm_ffa: use debug logs

2023-08-09 Thread Simon Glass
On Wed, 9 Aug 2023 at 05:47, Abdellatif El Khlifi wrote: > > replace info logs with debug logs > > Signed-off-by: Abdellatif El Khlifi > Cc: Tom Rini > Cc: Simon Glass > --- > doc/arch/arm64.ffa.rst | 2 +- > drivers/firmware/arm-ffa/arm-ffa-uclass.c | 4 ++-- > drivers/fi

Re: NVMe support on RPi CM4 board

2023-08-09 Thread Simon Glass
Hi Luis, On Wed, 9 Aug 2023 at 10:43, Luis Alfredo da Silva wrote: > > Hi Simon, I enabled the next four variables > > CONFIG_NVME_PCI=y > CONFIG_NVME=y > CONFIG_CMD_NVME=y > CONFIG_PCI=y > > how different is CONFIG_NVME_PCI from NVME_PCI, I took the latter value from > several configs files in

Re: [PATCH v10 03/10] tpm: Support boot measurements

2023-08-09 Thread Simon Glass
Hi Eddie, On Mon, 7 Aug 2023 at 09:17, Eddie James wrote: > > Add TPM2 functions to support boot measurement. This includes > starting up the TPM, initializing/appending the event log, and > measuring the U-Boot version. Much of the code was used in the > EFI subsystem, so remove it there and use

Re: [PATCH 09/20] pinctrl: sunxi: add Allwinner D1 pinctrl description

2023-08-09 Thread Sam Edwards
On 7/21/23 07:45, Andre Przywara wrote: diff --git a/drivers/pinctrl/sunxi/pinctrl-sunxi.c b/drivers/pinctrl/sunxi/pinctrl-sunxi.c index fc80fe50b14..c6115112688 100644 --- a/drivers/pinctrl/sunxi/pinctrl-sunxi.c +++ b/drivers/pinctrl/sunxi/pinctrl-sunxi.c @@ -748,6 +748,28 @@ static const struc

Re: [PATCH 1/3] fdt: common API to populate kaslr seed

2023-08-09 Thread Sean Edmond
On 2023-08-08 7:03 p.m., Simon Glass wrote: Hi, On Fri, 4 Aug 2023 at 17:34, wrote: From: Dhananjay Phadke fdt_fixup_kaslr_seed() will update given FDT with random seed value. Source for random seed can be TPM or RNG driver in u-boot or sec firmware (ARM). Signed-off-by: Dhananjay Phadke

Re: [PATCH 19/20] ARM: dts: sunxi: add Allwinner T113-s SoC .dtsi

2023-08-09 Thread Sam Edwards
On 7/21/23 07:46, Andre Przywara wrote: The Allwinner T113-s SoC is apparently using the same (or at least a very similar) die as the D1/D1s, but replaces the single RISC-V core with two Arm Cortex-A7 cores. Since the D1 core .dtsi already describes all common peripherals, we just need a DT descr

Re: [PATCH 08/20] sunxi: introduce NCAT2 generation model

2023-08-09 Thread Sam Edwards
On 7/21/23 07:45, Andre Przywara wrote: Allwinner seems to typically stick to a common MMIO memory map for several SoCs, but from time to time does some breaking changes, which also introduce new generations of some peripherals. The last time this happened with the H6, which apart from re-organis

Re: [PATCH 07/20] pinctrl: sunxi: add new D1 pinctrl support

2023-08-09 Thread Sam Edwards
On 7/21/23 07:45, Andre Przywara wrote: For the first time since at least the Allwinner A10 SoCs, the D1 (and related cores) use a new pincontroller MMIO register layout, so we cannot use our hardcoded, fixed offsets anymore. Ideally this would all be handled by devicetree and DM drivers, but

Re: [PATCH 03/20] pinctrl: sunxi: add GPIO in/out wrappers

2023-08-09 Thread Sam Edwards
On 7/21/23 07:45, Andre Przywara wrote: So far we were open-coding the pincontroller's GPIO output/input access in each function using that. Provide functions that wrap that nicely, and follow the existing pattern (set/get_{bank,}), so users don't need to know about the internals, and we can abs

Re: [PATCH 02/20] sunxi: remove CONFIG_MACPWR

2023-08-09 Thread Sam Edwards
Hi Andre, Ditto my response to the previous patch. On 7/21/23 07:45, Andre Przywara wrote: The CONFIG_MACPWR Kconfig symbol is used to point to a GPIO that enables the power for the Ethernet "MAC" (mostly PHY, really). In the DT this is described with the phy-supply property in the MAC DT node,

Re: [PATCH 01/20] net: sunxi_emac: chase DT nodes to find PHY regulator

2023-08-09 Thread Sam Edwards
Hi Andre, Looks good to me! My target doesn't have PHY on a regulator, so no test result for this one. On 7/21/23 07:45, Andre Przywara wrote: At the moment the sun4i EMAC driver relies on hardcoded CONFIG_MACPWR Kconfig symbols to enable potential PHY regulators. As we want to get rid of tho

Re: [PATCHv5 11/13] net/lwip: connection between cmd and lwip apps

2023-08-09 Thread Maxim Uvarov
On Wed, 9 Aug 2023 at 00:13, Ilias Apalodimas wrote: > Hi Maxim > > [...] > > > > > +static int lwip_empty_tmo(void) { return 0; }; > > > > +int (*ulwip_tmo)(void) = lwip_empty_tmo; > > > > +void ulwip_set_tmo(int (*tmo)(void)) > > > > +{ > > > > + ulwip_tmo = tmo; > > > > +} > > > > + > > >

Re: Please pull u-boot-x86

2023-08-09 Thread Tom Rini
Arm-FF-A-support' (2023-08-08 > 15:23:16 -0400) > > are available in the Git repository at: > > https://source.denx.de/u-boot/custodians/u-boot-x86.git > tags/x86-pull-20230809 > > for you to fetch changes up to 9234b77b9d42ebd77585091a072b4ab958ba83ed: > >

Re: Pull request for doc-2023-10-rc3

2023-08-09 Thread Tom Rini
On Wed, Aug 09, 2023 at 12:18:16PM +0200, Heinrich Schuchardt wrote: > Dear Tom, > > The following changes since commit ef8336e2705fce2502383f25d68188c6b1f94dd0: > > Merge branch '2023-08-08-introuce-Arm-FF-A-support' (2023-08-08 > 15:23:16 -0400) > > are available in the Git repository at: >

Re: [GIT PULL] please pull fsl-qoriq-2023-8-9

2023-08-09 Thread Tom Rini
On Wed, Aug 09, 2023 at 07:29:22AM +, Peng Fan wrote: > Hi Tom, > > Please pull fsl-qoriq-2023-8-9, only one minor cleanup patch. > Applied to u-boot/master, thanks! -- Tom signature.asc Description: PGP signature

Re: [PATCH 1/2] Revert "lib: string: Fix strlcpy return value", fix callers

2023-08-09 Thread Tom Rini
On Mon, Aug 07, 2023 at 09:45:37AM +0200, Rasmus Villemoes wrote: > On 14/07/2023 13.24, Matthias Schiffer wrote: > > Both the Linux kernel and libbsd agree that strlcpy() should always > > return strlen(src) and not include the NUL termination. The incorrect > > U-Boot implementation makes it impo

Re: [PATCH 2/2] treewide: unify the linker symbol reference format

2023-08-09 Thread Tom Rini
On Thu, Aug 03, 2023 at 09:47:17AM +0800, Shiji Yang wrote: > Now all linker symbols are declared as type char[]. Though we can > reference the address via both the array name 'var' and its address > '&var'. It's better to unify them to avoid confusing developers. > This patch converts all '&var'

Re: [PATCH 1/2] treewide: rework linker symbol declarations in sections header

2023-08-09 Thread Tom Rini
On Thu, Aug 03, 2023 at 09:47:16AM +0800, Shiji Yang wrote: > 1. Convert all linker symbols to char[] type so that we can get the >corresponding address by calling array name 'var' or its address >'&var'. In this way, we can avoid some potential issues[1]. > 2. Remove unused symbol '_TEXT_

Re: [PATCH] Kconfigs: Correct default of "0" on hex type entries

2023-08-09 Thread Tom Rini
On Wed, Aug 02, 2023 at 11:09:43AM -0400, Tom Rini wrote: > It is not a parse error to have a default value of "0" for a "hex" type > entry, instead of "0x0". However, "0" and "0x0" are not treated the > same even by the tools themselves. Correct this by changing the default > value from "0" to "

Re: [RFC PATCH 1/3] scripts: kconfig: Add config fragment support in board/../

2023-08-09 Thread Tom Rini
On Tue, Jul 11, 2023 at 04:20:46PM -0500, Jason Kacines wrote: > Add support to config fragments (.config) located in the /board > directory. This will allow only base defconfigs to live in /configs and > all fragments to live in their respective device directory in /board/.. > > Signed-off-by: J

Please pull u-boot-x86

2023-08-09 Thread Bin Meng
: https://source.denx.de/u-boot/custodians/u-boot-x86.git tags/x86-pull-20230809 for you to fetch changes up to 9234b77b9d42ebd77585091a072b4ab958ba83ed: x86: qemu-x86: Convert to text environment (2023-08-09 23:31:12 +0800) - x86:

Re: [PATCH v2 0/9] x86: Fixes for distro booting

2023-08-09 Thread Simon Glass
On Wed, 9 Aug 2023 at 09:40, Bin Meng wrote: > > Hi Simon, > > On Wed, Aug 9, 2023 at 11:09 PM Simon Glass wrote: > > > > Hi Bin, > > > > Any word on this, please? I would like to get distros running in qemu > > and after that we still need to resolve the board_f problem upstream. > > > > Sorry i

Re: [PATCH v2 0/9] x86: Fixes for distro booting

2023-08-09 Thread Bin Meng
Hi Simon, On Wed, Aug 9, 2023 at 11:09 PM Simon Glass wrote: > > Hi Bin, > > Any word on this, please? I would like to get distros running in qemu > and after that we still need to resolve the board_f problem upstream. > Sorry it took so long. I've prepared the branch and am waiting for CI to co

Re: [PATCH v3 5/9] board_f: Fix corruption of relocaddr

2023-08-09 Thread Bin Meng
On Thu, Aug 3, 2023 at 7:03 PM Bin Meng wrote: > > On Thu, Aug 3, 2023 at 6:37 PM Bin Meng wrote: > > > > On Tue, Aug 1, 2023 at 12:00 AM Simon Glass wrote: > > > > > > When the video framebuffer comes from the bloblist, we should not change > > > relocaddr to this address, since it interfers wi

Re: [PATCH 3/3] arm: qemu: Enable usb keyboard as an input device

2023-08-09 Thread Bin Meng
On Wed, Aug 9, 2023 at 3:19 AM Alper Nebi Yasak wrote: > > Commit 02be57caf730 ("riscv: qemu: Enable usb keyboard as an input > device") adds PCI xHCI support to QEMU RISC-V virtual machines and > enables using a USB keyboard as one of the input devices. Similarly, > enable those for ARM virtual m

Re: [PATCH 2/3] arm: qemu: Enable PRE_CONSOLE_BUFFER

2023-08-09 Thread Bin Meng
On Wed, Aug 9, 2023 at 3:19 AM Alper Nebi Yasak wrote: > > Commit 608b80b5b855 ("riscv: qemu: Enable PRE_CONSOLE_BUFFER") enables > buffering console messages for QEMU RISC-V virtual machines so those > printed before the video console is available will still show up on the > display. Similarly, e

Re: [PATCH 1/3] arm: qemu: Enable Bochs video support

2023-08-09 Thread Bin Meng
On Wed, Aug 9, 2023 at 3:19 AM Alper Nebi Yasak wrote: > > Commit 716161663ec49 ("riscv: qemu: Enable Bochs video support") enables > a video console for QEMU RISC-V virtual machines using an emulated Bochs > VGA card. Similarly, enable it for ARM virtual machines as well. > > Signed-off-by: Alper

Re: [PATCH v2 0/9] x86: Fixes for distro booting

2023-08-09 Thread Simon Glass
Hi Bin, Any word on this, please? I would like to get distros running in qemu and after that we still need to resolve the board_f problem upstream. Regards, Simon On Sun, 6 Aug 2023 at 19:35, Bin Meng wrote: > > Hi Simon, > > On Sun, Aug 6, 2023 at 11:02 PM Simon Glass wrote: > > > > Hi Bin, >

[PATCH 3/4] at91: sam9x60-curiosity: Add proper LED support

2023-08-09 Thread Alexander Dahl
Copied dts pieces from Linux Kernel. Support is optional for now, to make it work the following options have to be enabled: CONFIG_LED, CONFIG_LED_GPIO, CONFIG_CMD_LED. Signed-off-by: Alexander Dahl --- .../dts/at91-sam9x60_curiosity-u-boot.dtsi| 18 +++ arch/arm/dts/at91-sam9x60_cu

[PATCH 4/4] ARM: dts: at91: sam9x60-curiosity: Add user button support

2023-08-09 Thread Alexander Dahl
Copied as is from Linux Kernel. Works out of the box if the following config options are enabled: CONFIG_BUTTON, CONFIG_BUTTON_GPIO, CONFIG_CMD_BUTTON, CONFIG_DM_GPIO. Signed-off-by: Alexander Dahl --- arch/arm/dts/at91-sam9x60_curiosity.dts | 20 1 file changed, 20 inserti

[PATCH 0/4] at91: sam9x60-curiosity: Misc improvements

2023-08-09 Thread Alexander Dahl
Hei hei, while working with the sam9x60-curiosity board I noticed some things still have rough edges on U-Boot shell for that device. With these patches (and some more config options enabled), the following commands now work as expected: reset, led, button. The whole series is based on atmel/nex

[PATCH 2/4] configs: at91: sam9x60: Switch to new reset driver

2023-08-09 Thread Alexander Dahl
Since commit 61040097a9d1 ("reset: at91: Add reset driver for basic assert/deassert operations") the compatible "microchip,sam9x60-rstc" for the sam9x60 reset controller in sam9x60.dtsi is not handled by CONFIG_SYSRESET_AT91 anymore, but by CONFIG_RESET_AT91 now. This resulted in the following err

[PATCH 1/4] configs: at91: sam9x60_curiosity: Sync both defconfig variants

2023-08-09 Thread Alexander Dahl
The board has two SD card slots and we have two defconfigs for booting from either the first (micro SD) named 'sam9x60_curiosity_mmc_defconfig' or the second (full size SD) named 'sam9x60_curiosity_mmc1_defconfig'. For comparable Microchip boards (sama5d27-som1-ek, sama5d29-curiosity, sama7g5ek) wi

Re: [PATCH v11 3/8] tpm: Support boot measurements

2023-08-09 Thread Eddie James
On 8/9/23 05:43, Ilias Apalodimas wrote: On Wed, 9 Aug 2023 at 13:42, Heinrich Schuchardt wrote: On 8/9/23 10:34, Ilias Apalodimas wrote: Hi Eddie On Mon, Aug 07, 2023 at 02:25:37PM -0500, Eddie James wrote: Add TPM2 functions to support boot measurement. This includes starting up the TPM

[PATCH v4 3/3] riscv: cpu: jh7110: Select SPL_ZERO_MEM_BEFORE_USE

2023-08-09 Thread Shengyu Qu
Add Kconfig item for Starfive JH7110 to select SPL_ZERO_MEM_BEFORE_USE. Signed-off-by: Bo Gan Signed-off-by: Shengyu Qu Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/cpu/jh7110/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/cpu/jh7110/Kconfig b/arch/riscv/cpu/jh7110/Kcon

[PATCH v4 2/3] riscv: Add SPL_ZERO_MEM_BEFORE_USE implementation

2023-08-09 Thread Shengyu Qu
Add the actual support code for SPL_ZERO_MEM_BEFORE_USE and remove existing Starfive JH7110's L2 LIM clean code, since existing code has following issues: 1. Each hart (in the middle of a function call) overwriting its own stack and other harts' stacks. (data-race and data-corruption) 2.

[PATCH v4 1/3] riscv: Kconfig: Add SPL_ZERO_MEM_BEFORE_USE

2023-08-09 Thread Shengyu Qu
Add a Kconfig item to allow SPL to clear stack/GD/malloc area before using them. Signed-off-by: Bo Gan Signed-off-by: Shengyu Qu Reviewed-by: Leo Yu-Chi Liang --- arch/riscv/Kconfig | 8 1 file changed, 8 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index 867cbc

[PATCH v4 0/3] arch: riscv: jh7110: Correctly zero L2 LIM

2023-08-09 Thread Shengyu Qu
This series is the second version of Bo Gan's L2 LIM series. Original author hasn't sent v2 for almost 2 months, so I decided to take over this series. Background information: JH7110 SPL runs in L2 LIM (2M in size mapped at 0x800). It consists of 16 0x2 sized regions, each one can be use

Re: [PATCH v3 2/3] riscv: Add SPL_ZERO_MEM_BEFORE_USE implementation

2023-08-09 Thread Shengyu Qu
Hi Leo, Seems you are right. I'll send v4 to fix this. Thank you. Best regards, Shengyu Hi Shengyu, On Tue, Aug 08, 2023 at 08:39:56PM +0800, Shengyu Qu wrote: Add the actual support code for SPL_ZERO_MEM_BEFORE_USE and remove existing Starfive JH7110's L2 LIM clean code, since existing cod

Re: [PATCH] usb: dwc3: Fix remove function if there is no ulpi_reset gpio

2023-08-09 Thread Marek Vasut
On 8/9/23 05:33, Venkatesh Yadav Abbarapu wrote: As ulpi_reset gpio is now optional, we need to check it when doing the 'dwc3_generic_remove' function. Check if it is declared before accessing the ulpi_reset. Fixes: 237d1f60b1d ("usb: dwc3: Use the devm_gpiod_get_optional()

Re: [U-BOOT-TEST-HOOKS][PATCH v2 1/1] qemu-riscv: enable virtio-rng-device

2023-08-09 Thread Tom Rini
On Mon, 31 Jul 2023 11:05:06 +0200, Heinrich Schuchardt wrote: > Linux' KASLR uses the EFI_RNG_PROTOCOL as entropy source. We should > enable CONFIG_DM_RNG in U-Boot. For the EFI unit test for the protocol to > succeed a virtio RNG device has to be provided when invoking QEMU. > > Applied, tha

Re: [PATCH v2 1/2] arm64: dts: rockchip: Sync DT from linux-next

2023-08-09 Thread Jagan Teki
Hi Kever, On Wed, 26 Jul 2023 at 13:55, Jagan Teki wrote: > > On Wed, 26 Jul 2023 at 13:42, Kever Yang wrote: > > > > Hi Jagan, > > > > On 2023/7/19 16:17, Jagan Teki wrote: > > > Sync the linux-next from below commit, > > > commit <1642bf66e270> ("arm64: dts: rockchip: add USB2 to > > > rk3588s

[PATCH] usb: dwc3: Fix remove function if there is no ulpi_reset gpio

2023-08-09 Thread Venkatesh Yadav Abbarapu
As ulpi_reset gpio is now optional, we need to check it when doing the 'dwc3_generic_remove' function. Check if it is declared before accessing the ulpi_reset. Fixes: 237d1f60b1d ("usb: dwc3: Use the devm_gpiod_get_optional() API for reset gpio") Reported-by: Thomas Nizan Si

[PATCH] arm_ffa: use debug logs

2023-08-09 Thread Abdellatif El Khlifi
replace info logs with debug logs Signed-off-by: Abdellatif El Khlifi Cc: Tom Rini Cc: Simon Glass --- doc/arch/arm64.ffa.rst | 2 +- drivers/firmware/arm-ffa/arm-ffa-uclass.c | 4 ++-- drivers/firmware/arm-ffa/arm-ffa.c | 2 +- drivers/firmware/arm-ffa/ffa-emul-uc

[PATCH] riscv: Add Zbb support for building U-Boot

2023-08-09 Thread Yu Chien Peter Lin
This patch adds ISA string to the -march to generate zbb instructions for U-Boot binaries, along with optimized string functions introduced from Linux kernel. Signed-off-by: Yu Chien Peter Lin --- arch/riscv/Kconfig | 92 + arch/riscv/Makefile

Re: [PATCH v11 3/8] tpm: Support boot measurements

2023-08-09 Thread Ilias Apalodimas
On Wed, 9 Aug 2023 at 13:42, Heinrich Schuchardt wrote: > > On 8/9/23 10:34, Ilias Apalodimas wrote: > > Hi Eddie > > > > > > On Mon, Aug 07, 2023 at 02:25:37PM -0500, Eddie James wrote: > >> Add TPM2 functions to support boot measurement. This includes > >> starting up the TPM, initializing/appen

Re: [PATCH v11 3/8] tpm: Support boot measurements

2023-08-09 Thread Heinrich Schuchardt
On 8/9/23 10:34, Ilias Apalodimas wrote: Hi Eddie On Mon, Aug 07, 2023 at 02:25:37PM -0500, Eddie James wrote: Add TPM2 functions to support boot measurement. This includes starting up the TPM, initializing/appending the event log, and measuring the U-Boot version. Much of the code was used in

Pull request for doc-2023-10-rc3

2023-08-09 Thread Heinrich Schuchardt
Dear Tom, The following changes since commit ef8336e2705fce2502383f25d68188c6b1f94dd0: Merge branch '2023-08-08-introuce-Arm-FF-A-support' (2023-08-08 15:23:16 -0400) are available in the Git repository at: https://source.denx.de/u-boot/custodians/u-boot-efi.git tags/doc-2023-10-rc3 for y

Re: [PATCH v11 3/8] tpm: Support boot measurements

2023-08-09 Thread Ilias Apalodimas
Hi Eddie On Mon, Aug 07, 2023 at 02:25:37PM -0500, Eddie James wrote: > Add TPM2 functions to support boot measurement. This includes > starting up the TPM, initializing/appending the event log, and > measuring the U-Boot version. Much of the code was used in the > EFI subsystem, so remove it the

Re: [PATCH 0/2] mtd: nand: raw: atmel: R/B gpio on sam9x60

2023-08-09 Thread Alexander Dahl
Hello, just a short supplement … Am Wed, Aug 09, 2023 at 09:40:15AM +0200 schrieb Alexander Dahl: > Hello everyone, > > I had a closer look into the SAMA5D2 Series Datasheet and the SAM9X60 > Data Sheet again. See below. > > Am Tue, Aug 08, 2023 at 05:00:48PM +0200 schrieb Alexander Dahl: > >

Re: [PATCH 0/2] mtd: nand: raw: atmel: R/B gpio on sam9x60

2023-08-09 Thread Alexander Dahl
Hello everyone, I had a closer look into the SAMA5D2 Series Datasheet and the SAM9X60 Data Sheet again. See below. Am Tue, Aug 08, 2023 at 05:00:48PM +0200 schrieb Alexander Dahl: > Hello Mihai, > > Am Tue, Aug 08, 2023 at 01:40:26PM + schrieb mihai.s...@microchip.com: > > Hi Alex, > > > >

[GIT PULL] please pull fsl-qoriq-2023-8-9

2023-08-09 Thread Peng Fan
Hi Tom, Please pull fsl-qoriq-2023-8-9, only one minor cleanup patch. -- Drop one unused function for layerscape -- CI: https://source.denx.de/u-boot/custodians/u-boot-fsl-qoriq/-/commit/0f62

Re: [RESEND, v1 4/4] configs: riscv: starfive: Add VF2 PCIe USB3 XHCI support

2023-08-09 Thread Leo Liang
On Mon, Aug 07, 2023 at 04:53:38PM +0800, Minda Chen wrote: > Add XHCI_PCI to enable usb3-host functions. > Also add usb command and keyboard config. > > Signed-off-by: Minda Chen > --- > configs/starfive_visionfive2_defconfig | 5 + > 1 file changed, 5 insertions(+) Reviewed-by: Leo Yu-Chi

Re: [RESEND, v1 3/4] riscv: starfive: Add SYS_CACHE_SHIFT_6 to enable SYS_CACHELINE_SIZE

2023-08-09 Thread Leo Liang
On Mon, Aug 07, 2023 at 04:53:37PM +0800, Minda Chen wrote: > Some device driver need SYS_CACHELINE_SIZE macro. Add StarFive > SYS_CACHE_SHIFT_6 to enable it. > > Signed-off-by: Minda Chen > --- > arch/riscv/cpu/jh7110/Kconfig | 1 + > 1 file changed, 1 insertion(+) Reviewed-by: Leo Yu-Chi Lian

Re: [RESEND,v1 2/4] riscv: dts: starfive: Enable pcie0 dts node

2023-08-09 Thread Leo Liang
On Mon, Aug 07, 2023 at 04:53:36PM +0800, Minda Chen wrote: > In StarFive VF2 board. pcie0 connect to VTI usb controller. > Enable it to support usb host. > > Signed-off-by: Minda Chen > --- > arch/riscv/dts/jh7110-starfive-visionfive-2.dtsi | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-

Re: [RESEND,v1 1/4] pci: plda: Get correct ECAM offset in multiple PCIe RC case

2023-08-09 Thread Leo Liang
On Mon, Aug 07, 2023 at 04:53:35PM +0800, Minda Chen wrote: > Get the correct ECAM offset and record the secondary bus > number in Multiple RC case. > > Signed-off-by: Minda Chen > --- > drivers/pci/pcie_plda_common.c | 5 +++-- > 1 file changed, 3 insertions(+), 2 deletions(-) Reviewed-by: Leo

Re: [PATCH v1] configs: starfive: Enable environment in SPI flash support

2023-08-09 Thread Leo Liang
On Tue, Aug 08, 2023 at 09:14:36PM +0800, Shengyu Qu wrote: > On Starfive Visionfive 2, the u-boot environment settings are saved to > on-board SPI flash. Enable relative configs by default and set offset > and size according to upstream linux dts. > > Signed-off-by: Shengyu Qu > --- > configs/s