[U-Boot] [U-BOOT PATCH] riscv: sifive: fu540: set serial environment variable from otp

2019-08-11 Thread Sagar Shrikant Kadam
This patch sets the serial# environment variable by reading the board serial number from the OTP memory region. Signed-off-by: Sagar Shrikant Kadam --- board/sifive/fu540/fu540.c | 18 ++ 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/board/sifive/fu540/fu540.c b/

[U-Boot] [U-BOOT PATCH] set serial environment variable

2019-08-11 Thread Sagar Shrikant Kadam
This patch sets serial environment variable by reading the OTP memory region of FU540-C000 SoC which is mounted on HiFive Unleashed A00 board. The patch is based on master branch of[1] [1] https://gitlab.denx.de/u-boot/custodians/u-boot-riscv Following is the result: U-Boot 2019.10-rc1-03748-ga

Re: [U-Boot] [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board (imx6q based) device tree description

2019-08-11 Thread Lukasz Majewski
Hi Tom, > On Sun, Aug 11, 2019 at 11:25:37PM +0200, Lukasz Majewski wrote: > > Hi Peng, > > > > > > Subject: [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board > > > > (imx6q based) device tree description > > > > > > > > This commit defines the TPC70 imx6q board with device tree > > > > descri

Re: [U-Boot] [PATCH] core: ofnode: do not assert if node not valid in ofnode_get_name()【请注意,邮件由s...@google.com代发】

2019-08-11 Thread Kever Yang
Hi Simon,     Who is suppose to apply this patch, it's delegate to Philipp now, should I take it? Thanks, - Kever On 2019/7/25 上午3:48, Simon Glass wrote: On Thu, 18 Jul 2019 at 20:24, Kever Yang wrote: In some case with LIVE DT, some node always not valid, or not have a valid name, eg.

Re: [U-Boot] [PATCH v0] rockchip: rk3399: Add ROC-RK3399-PC support

2019-08-11 Thread Kever Yang
Hi Levin, On 2019/7/26 下午3:43, d...@t-chip.com.cn wrote: From: Levin Du Add initial support for ROC-RK3399-PC board. Specification - Rockchip RK3399 - LPDDR4 4GiB - eMMC slot - SD card slot - RTL8211E 1Gbps - HDMI Out, DP, MIPI DSI/CSI, EDP - PCIe M.2 - USB 2.0, USB-3.0 - USB C Type Commit d

Re: [U-Boot] [PATCH 1/1] cmd/bdinfo: sandbox: print the relocation offset

2019-08-11 Thread Bin Meng
On Sat, Aug 10, 2019 at 5:35 AM Heinrich Schuchardt wrote: > > On the sandbox provide the relocation offset. This value can be used for > debugging with GDB using the `add-symbol-file u-boot ' command. > > Signed-off-by: Heinrich Schuchardt > --- > cmd/bdinfo.c | 1 + > 1 file changed, 1 inserti

Re: [U-Boot] [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board (imx6q based) device tree description

2019-08-11 Thread Tom Rini
On Sun, Aug 11, 2019 at 11:25:37PM +0200, Lukasz Majewski wrote: > Hi Peng, > > > > Subject: [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board (imx6q > > > based) device tree description > > > > > > This commit defines the TPC70 imx6q board with device tree > > > description. > > > > Is the im

Re: [U-Boot] [PATCH 01/22] tools: imx8m_image: align spl bin image size

2019-08-11 Thread Lukasz Majewski
Hi Peng, > Align spl bin image size to 4 byte aligned, because we need > to pad ddr firmware in the end of spl bin. However when enable > SPL OF, the spl dtb will be padded to u-boot-nodtb.bin, then > u-boot-spl.bin size might not be 4 bytes aligned. > > ddr_load_train_firmware in drivers/ddr/imx

Re: [U-Boot] [PATCH 18/22] imx8m: restructure clock.h

2019-08-11 Thread Lukasz Majewski
On Fri, 9 Aug 2019 04:15:37 + Peng Fan wrote: > i.MX8MQ and i.MX8MM use different analog pll design, but they > share same ccm design. > Add clock_imx8mq.h for i.MX8MQ > keep common part in clock.h > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/arch-imx8m/clock.h| 491 > +

Re: [U-Boot] [PATCH 17/22] imx8m: rename clock to clock_imx8mq

2019-08-11 Thread Lukasz Majewski
On Fri, 9 Aug 2019 04:15:34 + Peng Fan wrote: > i.MX8MQ and i.MX8MM has totally different pll design, so > rename clock to clock_imx8mq. > > Signed-off-by: Peng Fan > --- > arch/arm/mach-imx/imx8m/Makefile| 3 ++- > arch/arm/mach-imx/imx8m/{clock.c => clock_imx8mq.c} |

Re: [U-Boot] [PATCH 13/22] imx8m: Fix MMU table issue for OPTEE memory

2019-08-11 Thread Lukasz Majewski
On Fri, 9 Aug 2019 04:15:21 + Peng Fan wrote: > When running with OPTEE, the MMU table in u-boot does not remove the > OPTEE memory from its settings. So ARM speculative prefetch in u-boot > may access that OPTEE memory. Due to trust zone is enabled by OPTEE > and that memory is set to secure

Re: [U-Boot] [PATCH 11/22] imx8m: add pin header for i.MX8MM

2019-08-11 Thread Lukasz Majewski
Hi Peng, > Add pin header file for i.MX8MM > What is the origin (e.g. SHA1, branch) of this file? > To IMX8MM_PAD_NAND_WE_B_USDHC3_CLK, IOMUX_CONFIG_SION needs to be > selected. > > Signed-off-by: Peng Fan > --- > arch/arm/include/asm/arch-imx8m/imx8mm_pins.h | 691 >

Re: [U-Boot] [PATCH v2 05/11] imx: tpc70: cosmetic: Replace magic numbers when setting ENET clock

2019-08-11 Thread Lukasz Majewski
Hi Peng, > > Subject: [PATCH v2 05/11] imx: tpc70: cosmetic: Replace magic > > numbers when setting ENET clock > > > > This is a cosmetic change, just to use proper define instead of > > magic numbers. > > > > Signed-off-by: Lukasz Majewski > > --- > > > > board/k+p/kp_imx6q_tpc/kp_imx6q_tpc.

Re: [U-Boot] [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board (imx6q based) device tree description

2019-08-11 Thread Lukasz Majewski
Hi Peng, > > Subject: [PATCH v2 07/11] imx: tpc70: dts: Add TPC70 board (imx6q > > based) device tree description > > > > This commit defines the TPC70 imx6q board with device tree > > description. > > Is the imx6q-kp.dtsi usable for this board from Linux kernel? > The imx6q-kp.dtsi is defin

[U-Boot] [PATCH] arm: dts: sync dts for Allwinner H6

2019-08-11 Thread Clément Péron
Sync Kernel DTS for Allwinner H6 boards. commit Linux 5.3-rc4 Signed-off-by: Clément Péron --- arch/arm/dts/sun50i-h6-beelink-gs1.dts | 76 ++ arch/arm/dts/sun50i-h6-pine-h64.dts| 12 arch/arm/dts/sun50i-h6.dtsi| 43 ++- 3 files changed,

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-11 Thread Mark Kettenis
> From: "Matwey V. Kornilov" > Date: Sun, 11 Aug 2019 11:06:02 +0300 > > Many Rockchip platforms require the same u-boot deploy procedure > when TPL and SPL both enabled. > > The following examples are taken from doc/README.rockchip > and board/theobroma-systems/lion_rk3368/README: > > RK3288:

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-11 Thread Mark Kettenis
> From: Simon Glass > Date: Sun, 11 Aug 2019 12:37:13 -0600 > > Hi, > > On Sun, 11 Aug 2019 at 07:51, Chris Webb wrote: > > > > Matwey V. Kornilov wrote: > > > > > Here, we introduce generic u-boot-tpl-with-spl.img target which is the > > > TPL image followed by the SPL binary. > > > > Having

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-11 Thread Simon Glass
Hi, On Sun, 11 Aug 2019 at 07:51, Chris Webb wrote: > > Matwey V. Kornilov wrote: > > > Here, we introduce generic u-boot-tpl-with-spl.img target which is the > > TPL image followed by the SPL binary. > > Having built U-Boot TPL + SPL images over and over again for testing on > various rk3399 ha

Re: [U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-11 Thread Chris Webb
Matwey V. Kornilov wrote: Here, we introduce generic u-boot-tpl-with-spl.img target which is the TPL image followed by the SPL binary. Having built U-Boot TPL + SPL images over and over again for testing on various rk3399 hardware, something like this would certainly be a convenience. It

[U-Boot] [PATCH] riscv: update fix_rela_dyn

2019-08-11 Thread Marcus Comstedt
The addend is now added for RELOC_TYPE relocs. Also, changed the loop structure so that all the R_RISCV_RELATIVE relocs are not required to be at the beginning of the list. Signed-off-by: Marcus Comstedt Cc: Rick Chen --- arch/riscv/cpu/start.S | 10 +- 1 file changed, 5 insertions(+),

[U-Boot] [PATCH] riscv: tools: Handle addend to absolute reloc in prelink-riscv

2019-08-11 Thread Marcus Comstedt
Previously the handling of R_RISCV_32 and R_RISCV_64 would simply insert the value of the symbol and ignore any addend. However, there exist relocs where the addend is non-zero: 80250900 R_RISCV_64efi_runtime_services+0x0068 80250910 R_RISCV_64efi_runti

[U-Boot] [RFC PATCH] rockchip, Makefile: add u-boot-tpl-with-spl.img target

2019-08-11 Thread Matwey V. Kornilov
Many Rockchip platforms require the same u-boot deploy procedure when TPL and SPL both enabled. The following examples are taken from doc/README.rockchip and board/theobroma-systems/lion_rk3368/README: RK3288: ./tools/mkimage -n rk3288 -T rksd -d ./tpl/u-boot-tpl.bin out cat ./spl/u-boot-spl