Re: [U-Boot] [PATCH] rockchip: rk3288: Fix dwc2 gadget registration

2019-11-13 Thread Michael Nazzareno Trimarchi
Hi Kever On Thu, Nov 14, 2019 at 8:29 AM Michael Nazzareno Trimarchi wrote: > > Hi > > Is this public? > > Michael > > On Thu, Nov 14, 2019 at 8:15 AM Kever Yang wrote: > > > > Hi Michael, > > > > I have send a similar patch to fix this issue weeks ago, and ready > > to merge. > > > >

[U-Boot] Please pull u-boot-marvell/master

2019-11-13 Thread Stefan Roese
Hi Tom, please pull the following MVEBU related fixes: - Clearfog: Fix SD card booting (Baruch) - Fix potential dereference NULL pointer in dram_init() (Chris)

Re: [U-Boot] [PATCH 2/2] arm: mvebu: clearfog: fix boot from SD card

2019-11-13 Thread Stefan Roese
On 03.11.19 10:52, Baruch Siach wrote: Enable gpio0 in SPL to allow the sdhci driver read the SD card-detect signal. Signed-off-by: Baruch Siach Applied to u-boot-marvell/master. Thanks, Stefan ___ U-Boot mailing list U-Boot@lists.denx.de

Re: [U-Boot] [PATCH] ARM: mvebu: don't dereference null bd pointer

2019-11-13 Thread Stefan Roese
On 22.10.19 09:05, Chris Packham wrote: As mentioned in doc/README.arm-relocation gd->bd is not available in dram_init() so we shouldn't attempt to access it. Signed-off-by: Chris Packham Applied to u-boot-marvell/master. Thanks, Stefan ___ U-Boot

Re: [U-Boot] [PATCH] rockchip: rk3288: Fix dwc2 gadget registration

2019-11-13 Thread Michael Nazzareno Trimarchi
Hi Is this public? Michael On Thu, Nov 14, 2019 at 8:15 AM Kever Yang wrote: > > Hi Michael, > > I have send a similar patch to fix this issue weeks ago, and ready > to merge. > > > Thanks, > > - Kever > > On 2019/11/14 上午12:07, Michael Trimarchi wrote: > > rk3288 needs phy registration

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-11-13 Thread Anup Patel
On Wed, Nov 13, 2019 at 9:13 AM Rick Chen wrote: > > Hi Lukas > > > > > Hi Rick, > > > > On Mon, 2019-11-11 at 15:19 +0800, Rick Chen wrote: > > > Hi Lukas > > > > > > > Hi Rick, > > > > > > > > On Fri, 2019-11-08 at 15:27 +0800, Rick Chen wrote: > > > > > Hi Atish > > > > > > > > > > > Hi Atish

Re: [U-Boot] [PATCH] rockchip: rk3399: Add Pinebook Pro laptop support

2019-11-13 Thread Kever Yang
Hi Peter,     Thanks for your patch for pinebook pro support. see comments below. On 2019/11/14 上午8:51, Peter Robinson wrote: Add initial support for Pinebook Pro laptop. Specification - Rockchip RK3399 - 4GB Dual-Channel LPDDR4 - SD card slot - eMMC socket - 128Mb SPI Flash - PCIe 4X slot -

Re: [U-Boot] [PATCH] rockchip: rk3288: Fix dwc2 gadget registration

2019-11-13 Thread Kever Yang
Hi Michael,     I have send a similar patch to fix this issue weeks ago, and ready to merge. Thanks, - Kever On 2019/11/14 上午12:07, Michael Trimarchi wrote: rk3288 needs phy registration in order to work or the board just hang Signed-off-by: Michael Trimarchi ---

[U-Boot] [v2] armv8: ls1028a: disable multimedia feature when not supported

2019-11-13 Thread Wen He
From: Yuantian Tang Ls1028a has 4 personalities: Ls1028a, Ls1027a, Ls1017a and Ls1018a. Both Ls1027a and Ls1017a personalities are lower functionality version which doesn't support the multimedia subsystems, like LCD, GPU. To disable multimedia feature on non-multimedia version, set the status

[U-Boot] [v2] armv8: ls1043aqds: modify the qspi_bootcmd definition

2019-11-13 Thread Wen He
Fix the kernel offset of qspi_bootcmd scripts, followed the qoriq_memory_layout definition. Signed-off-by: Wen He --- include/configs/ls1043a_common.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/configs/ls1043a_common.h b/include/configs/ls1043a_common.h

[U-Boot] [PATCH v2 07/10] riscv: Fix clear bss loop in the start-up code

2019-11-13 Thread Andes
From: Rick Chen For RV64, it will use sd instruction to clear t0 register, and the increament will be 8 bytes. So if the difference between__bss_strat and __bss_end was not 8 bytes aligned, the clear bss loop will overflow and acks like system hang. Signed-off-by: Rick Chen Cc: KC Lin Cc:

[U-Boot] [PATCH v2 09/10] riscv: dts: Add #address-cells and #size-cells in nor node

2019-11-13 Thread Andes
From: Rick Chen Those are required for cfi-flash driver to get correct address information. Also modify size description correctly. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- arch/riscv/dts/ae350_32.dts | 4 +++- arch/riscv/dts/ae350_64.dts | 4 +++- 2 files changed, 6

[U-Boot] [PATCH v2 10/10] doc: update AX25-AE350 RISC-V documentation

2019-11-13 Thread Andes
From: Rick Chen Add descriptions about U-Boot SPL feature and how to build and run. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- doc/board/AndesTech/ax25-ae350.rst | 209 - 1 file changed, 206 insertions(+), 3 deletions(-) diff --git

[U-Boot] [PATCH v2 08/10] riscv: dts: Support four cores SMP

2019-11-13 Thread Andes
From: Rick Chen Add CPU2 and CPU3 information in cpus node to support four cores SMP booting. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- arch/riscv/dts/ae350_32.dts | 57 ++--- arch/riscv/dts/ae350_64.dts | 57

[U-Boot] [PATCH v2 06/10] spl: cache: Allow cache drivers in SPL

2019-11-13 Thread Andes
From: Rick Chen When ax25-ae350 try to enable v5l2 cache driver in SPL configuration, it need this option for cache support in SPL. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- common/spl/Kconfig | 7 +++ drivers/Makefile | 1 + 2 files changed, 8 insertions(+) diff --git

[U-Boot] [PATCH v2 03/10] riscv: ax25-ae350: Use generic memory size setup

2019-11-13 Thread Andes
From: Rick Chen To get memory size from device tree instead of get_ram_size(). This can avoid memory access fault in U-Boot proper after PMP configurations in OpenSBI. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- board/AndesTech/ax25-ae350/ax25-ae350.c | 21 ++--- 1

[U-Boot] [PATCH v2 05/10] riscv: ax25: cache: Add SPL_RISCV_MMODE for SPL

2019-11-13 Thread Andes
From: Rick Chen The mcache_ctl csr only can be manipulated in M mode. Add SPL_RISCV_MMODE for U-Boot SPL to control cache operation. Signed-off-by: Rick Chen Cc: KC Lin Cc: Alan Kao --- arch/riscv/cpu/ax25/cache.c | 60 ++--- 1 file changed, 46

[U-Boot] [PATCH v2 04/10] riscv: andes_plic: Fix some wrong configurations

2019-11-13 Thread Andes
From: Rick Chen Fix two wrong settings of andes plic driver as below: 1. Fix wrong pending register base definition. 2. Declaring the en variable in enable_ipi() as unsigned int instead of int can help to fix wrong plic enabling setting in RV64. Signed-off-by: Rick Chen Cc: KC Lin Cc:

[U-Boot] [PATCH v2 02/10] riscv: ax25-ae350: add SPL configuration

2019-11-13 Thread Andes
From: Rick Chen This patch provides four configurations which can support U-Boot SPL to boot from RAM or FLASH and then boot FIT image including OpenSBI FW_DYNAMIC firmware and U-Boot proper images from RAM or MMC boot devices. With ae350_rv[32|64]_spl_defconfigs: U-Boot SPL will be loaded by

[U-Boot] [PATCH v2 00/10] RISC-V AX25-AE350 support SPL

2019-11-13 Thread Andes
From: Rick Chen This series add support for SPL to AX25-AE350. U-Boot SPL can boot from RAM or ROM and jump to OPenSbi(FW_DYNAMIC firmware) and U-Boot proper from RAM or MMC devices. Also fix some bugs of andes plic driver and improve cache configurations for SPL. Changes in v2: - Remove

[U-Boot] [PATCH v2 01/10] riscv: ax25: add SPL support

2019-11-13 Thread Andes
From: Rick Chen The U-Boot SPL will boot in M mode and load the FIT image which include OpenSBI and U-Boot proper images. After loading progress, it will jump to OpenSBI first and then U-Boot proper which will run in S mode. Also remove V5L2_CACHE due to U-Boot SPL code size consideration.

[U-Boot] [v2] include/configs: ls1012a: add pfe stop command

2019-11-13 Thread Biwen Li
This adds pfe stop command before enter linux kernel to fix a problem that ethernet won't be workable after enter linux Why need execute the command before enter linux kernel? - There is a h/w limitation in LS1012A PFE, to re-initialize PFE it has to be safe shutdown, these steps are done

Re: [U-Boot] [PATCH] include/configs: ls1012a: add pfe stop command before boot linux kernel

2019-11-13 Thread Biwen Li
> -Original Message- > From: Priyanka Jain > Sent: 2019年11月14日 11:48 > To: Biwen Li ; Shengzhou Liu ; > Alison Wang ; Jagdish Gediya > ; s...@denx.de; Rajesh Bhagat > > Cc: Jiafei Pan ; Xiaobo Xie ; > u-boot@lists.denx.de; Biwen Li > Subject: RE: [PATCH] include/configs: ls1012a: add

Re: [U-Boot] [PATCH] include/configs: ls1012a: add pfe stop command before boot linux kernel

2019-11-13 Thread Priyanka Jain
>-Original Message- >From: Biwen Li >Sent: Wednesday, November 13, 2019 3:12 PM >To: Shengzhou Liu ; Priyanka Jain >; Alison Wang ; Jagdish >Gediya ; s...@denx.de; Prabhakar X >; Rajesh Bhagat >Cc: Jiafei Pan ; Xiaobo Xie ; u- >b...@lists.denx.de; Biwen Li >Subject: [PATCH]

[U-Boot] [PATCH v3 9/9] doc: rockchip: Add documentation for rk3308 based boards

2019-11-13 Thread Andy Yan
Add build documentation for rk3308 based boards. Signed-off-by: Andy Yan --- Changes in v3: - Doc update with more detail message. doc/README.rockchip | 92 - 1 file changed, 91 insertions(+), 1 deletion(-) diff --git a/doc/README.rockchip

[U-Boot] [PATCH v3 8/9] rockchip: rk3308: Add support for ROC-RK3308-CC board

2019-11-13 Thread Andy Yan
ROC-RK3308-CC is a rk3308 based board designed by Firelfy, with eMMC and 256MB DDR3 and RTL8188 Wifi on board. Signed-off-by: Andy Yan --- Changes in v3: - rename config to roc-cc-rk3308_defconfig arch/arm/mach-rockchip/rk3308/Kconfig| 5 ++ board/firefly/firefly-rk3308/Kconfig

[U-Boot] [PATCH v3 7/9] rockchip: rk3308: Add dts for ROC-RK3308-CC

2019-11-13 Thread Andy Yan
Add dts file for ROC-RK3308-CC from firefly. Sync form linux rockchip for v5.5-armsoc/dts64: "arm64: dts: rockchip: Add devicetree for board roc-rk3308-cc" (sha1: 4403e1237be3af0977aa23ef399e3496316317a0) Signed-off-by: Andy Yan --- Changes in v3: - Add commit message. arch/arm/dts/Makefile

[U-Boot] [PATCH v3 5/9] rockchip: rk3308: Add sdram driver

2019-11-13 Thread Andy Yan
A dm based dram driver for rk3308 u-boot to get capacity. Signed-off-by: Andy Yan Reviewed-by: Kever Yang --- Changes in v3: None drivers/ram/rockchip/Makefile | 1 + drivers/ram/rockchip/sdram_rk3308.c | 55 + 2 files changed, 56 insertions(+) create mode

[U-Boot] [PATCH v3 6/9] rockchip: mkimage: add support for RK3308

2019-11-13 Thread Andy Yan
Usage: (1) tools/mkimage -n rk3308 -T rksd -d tpl/u-boot-tpl.bin idbloader.img (2) cat spl/u-boot-spl.bin >> idbloader.img (3) upgrade_tool wl 0x40 idbloader.img Note: When use a ddr binary from rkbin as tpl, use it replace u-boot-tpl.bin in (1) Signed-off-by: Andy Yan Reviewed-by: Kever

[U-Boot] [PATCH v3 2/9] rockchip: clk: Add clk driver for rk3308

2019-11-13 Thread Andy Yan
From: Finley Xiao Add clk controller driver for RK3308 SOC. This patch depends on Elaine's pll patch[0]. [0]http://patchwork.ozlabs.org/patch/1183718/ Signed-off-by: Andy Yan Reviewed-by: Kever Yang --- Changes in v3: None drivers/clk/rockchip/Makefile |1 +

[U-Boot] [PATCH v3 3/9] arm: dts: rockchip: Add dts for rk3308 evb

2019-11-13 Thread Andy Yan
Add dts for rk3308 evb, sync from the linux kernel upstream list [0]. [0]https://patchwork.kernel.org/patch/11201555/ Signed-off-by: Andy Yan Reviewed-by: Kever Yang --- Changes in v3: None arch/arm/dts/Makefile |3 + arch/arm/dts/rk3308-evb-u-boot.dtsi | 17 +

[U-Boot] [PATCH v3 4/9] board: rockchip: Add rk3308 evb support

2019-11-13 Thread Andy Yan
Add support for rk3308 evaluation board. Signed-off-by: Andy Yan Reviewed-by: Kever Yang --- Changes in v3: None arch/arm/mach-rockchip/rk3308/Kconfig | 8 +++ board/rockchip/evb_rk3308/Kconfig | 15 + board/rockchip/evb_rk3308/MAINTAINERS | 6 ++

[U-Boot] [PATCH v3 0/9] Add support for RK3308 SOC

2019-11-13 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. This path set add basic support for it, test on a emmc based evb and roc-rk3308-cc. Changes in v3: - Add

[U-Boot] [PATCH v3 1/9] arm: rockchip: Add RK3308 SOC support

2019-11-13 Thread Andy Yan
RK3308 is a quad Cortex A35 based SOC with rich audio interfaces(I2S/PCM/TDM/PDM/SPDIF/VAD/HDMI ARC), which designed for intelligent voice interaction and audio input/output processing. Signed-off-by: Andy Yan Reviewed-by: Kever Yang --- Changes in v3: None

[U-Boot] Pull request for UEFI sub-system for efi-2020-01-rc3

2019-11-13 Thread Heinrich Schuchardt
The following changes since commit 3ff1ff3ff76c15efe0451309af084ee6c096c583: Merge branch '2019-11-12-migrate-SYS_REDUNDAND_ENVIRONMENT' (2019-11-12 13:40:58 -0500) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-01-rc3 for you

[U-Boot] [PATCH v2] cosmetic: Fix spelling and whitespace errors

2019-11-13 Thread Thomas Hebb
Signed-off-by: Thomas Hebb --- Makefile| 2 +- README | 16 +--- arch/arm/cpu/armv8/sec_firmware.c | 2 +- arch/arm/mach-rockchip/Kconfig | 2 +- arch/arm/mach-rockchip/bootrom.c| 4 ++--

[U-Boot] [PATCH] rockchip: rk3399: Add Pinebook Pro laptop support

2019-11-13 Thread Peter Robinson
Add initial support for Pinebook Pro laptop. Specification - Rockchip RK3399 - 4GB Dual-Channel LPDDR4 - SD card slot - eMMC socket - 128Mb SPI Flash - PCIe 4X slot - AP6256 for WiFi + BT - 1920*1080 screen - USB 3.0, 2.0 - USB Type C power and data - DC 12V/2A Signed-off-by: Peter Robinson ---

[U-Boot] [PATCH 1/3] rockchip: dts: rk3399: move the u-boot, dm-pre-reloc to the u-boot.dtsi

2019-11-13 Thread Peter Robinson
The u-boot specific pieces in the dts files should be in u-boot.dtsi not the main files, this allows easier sync with upstream. The rk3399.dtsi has a mix of both so move them all for consistency. Signed-off-by: Peter Robinson --- v2: fix a typo -> s/pmucrc/pmucru/

[U-Boot] [PATCH v2 1/3] rockchip: dts: rk3399: move the u-boot, dm-pre-reloc to

2019-11-13 Thread Peter Robinson
[PATCH v2 1/3] rockchip: dts: rk3399: move the u-boot,dm-pre-reloc to ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

[U-Boot] [PATCH] mtd: spi-nor: ids: Add GigaDevice gd25q128

2019-11-13 Thread Peter Robinson
Add gd25q128 128Mbit chip to spi-nor id table. Tested on Pinebook Pro Signed-off-by: Peter Robinson --- drivers/mtd/spi/spi-nor-ids.c | 5 + 1 file changed, 5 insertions(+) diff --git a/drivers/mtd/spi/spi-nor-ids.c b/drivers/mtd/spi/spi-nor-ids.c index d3b84574ac..973b6f86c9 100644 ---

Re: [U-Boot] [PATCH v4 2/2] cmd: Add dtimg command

2019-11-13 Thread Eugeniu Rosca
Hi Roman, (CC-ing Igor for Android topics) On Wed, Nov 13, 2019 at 12:19:59PM +0200, Roman Stratiienko wrote: > On Tue, Nov 12, 2019 at 8:18 PM Eugeniu Rosca wrote: > > > > Hello Sam, > > > > On Thu, Aug 16, 2018 at 11:34:13PM +0300, Sam Protsenko wrote: > > > dtimg command allows user to work

Re: [U-Boot] [PATCH v4 1/5] net: mvpp2x: fix traffic stuck after PHY start error

2019-11-13 Thread Ramon Fried
On Fri, Aug 16, 2019 at 1:09 AM wrote: > > From: Stefan Chulski > > Issue: > - Network stuck if autonegotion fails. > > Issue root cause: > > - When autonegotiation fails during port open procedure, the packet > processor configuration does not finish and open procedure exits > with error. >

Re: [U-Boot] [PATCH v4 5/5] net: mvpp2: MVPP2 now needs MVMDIO

2019-11-13 Thread Ramon Fried
On Fri, Aug 16, 2019 at 1:09 AM wrote: > > From: Nevo Hed > > Changes to mvpp2.c require the MVMDIO module which in turn uses > DM_MDIO. > > Signed-off-by: Nevo Hed > --- > drivers/net/Kconfig | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig

Re: [U-Boot] [PATCH v4 4/5] net: mvpp2: use new MVMDIO driver

2019-11-13 Thread Ramon Fried
On Fri, Aug 16, 2019 at 1:09 AM wrote: > > From: Nevo Hed > > This commit ports mvpp2 to use the recently introduced Marvell MDIO > (MVMDIO) driver. It removes direct interaction with the SMI & XSMI > busses. This commit is based in part on earlier work by > Ken Ma in Marvell's own downstream

Re: [U-Boot] [PATCH v4 2/5] net: mvpp2: mark phy as invalid in case of missing appropriate driver

2019-11-13 Thread Ramon Fried
On Fri, Aug 16, 2019 at 1:09 AM wrote: > > From: Grzegorz Jaszczyk > > If the phy doesn't match with any existing u-boot drivers, the phy > framework will connect it to the generic one which uid == > 0x. In this case, act as if the phy wouldn't be declared in > dts. Otherwise, in case of

Re: [U-Boot] [PATCH v4 3/5] arm: dts: armada-cp110-*dtsi: add xmdio nodes

2019-11-13 Thread Ramon Fried
On Fri, Aug 16, 2019 at 1:09 AM wrote: > > From: Nevo Hed > > Based on upstream-linux > See https://github.com/torvalds/linux/commit/f66b2aff. > > However made the XSMI register window 0x16 (22) bytes per my reading > of the functional spec. Similar commits in Marvels own repo bump it > to

Re: [U-Boot] [PATCH v6 19/19] arm: socfpga: agilex: Enable Agilex SoC build

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 05:11 schrieb Ley Foon Tan: Add build support for Agilex SoC. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Include socfpga_soc64_common.h. v5: - Enable NCORE_CACHE v3: - Disable CONFIG_USE_TINY_PRINTF v2: - Remove IC_CLK define, use clock DM method

Re: [U-Boot] [RFC/RFT PATCH v4 3/3] image: Add compressed Image parsing support in booti.

2019-11-13 Thread Atish Patra
On Wed, 2019-11-13 at 15:36 +0200, David Abdurachmanov wrote: > On Sat, Nov 9, 2019 at 2:14 AM Atish Patra > wrote: > > Add compressed Image parsing support so that booti can parse both > > flat and compressed Image to boot Linux. Currently, it is difficult > > to calculate a safe address for

Re: [U-Boot] [PATCH v6 17/19] arm: dts: agilex: Add base dtsi and devkit dts

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 05:11 schrieb Ley Foon Tan: Add device tree files for Agilex SoC platform. Based on Linux Commit ID4b36daf9ada30. Based on? Why is this not a copy of the Linux devicetree files? The single difference should be in *-u-boot.dtsi. Being like this, I don't know what

Re: [U-Boot] [PATCH v6 13/19] ddr: altera: Restructure Stratix 10 SDRAM driver

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 05:11 schrieb Ley Foon Tan: Restructure Stratix 10 SDRAM driver. Move common code to separate file, in preparation to support SDRAM driver for Agilex. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Remove compatible "intel,sdr-ctl-agilex" from this

Re: [U-Boot] [PATCH v6 08/19] arm: socfpga: Fix CLKMGR_INTOSC_HZ to 400MHz

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 05:11 schrieb Ley Foon Tan: CLKMGR_INTOSC_HZ should be 400MHz, instead of 460MHz. Removed also unused macros CLKMGR_EOSC1_HZ and CLKMGR_FPGA_CLK_HZ. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Remove unused macros CLKMGR_EOSC1_HZ and

Re: [U-Boot] [PATCH v6 07/19] arm: socfpga: Move Stratix10 and Agilex clock manager common code

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 05:11 schrieb Ley Foon Tan: Move Stratix10 and Agilex clock manager common code to new header file. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Move #include to top of header file. v5: - Revert CLKMGR_INTOSC_HZ to 460MHz. ---

Re: [U-Boot] [PATCH v6 4/4] arm: socfpga: Convert clock manager from struct to defines

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 03:38 schrieb Ley Foon Tan: Convert clock manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get clock manager base address from DT node instead of using #define. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Call to

Re: [U-Boot] [PATCH v6 3/4] arm: socfpga: Convert system manager from struct to defines

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 03:38 schrieb Ley Foon Tan: Convert system manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get system manager base address from DT node instead of using #define. Signed-off-by: Ley Foon Tan Reviewed-by: Simon Goldschmidt --- v6: - Call to

Re: [U-Boot] [PATCH v6 2/4] arm: socfpga: Convert reset manager from struct to defines

2019-11-13 Thread Simon Goldschmidt
Am 08.11.2019 um 03:38 schrieb Ley Foon Tan: Convert reset manager for Gen5, Arria 10 and Stratix 10 from struct to defines. Change to get reset manager base address from DT node instead of using #define. spl_early_init() initializes the DT setup. So, move spl_early_init() to beginning of

Re: [U-Boot] [PATCH v3 33/42] common: Move interrupt functions into a new header

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:42PM -0700, Simon Glass wrote: > These functions do not use driver model but are fairly widely used in > U-Boot. But it is not clear that they will use driver model anytime soon, > so we don't want to label them as 'legacy'. > > Move them to a new irq_func.h header

Re: [U-Boot] [PATCH v3 40/42] common: Move trap_init() out of common.h

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:49PM -0700, Simon Glass wrote: > Move this function into the init.h header file. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot mailing list

Re: [U-Boot] [PATCH v3 42/42] common: Move old EEPROM functions into a new header

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:51PM -0700, Simon Glass wrote: > These functions do not use driver model but are still used. Move them to a > new eeprom.h header file. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini (and I think this is the end of patches that changed from v2 to v3 and

Re: [U-Boot] [PATCH v3 34/42] common: Move enable/disable_interrupts out of common.h

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:43PM -0700, Simon Glass wrote: > Move these two functions into the irq_funcs.h header file. Also move > interrupt_handler_t as this is used by the irq_install_handler() function. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc

Re: [U-Boot] [PATCH v3 20/42] arm: pxa: Drop pxa_wait_ticks()

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:29PM -0700, Simon Glass wrote: > This function has a similar name to the common wait_ticks(). It is only > used in one place and seems small enough to drop. > > Inline it. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description:

Re: [U-Boot] [PATCH v3 19/42] common: Move wait_ticks functions out of common.h

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:28PM -0700, Simon Glass wrote: > This function belongs in time.h so move it over and add a comment. > > Signed-off-by: Simon Glass Reviewed-by: Tom Rini -- Tom signature.asc Description: PGP signature ___ U-Boot

Re: [U-Boot] rockchip: rk3399: TPL: rockpro64: Wrong memory size detected

2019-11-13 Thread Kurt Miller
On Tue, 2019-09-17 at 12:02 -0400, Kurt Miller wrote: > On Tue, 2019-09-17 at 10:57 +0800, Kever Yang wrote: > > > > Hi Kurt, > > > > Could you try with below update: > > > > > > diff --git a/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi  > > b/arch/arm/dts/rk3399-sdram-lpddr4-100.dtsi > >

[U-Boot] [PATCH] patman: fix coverletter cc list with nulls

2019-11-13 Thread Robert Beckett
fixes: 8ab452d5877638a97e5bdd521d119403b70b45f5 When compiling list of cover letter cc addresses, using null as a separater, then encoding to utf-8 results in lots of "\x00" as separators. patman then doesnt understand that when it comes to repoting the list to send-email. Fix this by not

[U-Boot] [PATCH v1 1/4] dfu: Drop unused prototype of dfu_trigger_reset()

2019-11-13 Thread Andy Shevchenko
After the commit 1cc03c5c53c0 ("dfu: Provide means to find difference between dfu-util -e and -R") the dangling ptototype appeared. Remove it here. Fixes: 1cc03c5c53c0 ("dfu: Provide means to find difference between dfu-util -e and -R") Cc: Lukasz Majewski Cc: Stephen Warren Signed-off-by:

[U-Boot] [PATCH v1 3/4] dfu: Add optional timeout parameter

2019-11-13 Thread Andy Shevchenko
When the `dfu` command is called from the U-Boot environment, it now accepts an optional parameter that specifies a timeout (in seconds). If a DFU connection is not made within that time the `dfu` command exits (as it would if Ctrl+C was pressed). If the timeout is left empty or being zero the

[U-Boot] [PATCH v1 4/4] x86: edison: Enable DFU timeout

2019-11-13 Thread Andy Shevchenko
The stock U-Boot on Intel Edison has timeout parameter for DFU command. Enable it here to be compatible with the original U-Boot configuration. Signed-off-by: Andy Shevchenko --- configs/edison_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/edison_defconfig

[U-Boot] [PATCH v1 2/4] dfu: Refactor do_dfu() to handle optional argument

2019-11-13 Thread Andy Shevchenko
In the future we may utilize optional argument in 'dfu' command line. As a preparation for this, refactor do_dfu(). Signed-off-by: Andy Shevchenko --- cmd/dfu.c | 17 ++--- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/cmd/dfu.c b/cmd/dfu.c index

[U-Boot] Switch MVPP2 to use new MVMDIO - how do I move this along?

2019-11-13 Thread Nevo Hed
Hi My submission below went through several iterations, the last of which was requests to squash some commits. I *think* I performed all the requested modifications several months ago. I am new with this email-based patch system so not sure if I'm missing a step in the submission/review process

Re: [U-Boot] [PATCH 1/3] tools: dumpimage: Provide more feedback on internal errors

2019-11-13 Thread Andrew F. Davis
On 9/17/19 5:09 PM, Andrew F. Davis wrote: > The dumpimage utility errors out in a number of places without providing > sufficient feedback to allow the user to easily determine what has gone > wrong. Add additional error messages to make the cause of the failure > more obvious. > >

[U-Boot] [PATCH] rockchip: rk3288: Fix dwc2 gadget registration

2019-11-13 Thread Michael Trimarchi
rk3288 needs phy registration in order to work or the board just hang Signed-off-by: Michael Trimarchi --- arch/arm/mach-rockchip/board.c | 12 arch/arm/mach-rockchip/rk3288/rk3288.c | 39 ++ 2 files changed, 51 insertions(+) diff --git

[U-Boot] [PATCH] ARM: dts: da850-lcdk: Update DTS files for SPL device tree support

2019-11-13 Thread Adam Ford
Currently, the da850-lcdk uses SPL_OF_PLATDATA and manually loads the necessary source code instead of using the auto-generated, because the drivers don't properly autogenerate the code. This patch simply enables the various device tree options to mimic the da850-evm which doesn't need or use

[U-Boot] [PATCH v2 1/4] mtd: spi: spi-nor-core: Add SST vendor specific SFDP parser

2019-11-13 Thread Tudor.Ambarus
From: Tudor Ambarus JESD216 allow vendors to define their own SFDP tables. Add SST SFDP parser. The vendor table is allocated using resource-managed kmalloc - the table will be freed on driver detach. It will be accessible by getting the UCLASS_SPI_FLASH's private data. The SST's SFDP table is

[U-Boot] [PATCH v2 0/4] mtd: spi: spi-nor-core: Add SST vendor specific SFDP parser

2019-11-13 Thread Tudor.Ambarus
From: Tudor Ambarus Parse manufacturer specific SFDP table. The SST SFDP table contains pre-programmed globally unique MAC addresses. Retrieve the MAC address from the SPI NOR flash and set it in ethaddr in env. v2: - s/SFDP_MICROCHIP_ID/SFDP_SST_ID - don't drop all information we extracted

[U-Boot] [PATCH v2 4/4] configs: sama5d27_wlsom1_ek: mmc: Enable SPI NOR ethaddr retrieval

2019-11-13 Thread Tudor.Ambarus
From: Tudor Ambarus Enable the SPI NOR SFDP support and the Microchip QSPI driver. CONFIG_SPI_FLASH_SFDP_SUPPORT enables the SFDP Vendor parser, and for the SST case, the retrieval of the ethaddr from the SPI NOR flash. While touching the SPI NOR logic, sync with the

[U-Boot] [PATCH v2 3/4] configs: sama5d27_wlsom1_ek: qspiflash: Enable SPI NOR ethaddr retrieval

2019-11-13 Thread Tudor.Ambarus
From: Tudor Ambarus CONFIG_SPI_FLASH_SFDP_SUPPORT enables the SFDP Vendor parser, and for the SST case, the retrieval of the ethaddr from the SPI NOR flash. Signed-off-by: Tudor Ambarus --- configs/sama5d27_wlsom1_ek_qspiflash_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git

[U-Boot] [PATCH v2 2/4] board: atmel: sama5d27_wlsom1_ek: Set ethaddr from spi-nor flash

2019-11-13 Thread Tudor.Ambarus
From: Tudor Ambarus The SST26VF064BEUI spi-nor flash is programmed at the factory with a globally unique address stored in the SFDP vendor parameter table and it is permanently writeprotected. Retrieve the EUI-48 address and set it as ethaddr env. Signed-off-by: Tudor Ambarus ---

Re: [U-Boot] Quickboot in u-boot

2019-11-13 Thread Igor Opaniuk
Hi Pankaj, On Wed, Nov 13, 2019 at 3:49 PM Pankaj Suryawanshi wrote: > > Hello Community, > > I am new in u-boot modification/customization, I want to reduce the boot time > in android system. > > How to implement/modify in U-boot for Quickboot Implementation. > > P.S :- Quickboot means

Re: [U-Boot] [PATCH v3 043/108] x86: Adjust mrccache_get_region() to use livetree

2019-11-13 Thread Bin Meng
Hi Simon, On Tue, Nov 12, 2019 at 8:51 AM Simon Glass wrote: > > Hi Bin, > > On Mon, 4 Nov 2019 at 08:06, Bin Meng wrote: > > > > Hi Simon, > > > > On Mon, Oct 21, 2019 at 11:40 AM Simon Glass wrote: > > > > > > Change the algorithm to first find the flash device then read the > > > properties

Re: [U-Boot] [PATCH v3 01/42] common: Move legacy CPU functions to their own header

2019-11-13 Thread Tom Rini
On Tue, Nov 12, 2019 at 12:42:10PM -0700, Simon Glass wrote: > These should be moved to driver model, but in the meantime, move them > out of the common header to help reduce its size. > > Signed-off-by: Simon Glass > --- > > Changes in v3: None > Changes in v2: None I was hoping to get back

Re: [U-Boot] [PATCH 3/3] ARM: omapl138_lcdk: Enable SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 15:01 Adam Ford napisał(a): > > In order to further prepare for full device tree support in SPL, > this patch enables both SPL_DM_SEQ_ALIAS and SPL_OF_TRANSLATE. > Both of these are already enabled in U-Boot, so SPL will have > the same functionality > > Signed-off-by: Adam

Re: [U-Boot] [PATCH 1/3] ARM: omapl138_lcdk: Separate BSS in SPL

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 15:01 Adam Ford napisał(a): > > In preparation to use full device tree support, SPL can separate > BSS from text region. > > This patch enables SPL_SEPARATE_BSS. > > Signed-off-by: Adam Ford > > diff --git a/configs/omapl138_lcdk_defconfig b/configs/omapl138_lcdk_defconfig

Re: [U-Boot] [PATCH 2/3] ARM: omapl138_lcdk: Increase malloc pool before relocation

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 15:01 Adam Ford napisał(a): > > Driver model requires a malloc pool to allocate memory before > relocations to operate serial and some other devices. This patch > increases the pool size to 2K. > > Signed-off-by: Adam Ford > > diff --git a/configs/omapl138_lcdk_defconfig

[U-Boot] Quickboot in u-boot

2019-11-13 Thread Pankaj Suryawanshi
Hello Community, I am new in u-boot modification/customization, I want to reduce the boot time in android system. How to implement/modify in U-boot for Quickboot Implementation. P.S :- Quickboot means something like Hibernation method (In which running RAM image will be save into Flash Device

Re: [U-Boot] [PATCH] ARM: omapl138_lcdk: Allow early init to start instruction cache

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 17:18 Adam Ford napisał(a): > > Currently the omapl138_lcdk has SKIP_LOWLEVEL_INIT set. > The README states there is a variation of this for the ARM926EJ-S > which allows the board to just skip the call to lowlevel_init() > and do the normal CP15 init which enables the

Re: [U-Boot] [PATCH] ARM: omapl138_lcdk: Shrink code size by building with Thumb

2019-11-13 Thread Bartosz Golaszewski
niedz., 10 lis 2019 o 13:33 Adam Ford napisał(a): > > SPL has limited available resources, and the performance between > ARM and Thumb isn't that significant. > > This patch builds using Thumb instruction set to reduce the code > size by nearly 6K. > > Original: >textdata bss dec

[U-Boot] [PATCH] scripts: dtc: ignore files generated generated by python

2019-11-13 Thread Bartosz Golaszewski
From: Bartosz Golaszewski Add __pycache__ to ignored files and extend the rule for _libfdt to also include generated shared objects (e.g. _libfdt.cpython-37m-x86_64-linux-gnu.so). Signed-off-by: Bartosz Golaszewski --- scripts/dtc/pylibfdt/.gitignore | 3 ++- 1 file changed, 2 insertions(+),

[U-Boot] [PATCH] ARM: da850-evm: Disable SYS_MMCSD_RAW_MODE_USE_SECTOR

2019-11-13 Thread Adam Ford
The da850-evm doesn't have the boot pins configured in a way to make MMC/SD booting an option, and MMC/SD support is not enabled in SPL. Therefore, there is no need to support raw mode mmc/sd support in SPL. This patch disables CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR Signed-off-by: Adam

Re: [U-Boot] [RFC/RFT PATCH v4 3/3] image: Add compressed Image parsing support in booti.

2019-11-13 Thread David Abdurachmanov
On Sat, Nov 9, 2019 at 2:14 AM Atish Patra wrote: > > Add compressed Image parsing support so that booti can parse both > flat and compressed Image to boot Linux. Currently, it is difficult > to calculate a safe address for every board where the compressed > image can be decompressed. It is also

[U-Boot] Working Principles of Mender (OTA) and Secure U-boot (HAB library)

2019-11-13 Thread Emre Karaaslan
Hello, I have imx6ul board and I have implemented HAB (High Assurance Boot) library which NXP provides for boot ROM level security. At the moment, the device checks the digital signatures when it is turned on, and if our first running software image (SPL) is unsigned, HAB does not allow the

Re: [U-Boot] [PATCH v4 2/2] cmd: Add dtimg command

2019-11-13 Thread Roman Stratiienko
On Tue, Nov 12, 2019 at 8:18 PM Eugeniu Rosca wrote: > > Hello Sam, > > On Thu, Aug 16, 2018 at 11:34:13PM +0300, Sam Protsenko wrote: > > dtimg command allows user to work with Android DTB/DTBO image format. > > Such as, getting the address of desired DTB/DTBO file, printing the dump > > of the

[U-Boot] Working Principles of Mender (OTA) and Secure U-boot (HAB library)

2019-11-13 Thread Emre Karaaslan
Hello, I have imx6ul board and I have implemented HAB (High Assurance Boot) library which NXP provides for boot ROM level security. At the moment, the device checks the digital signatures when it is turned on, and if our first running software image (SPL) is unsigned, HAB does not allow the

Re: [U-Boot] [PATCH v1] imx: bootaux: elf firmware support

2019-11-13 Thread Igor Opaniuk
Hi Peng, On Tue, Nov 12, 2019 at 9:47 AM Peng Fan wrote: > > Hi Igor. > > > Subject: [PATCH v1] imx: bootaux: elf firmware support > > We also have similar support for i.MX8 DSP firmware loading. Good to see > your patch. > > > > > From: Igor Opaniuk > > > > Currently imx-specific bootaux

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-11-13 Thread Bartosz Golaszewski
śr., 13 lis 2019 o 11:52 Bartosz Golaszewski napisał(a): > > pon., 11 lis 2019 o 13:58 Adam Ford napisał(a): > > > > On Fri, Nov 8, 2019 at 11:59 AM Bartosz Golaszewski wrote: > > > > > > pt., 8 lis 2019 o 18:33 Bartosz Golaszewski > > > napisał(a): > > > > > > > > pt., 8 lis 2019 o 17:14 Adam

Re: [U-Boot] [RESEND PATCH v2 12/13] davinci: omapl138-lcdk: enable driver-model in SPL

2019-11-13 Thread Bartosz Golaszewski
pon., 11 lis 2019 o 13:58 Adam Ford napisał(a): > > On Fri, Nov 8, 2019 at 11:59 AM Bartosz Golaszewski wrote: > > > > pt., 8 lis 2019 o 18:33 Bartosz Golaszewski > > napisał(a): > > > > > > pt., 8 lis 2019 o 17:14 Adam Ford napisał(a): > > > > > > > > On Fri, Nov 8, 2019 at 9:50 AM Bartosz

Re: [U-Boot] [PATCH v3 4/4] ARM: bcm283x: Set memory map at run-time

2019-11-13 Thread Matthias Brugger
On 13/11/2019 11:44, Alexander Graf wrote: > > On 12.11.19 13:00, matthias@kernel.org wrote: >> From: Matthias Brugger >> >> For bcm283x based on arm64 we also have to change the mm_region. >> Add assign this in mach_cpu_init() so we can create now one binary >> for RPi3 and RPi4. >> >>

Re: [U-Boot] [PATCH v3 4/4] ARM: bcm283x: Set memory map at run-time

2019-11-13 Thread Alexander Graf
On 12.11.19 13:00, matthias@kernel.org wrote: From: Matthias Brugger For bcm283x based on arm64 we also have to change the mm_region. Add assign this in mach_cpu_init() so we can create now one binary for RPi3 and RPi4. Signed-off-by: Matthias Brugger For the future, can you think of

Re: [U-Boot] [PATCH v3 3/4] ARM: bcm283x: Set rpi_bcm283x_base at run-time

2019-11-13 Thread Alexander Graf
On 12.11.19 13:00, matthias@kernel.org wrote: From: Matthias Brugger As part of the effort to create one binary for several bcm83x SoCs we use the SoC compatible to decide which IO base address we use. Signed-off-by: Matthias Brugger Is there any reason we can't just base on the

[U-Boot] [PATCH] include/configs: ls1012a: add pfe stop command before boot linux kernel

2019-11-13 Thread Biwen Li
This adds pfe stop command before boot linux kernel to fix a problem that ethernet won't be workable after enter linux Signed-off-by: Biwen Li --- include/configs/ls1012a2g5rdb.h | 2 +- include/configs/ls1012afrdm.h | 2 +- include/configs/ls1012afrwy.h | 4 ++--

Re: [U-Boot] [PATCH] configs: Rename roc-rk3399-pc -> roc-pc-rk3399 defconfig【请注意,邮件由linux-rockchip-bounces+kever.yang=rock-chips....@lists.infradead.org代发】

2019-11-13 Thread Kever Yang
On 2019/11/2 下午12:49, Jagan Teki wrote: roc-rk3399-pc_defconfig is committed in below commit <8a681f4c5aa15db51ad0209734859c9fe7c29cfd> ("rockchip: rk3399: Add ROC-RK3399-PC support") which doesn't follow the existing defconfigs on rk3399. So, rename as followed with other rk3399 defconfigs.

Re: [U-Boot] [PATCH v2 1/2] rockchip: clk: rv1108: remove duplicate reset init

2019-11-13 Thread Kever Yang
On 2019/11/9 上午7:06, Heiko Stuebner wrote: rockchip_reset_bind() already does the needed init for the reset registers, only referenced the wrong cru structure. So we can get rid of the open-coded reset init and just fix the correct cru reference. Signed-off-by: Heiko Stuebner Reviewed-by:

  1   2   >