Re: [PATCH 02/13] cbfs: Use ulong consistently

2020-05-19 Thread Bin Meng
On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > U-Boot uses ulong for addresses but there are a few places in this driver > that don't use it. Convert this driver over to follow this convention > fully. > > Signed-off-by: Simon Glass > --- > > fs/cbfs/cbfs.c | 9 - > include/cbfs

Re: [PATCH 01/13] cbfs: Rename the result variable

2020-05-19 Thread Bin Meng
Hi Simon, On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > At present the result variable in the cbfs_priv is called 'result' as is > the local variable in a few functions. Change the latter to 'ret' which is > more common in U-Boot and avoids confusion. > > Signed-off-by: Simon Glass > -

Re: [PATCH 03/13] cbfs: Use bool type for whether initialised

2020-05-19 Thread Bin Meng
Hi Simon, On Wed, May 13, 2020 at 10:24 PM Simon Glass wrote: > > At present this uses an int type. U-Boot now supports bool so use this > instead. Also use English spelling for initialised which we are here. I don't understand what issue is with American English "initialized"? I think they both

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 9:43 PM Marek Vasut wrote: > > On 5/19/20 3:33 PM, Bin Meng wrote: > > On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: > >> > >> Add weak function which is called right after fdtdec_setup() configured > >> the U-Boot DT. This permits board-specific adjustments to the U-

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Marek Vasut
On 5/19/20 3:33 PM, Bin Meng wrote: > On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: >> >> Add weak function which is called right after fdtdec_setup() configured >> the U-Boot DT. This permits board-specific adjustments to the U-Boot DT >> before U-Boot starts parsing the DT. This could be us

Re: [PATCH] cbfs: drop file_cbfs_result declaration

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 5:02 PM Christian Gmeiner wrote: > > It is not definded anywhere. > > Signed-off-by: Christian Gmeiner > --- > include/cbfs.h | 2 -- > 1 file changed, 2 deletions(-) > Reviewed-by: Bin Meng

Re: [PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 8:40 PM Marek Vasut wrote: > > Add weak function which is called right after fdtdec_setup() configured > the U-Boot DT. This permits board-specific adjustments to the U-Boot DT > before U-Boot starts parsing the DT. This could be used e.g. to patch in > various custom nodes

Antwort: [PATCH v2 13/35] acpigen: Support writing a length

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 13/35] acpigen: Support writing a length > > It is convenient to write a length value for preceding a block of data. > Of course the length is not known or is hard to calculate a priori. So add > a way to mark the start on a stack,

Patch for CVE-2018-18440 and CVE-2018-18439

2020-05-19 Thread Abhay Singh
Hi All, Can anyone please help me to locate the patch(diff) file for CVE-2018-18440 and CVE-2018-18439. Regards, Abhay

[PATCH V2 4/5] ARM: rmobile: Merge prior-stage firmware DT fragment into U-Boot DT on Gen3

2020-05-19 Thread Marek Vasut
The prior-stage firmware generates DT fragment containing the /firmware node, /reserved-memory node and /memory@ nodes. Merge these nodes into the U-Boot DT, so U-Boot can use this information. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom Ri

[PATCH V2 1/5] libfdt: Export overlay_apply_node() as fdt_overlay_apply_node()

2020-05-19 Thread Marek Vasut
This function is useful to merge a subset of DT into another DT, for example if some prior-stage firmware passes a DT fragment to U-Boot and U-Boot needs to merge it into its own DT. Export this function to permit implementing such functionality. Reviewed-by: Simon Glass Signed-off-by: Marek Vasu

[PATCH V2 5/5] ARM: rmobile: Enable support for OpTee on Gen3

2020-05-19 Thread Marek Vasut
Enable OpTee support on R-Car Gen3, so that U-Boot would copy the OpTee /firmware and /reserved-memory nodes into the Linux DT. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom Rini --- V2: No change --- configs/r8a77970_eagle_defconfig | 2

[PATCH V2 3/5] ARM: dts: rmobile: Reserve space in R-Car Gen3 DTs

2020-05-19 Thread Marek Vasut
Reserve 4 kiB of space in R-Car Gen3 DTs when those DTs are compiled to permit patching in OpTee-OS /firmware node, /reserved-memory node and possibly also additional /memory@ nodes. Reviewed-by: Simon Glass Signed-off-by: Marek Vasut Cc: Nobuhiro Iwamatsu Cc: Simon Glass Cc: Tom Rini --- V2:

[PATCH V2 2/5] fdtdec: Add weak function to patch U-Boot DT right after fdtdec_setup()

2020-05-19 Thread Marek Vasut
Add weak function which is called right after fdtdec_setup() configured the U-Boot DT. This permits board-specific adjustments to the U-Boot DT before U-Boot starts parsing the DT. This could be used e.g. to patch in various custom nodes or merge in DT fragments from prior-stage firmware. Signed-o

Re: [PATCH v1] i2c: octeon_i2c: Add I2C controller driver for Octeon

2020-05-19 Thread Simon Glass
Hi, On Thu, 14 May 2020 at 01:23, Stefan Roese wrote: > > From: Suneel Garapati > > Add support for I2C controllers found on Octeon II/III and Octeon TX > TX2 SoC platforms. > > Signed-off-by: Aaron Williams > Signed-off-by: Suneel Garapati > Signed-off-by: Stefan Roese > Cc: Heiko Schocher

Re: U-Boot DM device tree and Linux device tree - what are the differences and why?

2020-05-19 Thread Fabio Estevam
Hi Rudolf, On Tue, May 19, 2020 at 1:28 AM Rudolf J Streif wrote: > > I solved the problem with u-boot not recognizing the eMMC. The device > tree is working now for u-boot. > > However, i.MX6 is using SPL which is loaded into OCRAM. If I flash SPL > and u-boot to a boot partition on the eMMC the

Re: [PATCH v4] dm: uclass: don't assign aliased seq numbers

2020-05-19 Thread Michael Walle
Hi Simon, Am 2020-04-24 16:17, schrieb Michael Walle: Hi Simon, Am 2020-04-20 01:38, schrieb Simon Glass: [..snip..] > uclass 31: eth > 0 * smsc95xx_eth @ 3db69ac0, seq 0, (req -1) Shouldn't this be "req 0" if the ethernet alias is actually matched. Does u-boot actually supports matching

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-19 Thread Jupiter
Thanks Richard for the response. On 5/19/20, Richard Weinberger wrote: > Neither UBI nor UBIFS care about ECC. The MTD stack does. > If you write something in Linux you cannot read back in u-boot a common > problem is that u-boot and Linux use different MTD settings (layout, > ECC, etc...). That

[PATCH 4/4] arm: imx6q: pcm058: Convert pcm058 to use DM with DTs

2020-05-19 Thread Niel Fourie
Convert pcm058 support to use device trees and the driver model. Add rudimentary boot scripts to the environment, expand README. Signed-off-by: Niel Fourie Cc: Stefano Babic --- arch/arm/dts/Makefile | 1 + .../imx6q-phytec-mira-rdk-nand-u-boot.dtsi| 42 +++ arch/

[PATCH 3/4] arm: imx6q: pcm058: change MAINTAINER

2020-05-19 Thread Niel Fourie
Change the MAINTAINER of pcm058. Signed-off-by: Niel Fourie Cc: Stefano Babic --- board/phytec/pcm058/MAINTAINERS | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/phytec/pcm058/MAINTAINERS b/board/phytec/pcm058/MAINTAINERS index b0ca40277f..909dfc44af 100644 --- a/boa

[PATCH 2/4] arm: dts: imx6q: Add Linux dts files for Phytec Mira

2020-05-19 Thread Niel Fourie
Add Phytec Mira device tree files, for use with pcm058. >From Linux 5.6, commit 7111951b8d49 upstream Signed-off-by: Niel Fourie Cc: Stefano Babic --- arch/arm/dts/imx6q-phytec-mira-rdk-nand.dts | 72 arch/arm/dts/imx6qdl-phytec-mira.dtsi| 390 +++ arch/arm/dts/im

[PATCH 1/4] dts-bindings: regulator: Add dlg,da9063-regulator

2020-05-19 Thread Niel Fourie
Add da9063-regulator bindings from Linux 5.6: commit 7111951b8d49 upstream Signed-off-by: Niel Fourie Cc: Stefano Babic --- .../dt-bindings/regulator/dlg,da9063-regulator.h | 16 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/regulator/dlg,da9063-regul

[PATCH 0/4] arm: imx6q: pcm058: Convert support to use DM with DTs

2020-05-19 Thread Niel Fourie
This patch series updates the existing pcm058 board support to use device trees with driver model. The first two patches in the series pulls in the unmodified Linux dt-binding and dts files. The third patch changes the maintainer. The last patch contains the required changes. Niel Fourie (4): dt

Re: [RFC PATCH v3 3/3] rpi4: add a mapping for the PCIe XHCI controller MMIO registers (ARM 32bit)

2020-05-19 Thread Marek Szyprowski
Hi Simon, On 19.05.2020 00:38, Simon Glass wrote: > On Mon, 18 May 2020 at 07:18, Marek Szyprowski > wrote: >> Create a non-cacheable mapping for the 0x6 physical memory region, >> where MMIO registers for the PCIe XHCI controller are instantiated by the >> PCIe bridge. Due to 32bit limi

Antwort: [PATCH v2 11/35] acpi: Support generation of I2C descriptor

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 11/35] acpi: Support generation of I2C descriptor > > Add a function to write a GPIO descriptor to the generated ACPI code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: > - Fix memset of I2C descriptor > > Changes in

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Fabio Estevam
Hi Heiko, On Tue, May 19, 2020 at 1:18 AM Heiko Schocher wrote: > I am happy to add boards! > > @Anatolij: Do we have this board in our vlab? Or somehow remote accessible? > > @Fabio: I am sure you have some boards for testing, do you have a CI >setup for them? With the approach to report te

RE: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Peng Fan
+Simon > -Original Message- > From: Anatolij Gustschin > Sent: 2020年5月19日 18:27 > To: Peng Fan > Cc: u-boot@lists.denx.de; Ye Li ; Frank Li > ; sba...@denx.de > Subject: Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert > property value > > On Tue, 19 May 2020 10:05:21 +000

Re: Issue with 'ubi part' ubi_io_read: error -74 (ECC error)

2020-05-19 Thread Richard Weinberger
On Sun, May 17, 2020 at 1:28 PM Jupiter wrote: > > Sorry for a bit recalcitrant with the issue of calling 'ubi part" > error -74 -EBADMSG, is it MTD issue or u-boot issue? > > I used Linux kernel 4.19 to flash UBIFS volume images ubi.img to > imx6ull NAND using following command in Linux: > > flas

add commands to uboot

2020-05-19 Thread Kamal R. Prasad
hello, if I do uboot# help it lists commands, some of which are in bootloader/uboot64/common I added 1 more file there and it got compiled. but uboot# help does not show that command nor can I execute that command. how do I expose my own command? thanks -kamal

TPM 2.0

2020-05-19 Thread Kamal R. Prasad
hello, uboot has a TPM 2.0 test and drivers. Can someone tell me how to associate a given hw (eg on spi0, cs=) with the st driver and also how to use tom test? setting variable CONFIG_CMD_TPM_TEST was not sufficient for me to get this cmd on uboot prompt. thanks -kamal

Re: [PATCH] cbfs: drop file_cbfs_result declaration

2020-05-19 Thread Heinrich Schuchardt
On 19.05.20 11:01, Christian Gmeiner wrote: > It is not definded anywhere. > > Signed-off-by: Christian Gmeiner git grep -n 'file_cbfs_result' finds only the line in the include. Reviewed-by: Heinrich Schuchardt > --- > include/cbfs.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Anatolij Gustschin
On Tue, 19 May 2020 10:05:21 + Peng Fan peng@nxp.com wrote: ... > Would this help? > > diff --git a/drivers/cpu/imx8_cpu.c b/drivers/cpu/imx8_cpu.c > index 95c14c98d8..6c949ccbd4 100644 > --- a/drivers/cpu/imx8_cpu.c > +++ b/drivers/cpu/imx8_cpu.c > @@ -68,10 +68,13 @@ static int cpu_imx_g

Re: [PATCH] efi_loader: Remove unnecessary debug

2020-05-19 Thread Heinrich Schuchardt
On 19.05.20 12:13, Pragnesh Patel wrote: > Remove unnecessary debug() from efi_set_variable_common(). > native_name is NULL, so there is no meaning to print it. > > Signed-off-by: Pragnesh Patel Reviewed-by: Heinrich Schuchardt > --- > lib/efi_loader/efi_variable.c | 2 -- > 1 file changed, 2

[PATCH] efi_loader: Remove unnecessary debug

2020-05-19 Thread Pragnesh Patel
Remove unnecessary debug() from efi_set_variable_common(). native_name is NULL, so there is no meaning to print it. Signed-off-by: Pragnesh Patel --- lib/efi_loader/efi_variable.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/efi_loader/efi_variable.c b/lib/efi_loader/efi_variable.c i

RE: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Peng Fan
> Subject: Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert > property value > > Hi Peng, > > On Sun, 17 May 2020 16:53:17 +0200 > Anatolij Gustschin ag...@denx.de wrote: > ... > > Will try to bisect later. > > bisecting leads to: > # first bad commit: [3ee6ea443eb466399ab325a58b37

Re: [PATCH] rockchip: rk3328: rock64 - fix gen3 SPL hang

2020-05-19 Thread Matwey V. Kornilov
вт, 19 мая 2020 г. в 01:06, Kurt Miller : > > On Wed, 2020-05-13 at 16:10 -0400, Kurt Miller wrote: > > On Wed, 2020-05-13 at 22:58 +0300, Matwey V. Kornilov wrote: > > > > > > Thanks. Have you already checked it on gen2? I think I have gen2 board to > > > test. > > Yes, I have both gen3 and gen2

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Anatolij Gustschin
Hi Peng, On Sun, 17 May 2020 16:53:17 +0200 Anatolij Gustschin ag...@denx.de wrote: ... > Will try to bisect later. bisecting leads to: # first bad commit: [3ee6ea443eb466399ab325a58b377326ac5c57b5] cpu: imx_cpu: Print the CPU temperature for iMX8QM A72 -- Anatolij

Antwort: [PATCH v2 10/35] acpi: Support generation of a GPIO/irq for a device

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 10/35] acpi: Support generation of a GPIO/irq for a device > > Some devices use interrupts but some use GPIOs. Since these are fully > specified in the device tree we can automatically produce the correct ACPI > descriptor for a de

Re: [PATCH] arm: mach-k3: Enable dcache in SPL

2020-05-19 Thread Lokesh Vutla
On 19/05/20 12:30 pm, Jan Kiszka wrote: > On 19.05.20 08:24, Jan Kiszka wrote: >> On 19.05.20 08:18, Lokesh Vutla wrote: >>> Hi Jan, >>> >>> On 18/05/20 11:27 am, Jan Kiszka wrote: From: Jan Kiszka Add support for enabling dcache already in SPL. It accelerates the boot and r

[PATCH] cbfs: drop file_cbfs_result declaration

2020-05-19 Thread Christian Gmeiner
It is not definded anywhere. Signed-off-by: Christian Gmeiner --- include/cbfs.h | 2 -- 1 file changed, 2 deletions(-) diff --git a/include/cbfs.h b/include/cbfs.h index d915f9426d..d18001da76 100644 --- a/include/cbfs.h +++ b/include/cbfs.h @@ -80,8 +80,6 @@ struct cbfs_cachenode { u3

Re: [PATCH v2 09/35] acpi: Support generation of GPIO descriptor

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 09/35] acpi: Support generation of GPIO descriptor > > Add a function to write a GPIO descriptor to the generated ACPI code. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > Changes in v1: None > > include/acpi/a

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Anatolij Gustschin
Hi Heiko, On Tue, 19 May 2020 06:17:58 +0200 Heiko Schocher h...@denx.de wrote: ... > > Would it be possible to add this i.MX8QXP capricorn/giedi board into > > Heiko's boot farm? > > I am happy to add boards! > > @Anatolij: Do we have this board in our vlab? Or somehow remote accessible? No,

Re: [PATCH v11 06/18] sifive: fu540: add ddr driver

2020-05-19 Thread Bin Meng
On Tue, May 19, 2020 at 3:04 PM Pragnesh Patel wrote: > > Add driver for fu540 to support ddr initialization in SPL. > This driver is based on FSBL > (https://github.com/sifive/freedom-u540-c000-bootloader.git) > > Signed-off-by: Pragnesh Patel > --- > board/sifive/fu540/Kconfig | 2 + > d

Re: [PATCH 2/2] thermal: imx_scu_thermal: fix getting DT alert property value

2020-05-19 Thread Anatolij Gustschin
Hi Fabio, On Mon, 18 May 2020 20:32:06 -0300 Fabio Estevam feste...@gmail.com wrote: ... > Would it be possible to add this i.MX8QXP capricorn/giedi board into > Heiko's boot farm? this board requires a very special power supply and I have only one power supply unit of that type and can't share i

Antwort: [PATCH v2 08/35] acpi: Support string output

2020-05-19 Thread Wolfgang Wallner
Hi Simon, -"Simon Glass" schrieb: - > Betreff: [PATCH v2 08/35] acpi: Support string output > > Add support for output of strings and streams of bytes. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > Changes in v1: None > > include/acpi/acpigen.h | 19

Re: [PATCH] mmc: retry CMD1 in mmc_send_op_cond() until the eMMC is ready

2020-05-19 Thread Jaehoon Chung
On 5/19/20 12:37 PM, Peng Fan wrote: >> Subject: [PATCH] mmc: retry CMD1 in mmc_send_op_cond() until the eMMC >> is ready >> >> From: Haibo Chen >> >> According to eMMC specification v5.1 section 6.4.3, we should issue >> CMD1 repeatedly in the idle state until the eMMC is ready even if >> mmc_sen

TI boards vs. distro boot

2020-05-19 Thread Jan Kiszka
Hi Lokesh, seems like all boards including include/environment/ti/mmc.h will only search for ${boot_scripts} in the root of the target fs, not in ${boot_prefixes}. Known bug? Used to work fine with your downstream U-Boot some years ago. Just updated an SD card, only replacing the bootloader a

[PATCH v11 17/18] configs: fu540: Add config options for U-Boot SPL

2020-05-19 Thread Pragnesh Patel
With sifive_fu540_defconfig: User can use FSBL or u-boot-spl.bin anyone at a time. For FSBL, fsbl->fw_payload.bin (opensbi + U-Boot) For u-boot-spl.bin, u-boot-spl.bin->FIT image (opensbi + U-Boot proper + dtb) U-Boot SPL will be loaded by ZSBL from SD card (replace fsbl.bin with u-boot-spl.bin

[PATCH v11 18/18] doc: sifive: fu540: Add description for OpenSBI generic platform

2020-05-19 Thread Pragnesh Patel
OpenSBI generic platform support provides platform specific functionality based on the FDT passed by previous booting stage. Depends on OpenSBI commit: platform: Add generic FDT based platform support (sha1: f1aa9e54e6ae70aeac638d5b75093520f65d) Signed-off-by: Pragnesh Patel Reviewed-by: Bin

[PATCH v11 16/18] sifive: fu540: Add U-Boot proper sector start

2020-05-19 Thread Pragnesh Patel
From: Jagan Teki Add U-Boot proper sector start offset for SiFive FU540. This value is based on the partition layout supported by SiFive FU540. u-boot.itb need to write on this specific offset so-that the SPL will retrieve it from here and load. Signed-off-by: Jagan Teki Reviewed-by: Bin Meng

[PATCH v11 12/18] riscv: dts: sifive: Sync hifive-unleashed-a00 dts from linux

2020-05-19 Thread Pragnesh Patel
This sync has changes required to use GPIO in U-Boot and U-Boot SPL. Sync dts from linux v5.7-rc2 commit: "riscv: dts: Add GPIO reboot method to HiFive Unleashed DTS file" (sha1: 0a91330b2af9f71cd483f92774182b58f6d9) Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng --- arch/riscv/dts/fu

[PATCH v11 14/18] riscv: sifive: fu540: add SPL configuration

2020-05-19 Thread Pragnesh Patel
Add a support for SPL which will boot from L2 LIM (0x0800_) and then SPL will boot U-Boot FIT image (OpenSBI FW_DYNAMIC + u-boot.bin) from MMC boot devices. SPL related code is leveraged from FSBL (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel Revi

[PATCH v11 15/18] sifive: fu540: Add sample SD gpt partition layout

2020-05-19 Thread Pragnesh Patel
From: Jagan Teki This is a sample GPT partition layout for SD card, right now three important partitions are added to make the system bootable. partition layout: PartStart LBA End LBA Name Attributes Type GUID Partition GUID 1 0x0022 0x00

[PATCH v11 13/18] riscv: cpu: fu540: Add support for cpu fu540

2020-05-19 Thread Pragnesh Patel
Add SiFive fu540 cpu to support RISC-V arch Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/Kconfig | 1 + arch/riscv/cpu/fu540/Kconfig | 15 ++ arch/riscv/cpu/fu540/Makefile| 7 + arch/riscv/cpu

[PATCH v11 07/18] sifive: dts: fu540: Add DDR controller and phy register settings

2020-05-19 Thread Pragnesh Patel
Add DDR controller and phy register settings, taken from fsbl (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel Tested-by: Bin Meng --- .../dts/fu540-hifive-unleashed-a00-ddr.dtsi | 1489 + 1 file changed, 1489 insertions(+) create mod

[PATCH v11 11/18] clk: sifive: fu540-prci: Release ethernet clock reset

2020-05-19 Thread Pragnesh Patel
Release ethernet clock reset once clock is initialized. This is necessary to do as U-Boot proper needs ethernet clock. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/clk/sifive/fu540-prci.c | 20 1 file changed, 20 insertions(+) diff -

[PATCH v11 10/18] clk: sifive: fu540-prci: Add ddr clock initialization

2020-05-19 Thread Pragnesh Patel
Release ddr clock reset once clock is initialized Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/clk/sifive/fu540-prci.c | 51 + 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci.c b

[PATCH v11 09/18] clk: sifive: fu540-prci: Add clock enable and disable ops

2020-05-19 Thread Pragnesh Patel
Added clock enable and disable functions in prci ops Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/clk/sifive/fu540-prci.c | 108 1 file changed, 96 insertions(+), 12 deletions(-) diff --git a/drivers/clk/sifive/fu540-prci

[PATCH v11 05/18] riscv: sifive: dts: fu540: Add board -u-boot.dtsi files

2020-05-19 Thread Pragnesh Patel
Devicetree files in FU540 platform is synced from Linux, like other platforms does. Apart from these U-Boot in FU540 would also require some U-Boot specific node like clint. So, create board specific -u-boot.dtsi files. This would help of maintain U-Boot specific changes separately without touchin

[PATCH v11 04/18] lib: Makefile: build crc7.c when CONFIG_MMC_SPI

2020-05-19 Thread Pragnesh Patel
When build U-Boot SPL, meet an issue of undefined reference to 'crc7' for drivers/mmc/mmc_spi.c, so let's compile crc7.c when CONFIG_MMC_SPI selected. Signed-off-by: Pragnesh Patel Reviewed-by: Heinrich Schuchardt Reviewed-by: Bin Meng --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1

[PATCH v11 06/18] sifive: fu540: add ddr driver

2020-05-19 Thread Pragnesh Patel
Add driver for fu540 to support ddr initialization in SPL. This driver is based on FSBL (https://github.com/sifive/freedom-u540-c000-bootloader.git) Signed-off-by: Pragnesh Patel --- board/sifive/fu540/Kconfig | 2 + drivers/ram/Kconfig| 1 + drivers/ram/Makefile |

[PATCH v11 08/18] riscv: sifive: dts: fu540: add U-Boot dmc node

2020-05-19 Thread Pragnesh Patel
Add dmc node to enable ddr driver. dmc is used to initialize the memory controller. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 9 + 1 file changed, 9 insertions(+) diff --git a/arch/riscv/dts/fu540-c000-u-boot.dt

[PATCH v11 00/18] RISC-V SiFive FU540 support SPL

2020-05-19 Thread Pragnesh Patel
This series add support for SPL to FU540. U-Boot SPL can boot from L2 LIM (0x0800_) and jump to OpenSBI(FW_DYNAMIC firmware) and U-Boot proper from MMC devices. This series depends on: [1] https://patchwork.ozlabs.org/patch/1281853 [2] https://patchwork.ozlabs.org/patch/1281852 All these toge

[PATCH v11 01/18] misc: add driver for the SiFive otp controller

2020-05-19 Thread Pragnesh Patel
Added a misc driver to handle OTP memory in SiFive SoCs. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- drivers/misc/Kconfig | 7 + drivers/misc/Makefile | 1 + drivers/misc/sifive-otp.c | 273 ++ 3 files changed, 28

[PATCH v11 03/18] riscv: Add _image_binary_end for SPL

2020-05-19 Thread Pragnesh Patel
For SPL_SEPARATE_BSS, Device tree will be put at _image_binary_end Signed-off-by: Pragnesh Patel Reviewed-by: Anup Patel Reviewed-by: Jagan Teki Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/cpu/u-boot-spl.lds | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/riscv/cpu/u-bo

[PATCH v11 02/18] riscv: sifive: fu540: Use OTP DM driver for serial environment variable

2020-05-19 Thread Pragnesh Patel
Use the OTP DM driver to set the serial environment variable. Signed-off-by: Pragnesh Patel Reviewed-by: Bin Meng Tested-by: Bin Meng --- arch/riscv/dts/fu540-c000-u-boot.dtsi | 14 +++ .../dts/hifive-unleashed-a00-u-boot.dtsi | 2 + board/sifive/fu540/Kconfig

Re: [PATCH] arm: mach-k3: Enable dcache in SPL

2020-05-19 Thread Jan Kiszka
On 19.05.20 08:24, Jan Kiszka wrote: On 19.05.20 08:18, Lokesh Vutla wrote: Hi Jan, On 18/05/20 11:27 am, Jan Kiszka wrote: From: Jan Kiszka Add support for enabling dcache already in SPL. It accelerates the boot and resolves the risk to run into unaligned 64-bit accesses. Based on original

<    1   2   3