[U-Boot] [PATCH] misc: Makefile: Add condition on build i2c_eeprom

2017-08-02 Thread Wenyou Yang
The i2c_eeprom isn't always necessary when building for SPL, add the condition on build i2c_eeprom. Signed-off-by: Wenyou Yang --- drivers/misc/Makefile | 6 ++ 1 file changed, 6 insertions(+) diff --git a/drivers/misc/Makefile b/drivers/misc/Makefile index 10265c8fb4..ccc84c38fc 100644 --

[U-Boot] [PATCH v3 0/3] board: atmel: Set the ethernet mac address from eeprom

2017-08-02 Thread Wenyou Yang
Create board/$(VENDOR)/common folder to accommodate the common code for the boards from atmel. Now put the code to set the ethernet mac address here, using the function to set the ethernet mac address on sama5d2 and sama5d4 Xplained boards. Changes in v3: - remove CONFIG_SPL_I2C_SUPPORT=y from th

[U-Boot] [PATCH v3 2/3] board: sama5d2_xplained: Replace code to set mac address

2017-08-02 Thread Wenyou Yang
Replace the code to set the ethernet mac address with the code from the common folder. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/dts/at91-sama5d2_xplained.dts | 5 +++ board/atmel/sama5d2_xplained/sama5d2_xplained.c | 47 +++--

[U-Boot] [PATCH v3 1/3] board: atmel: Create board/$(VENDOR)/common folder

2017-08-02 Thread Wenyou Yang
Create board/$(VENDOR)/common folder to accommodate the common code shared by other atmel boards, now put the code to set ethernet mac address from eeprom, which uses the i2c eeprom driver. Signed-off-by: Wenyou Yang --- Changes in v3: None Changes in v2: None arch/arm/mach-at91/include/mach/a

[U-Boot] [PATCH v3 3/3] board: sama5d4_xplained: Set mac address from eeprom

2017-08-02 Thread Wenyou Yang
Add the code to set the ethernet mac address from eeprom by using the common code from the common folder. Signed-off-by: Wenyou Yang configs: sama5d4_xplained: remove CONFIG_SPL_I2C_SUPPORT --- Changes in v3: - remove CONFIG_SPL_I2C_SUPPORT=y from the default configuration files. - rebase on

[U-Boot] [PATCH] timer: Add Atmel PIT timer driver

2017-08-02 Thread Wenyou Yang
Add Atmel PIT timer driver, which supports the driver model and device tree. Signed-off-by: Wenyou Yang --- arch/arm/mach-at91/arm926ejs/Makefile | 2 + arch/arm/mach-at91/armv7/Makefile | 2 + drivers/timer/Kconfig | 8 drivers/timer/Makefile| 1 +

Re: [U-Boot] [PATCH v3 65/66] rockchip: board: puma-rk3399: fix warnings in puma_rk3399/fit_spl_atf.its

2017-08-02 Thread Dr. Philipp Tomsich
Kever, We use a fork of the ATF repository and have the M3 firmware completely factored out and have changed parts of the SRAM setup. In other words: there will be two separate .bin files created that need to be loaded to two separate locations. Please refer to our board’s README for the steps t

Re: [U-Boot] [PATCH] imx6: fix SDn_CMD mux mode bitfield arguments

2017-08-02 Thread Stefano Babic
Hi Anatolji, On 01/08/2017 15:14, Anatolij Gustschin wrote: > For ALT0 function mux mode should be 0, not 16. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/include/asm/arch-mx6/mx6q_pins.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/includ

Re: [U-Boot] [PATCH] efi_loader: make pool allocations cacheline aligned

2017-08-02 Thread Rob Clark
On Tue, Aug 1, 2017 at 9:10 PM, Heinrich Schuchardt wrote: > On 08/01/2017 10:00 PM, Rob Clark wrote: >> This avoids printf() spam about file reads (such as loading an image) >> into unaligned buffers (and the associated memcpy()). And generally >> seems like a good idea. >> >> Signed-off-by: Rob

Re: [U-Boot] [PATCH] vsprintf.c: add wide string (%ls) support

2017-08-02 Thread Rob Clark
On Tue, Aug 1, 2017 at 10:22 PM, Heinrich Schuchardt wrote: > On 07/31/2017 02:42 PM, Rob Clark wrote: >> This is convenient for efi_loader which deals a lot with utf16. >> >> Signed-off-by: Rob Clark >> --- >> lib/vsprintf.c | 39 +-- >> 1 file changed, 37 in

Re: [U-Boot] [PATCH] imx-common: spl: return boot mode for asked MMC device in spl_boot_mode()

2017-08-02 Thread Stefano Babic
Hi anatolji, On 01/08/2017 15:23, Anatolij Gustschin wrote: > Boards may extend or re-define the boot list in their board_boot_order() > function by modifying spl_boot_list. E.g. a board might boot SPL from a > slow SPI NOR flash and then load the U-Boot from an eMMC or SD-card. > Or it might use

Re: [U-Boot] [PATCH 1/8] armv8: Add workaround for USB erratum A-009008

2017-08-02 Thread Ran Wang
Hello Sir, May I know the review result for this patch set? Thank you. BR Ran > -Original Message- > From: Ran Wang [mailto:ran.wan...@nxp.com] > Sent: Monday, July 10, 2017 10:24 AM > To: Albert Aribaud ; York Sun ; > Suresh Gupta > Cc: Simon Glass ; Sriram Dash ; > Rajesh Bhagat ; A

Re: [U-Boot] [RFC PATCH 1/2] board: laird: add WB45N CPU module

2017-08-02 Thread Stefano Babic
On 07/07/2017 12:40, Ben Whitten wrote: > This board is based on the Atmel 9x5 eval board. > Supporting the following features: > - Boot from NAND Flash > - Ethernet > - FIT > - SPL > Patch is assigned to me. However, this is Atmel, now orphaned. I haven't work with AT-91 since a very long ti

Re: [U-Boot] [PATCH v3 50/66] rockchip: rk3368: add DRAM controller driver with DRAM initialisation

2017-08-02 Thread Andy Yan
Hi Philipp: On 2017年07月29日 03:22, Philipp Tomsich wrote: This adds a DRAM controller driver for the RK3368 and places it in drivers/ram/rockchip (where the other DM-enabled DRAM controller drivers for rockchip devices should also be moved eventually). At this stage, only the following feature-

[U-Boot] [PATCH 1/1] imx: imx6ull: correct get_cpu_speed_grade_hz on 696MHz SoCs

2017-08-02 Thread Sébastien Szymanski
Return the correct value when the speed grade is 696MHz. This makes U-Boot to print the correct value at boot: U-Boot 2017.09-rc1-dirty (Aug 02 2017 - 12:02:26 +0200) CPU: Freescale i.MX6ULL rev1.0 696 MHz (running at 396 MHz) instead of U-Boot 2017.09-rc1-dirty (Aug 02 2017 - 11:47:51 +0200)

Re: [U-Boot] [PATCH 1/1] imx: imx6ull: correct get_cpu_speed_grade_hz on 696MHz SoCs

2017-08-02 Thread Stefano Babic
On 02/08/2017 12:15, Sébastien Szymanski wrote: > Return the correct value when the speed grade is 696MHz. > This makes U-Boot to print the correct value at boot: > > U-Boot 2017.09-rc1-dirty (Aug 02 2017 - 12:02:26 +0200) > > CPU: Freescale i.MX6ULL rev1.0 696 MHz (running at 396 MHz) > > ins

Re: [U-Boot] [PATCH 1/5] arm: socfpga: Add checking function on searching boot device

2017-08-02 Thread Chee, Tien Fong
On Isn, 2017-07-31 at 12:53 +0200, Marek Vasut wrote: > On 07/31/2017 12:50 PM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > Function for checking boot device type, which is required for > > locating > > flash where U-boot image, FPGA design are stored. > > > > Signed-of

Re: [U-Boot] [PATCH 3/5] configs: socfpga: Add config for RBF loading from FAT fs

2017-08-02 Thread Chee, Tien Fong
On Isn, 2017-07-31 at 12:54 +0200, Marek Vasut wrote: > On 07/31/2017 12:50 PM, tien.fong.c...@intel.com wrote: > > > > From: Tien Fong Chee > > > > This config enable the mechanism for loading RBF file from FAT fs > > into > > FPGA manager. > > > > Signed-off-by: Tien Fong Chee > > --- > >  a

Re: [U-Boot] [PATCH] imx6: fix SDn_CMD mux mode bitfield arguments

2017-08-02 Thread Anatolij Gustschin
Hi Stefano, On Wed, 2 Aug 2017 11:24:22 +0200 Stefano Babic sba...@denx.de wrote: ... > > -MX6_PAD_DECL(SD2_CMD__SD2_CMD, 0x0740, 0x0358, 16, 0x, 0, 0) > > +MX6_PAD_DECL(SD2_CMD__SD2_CMD, 0x0740, 0x0358, 0, 0x, 0, 0) ... > > The MUX mode is not changed, but 16 means that t

[U-Boot] [PATCH v2 1/1] add support for Raspberry Pi Zero W

2017-08-02 Thread Dmitry Korunov
The Raspberry Pi Zero W extends the Pi Zero family and it's also based on a BCM2835 SoC. Like the Pi Zero, it has 512MB RAM, Mini HDMI and USB On-The-Go ports. Both Pi's hasn't got Ethernet, but Pi Zero W has built in wireless LAN 802.11 b/g/n. Signed-off-by: Dmitry Korunov --- Changes for v2:

Re: [U-Boot] [PATCH v3 50/66] rockchip: rk3368: add DRAM controller driver with DRAM initialisation

2017-08-02 Thread Dr. Philipp Tomsich
Andy, The functionality of the new driver should be equivalent for the non-TPL case. All the code from the original driver is still present in the new driver for non-TPL (see rk3368_dmc_probe). Seeing that -19 is -ENODEV, I suspect that something went wrong in the DM binding/probing: did you set

Re: [U-Boot] [RFC PATCH 0/6] rockchip: rk3368: remove secure timer usage and use DM timer

2017-08-02 Thread Dr. Philipp Tomsich
Kever, This patchset does not force the use of the DM timer for any chipsets/boards. It is essentially opt-in and (for now—i.e. until we enable it for the RK3399) it is enabled for the RK3368 only. Note that this does not currently target any ARMv7 devices, as it is meant to decouple the ARMv8 g

[U-Boot] [GIT PULL] Xilinx fixes for v2017.09

2017-08-02 Thread Michal Simek
Hi Tom, here are changes I have collected in my tree. I have added also a patch which make reserve_mmu as weak function which was reviewed by Simon. We need to for mini u-boot configurations which will be sent later. Travis is not showing any problem with this branch too. Thanks, Michal The fo

Re: [U-Boot] [RFC PATCH 3/6] rockchip: timer: add device-model timer driver for RK3368 (and similar)

2017-08-02 Thread Dr. Philipp Tomsich
> On 01 Aug 2017, at 11:48, Simon Glass wrote: > > On 28 July 2017 at 10:31, Philipp Tomsich > wrote: >> This adds a device-model driver for the timer block in the RK3368 (and >> similar devices that share the same timer block, such as the RK3288) for >> the down-counting (i.e. non-secure) time

Re: [U-Boot] [PATCH v3 50/66] rockchip: rk3368: add DRAM controller driver with DRAM initialisation

2017-08-02 Thread Andy Yan
Hi Philipp: On 2017年08月02日 18:59, Dr. Philipp Tomsich wrote: Andy, The functionality of the new driver should be equivalent for the non-TPL case. All the code from the original driver is still present in the new driver for non-TPL (see rk3368_dmc_probe). Yes, it's so good that the new

Re: [U-Boot] [PATCH v3 56/66] rockchip: rk3368: spl: mark SPL and TPL as supported for ROCKCHIP_RK3368

2017-08-02 Thread Andy Yan
Hi Philipp: 2017-07-29 3:22 GMT+08:00 Philipp Tomsich < philipp.toms...@theobroma-systems.com>: > With SPL and TPL support for the RK3368 in place, mark SPL and TPL as > supported from Kconfig for the RK3368. As this is primarily tested on > the RK3368-uQ7, we'll leave it to board's individual d

Re: [U-Boot] [PATCH v3 56/66] rockchip: rk3368: spl: mark SPL and TPL as supported for ROCKCHIP_RK3368

2017-08-02 Thread Dr. Philipp Tomsich
Looks like SPL_SEPARATE_BSS is special. Guess, I’ll need to figure out how to best deal with that one (or fall back to defining it via defconfig until we can enable TPL/SPL for all RK3368 board). I wonder how an implies would behave here... > On 02 Aug 2017, at 14:47, Andy Yan wrote: > > Hi Ph

Re: [U-Boot] [PATCH 1/1] imx: imx6ull: correct get_cpu_speed_grade_hz on 696MHz SoCs

2017-08-02 Thread Sébastien Szymanski
Hi, On 08/02/2017 12:11 PM, Stefano Babic wrote: > On 02/08/2017 12:15, Sébastien Szymanski wrote: >> Return the correct value when the speed grade is 696MHz. >> This makes U-Boot to print the correct value at boot: >> >> U-Boot 2017.09-rc1-dirty (Aug 02 2017 - 12:02:26 +0200) >> >> CPU: Freesca

Re: [U-Boot] [PATCH 1/1] lcd: avoid possible NULL dereference

2017-08-02 Thread Dr. Philipp Tomsich
> On 30 Jul 2017, at 21:59, Heinrich Schuchardt wrote: > > Do not dereference bmp before the check if it is NULL. > > The problem was indicated by cppcheck. > > Signed-off-by: Heinrich Schuchardt Reviewed-by: Philipp Tomsich ___ U-Boot mailing li

Re: [U-Boot] [PATCH 1/1] imx: imx6ull: correct get_cpu_speed_grade_hz on 696MHz SoCs

2017-08-02 Thread Stefano Babic
On 02/08/2017 15:09, Sébastien Szymanski wrote: > Hi, > > On 08/02/2017 12:11 PM, Stefano Babic wrote: >> On 02/08/2017 12:15, Sébastien Szymanski wrote: >>> Return the correct value when the speed grade is 696MHz. >>> This makes U-Boot to print the correct value at boot: >>> >>> U-Boot 2017.09-rc

[U-Boot] [PATCH 1/3] rockchip: add u-boot specific dts for rk3368 based boards

2017-08-02 Thread Andy Yan
Device drivers like debug serial, dmc should be enabled before relocation, so add u-boot.dtsi files to contain devices that should be marked as dm-pre-reloc. Signed-off-by: Andy Yan --- arch/arm/dts/rk3368-geekbox-u-boot.dtsi | 35 + arch/arm/dts/rk3368-px5-evb-u

[U-Boot] [PATCH 2/3] rockchip: set Pre-reloc malloc pool size to 4kb for rk3368 based boards

2017-08-02 Thread Andy Yan
The default 1kb pre-reloc malloc pool is not enough for dm core to enable the dm-pre-reloc device drivers. Signed-off-by: Andy Yan --- configs/evb-px5_defconfig | 1 + configs/geekbox_defconfig | 1 + configs/sheep-rk3368_defconfig | 1 + 3 files changed, 3 insertions(+) diff --git a

[U-Boot] [PATCH 3/3] rockchip: remove the hard coded uart iomux setting for px5 evb

2017-08-02 Thread Andy Yan
As the debug uart is marked as dm-pre-reloc, the pinctrl driver will handle the correct iomux setting. Signed-off-by: Andy Yan --- board/rockchip/evb_px5/evb-px5.c | 24 1 file changed, 24 deletions(-) diff --git a/board/rockchip/evb_px5/evb-px5.c b/board/rockchip/evb_

Re: [U-Boot] [PATCH 2/3] rockchip: set Pre-reloc malloc pool size to 4kb for rk3368 based boards

2017-08-02 Thread Dr. Philipp Tomsich
> On 02 Aug 2017, at 15:10, Andy Yan wrote: > > The default 1kb pre-reloc malloc pool is not enough for dm > core to enable the dm-pre-reloc device drivers. > > Signed-off-by: Andy Yan > — Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich See comment below. > > configs/evb-px5_defco

Re: [U-Boot] [PATCH 3/3] rockchip: remove the hard coded uart iomux setting for px5 evb

2017-08-02 Thread Dr. Philipp Tomsich
> On 02 Aug 2017, at 15:10, Andy Yan wrote: > > As the debug uart is marked as dm-pre-reloc, the pinctrl driver > will handle the correct iomux setting. > > Signed-off-by: Andy Yan > — Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich ___ U-B

Re: [U-Boot] [PATCH 2/3] rockchip: set Pre-reloc malloc pool size to 4kb for rk3368 based boards

2017-08-02 Thread Andreas Färber
Am 02.08.2017 um 15:25 schrieb Dr. Philipp Tomsich: > >> On 02 Aug 2017, at 15:10, Andy Yan wrote: >> >> The default 1kb pre-reloc malloc pool is not enough for dm >> core to enable the dm-pre-reloc device drivers. >> >> Signed-off-by: Andy Yan >> — > > Acked-by: Philipp Tomsich > Reviewed-by:

Re: [U-Boot] Please pull u-boot-x86

2017-08-02 Thread Tom Rini
On Tue, Aug 01, 2017 at 08:24:50PM +0800, Bin Meng wrote: > Hi Tom, > > The following changes since commit 6364a5d4bd55beeedc11171419acd0bdff17a599: > > Prepare v2017.09-rc1 (2017-07-31 20:37:25 -0400) > > are available in the git repository at: > > git://git.denx.de/u-boot-x86.git > > fo

Re: [U-Boot] [GIT PULL V2] Please pull u-boot-mmc master

2017-08-02 Thread Tom Rini
On Tue, Aug 01, 2017 at 02:52:47PM +0900, Jaehoon Chung wrote: > Dear Tom, > > Could you pull these patches into u-boot/master? > (Have tested the buildman.) > > Changelog on V2: > - Drop the Jean-Jacques's patches. After fixing it, will apply. > > The following changes since commit 6364a5d4bd5

[U-Boot] [PATCH] imx6: use SION macro in SDn_CMD mux mode bitfield arguments

2017-08-02 Thread Anatolij Gustschin
Select SION by appropriate macro instead of constant. Signed-off-by: Anatolij Gustschin --- arch/arm/include/asm/arch-mx6/mx6q_pins.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm/include/asm/arch-mx6/mx6q_pins.h b/arch/arm/include/asm/arch-mx6/mx6q_pins.h

Re: [U-Boot] [PATCH] imx6: use SION macro in SDn_CMD mux mode bitfield arguments

2017-08-02 Thread Stefano Babic
On 02/08/2017 15:56, Anatolij Gustschin wrote: > Select SION by appropriate macro instead of constant. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/include/asm/arch-mx6/mx6q_pins.h | 8 > 1 file changed, 4 insertions(+), 4 deletions(-) > > diff --git a/arch/arm/include/asm/ar

[U-Boot] [PATCH] imx6: clock: correct comment for PLL_VIDEO

2017-08-02 Thread Anatolij Gustschin
This appear to be a copy-paste error, clean it up. Signed-off-by: Anatolij Gustschin --- arch/arm/mach-imx/mx6/clock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-imx/mx6/clock.c index 1f2739e..0e019c4 100644 --- a/arch/arm/ma

Re: [U-Boot] [PATCH] imx6: clock: correct comment for PLL_VIDEO

2017-08-02 Thread Stefano Babic
On 02/08/2017 16:05, Anatolij Gustschin wrote: > This appear to be a copy-paste error, clean it up. > > Signed-off-by: Anatolij Gustschin > --- > arch/arm/mach-imx/mx6/clock.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/arch/arm/mach-imx/mx6/clock.c b/arch/arm/mach-

Re: [U-Boot] [PATCH 1/2] Move PHYLIB to Kconfig

2017-08-02 Thread Joe Hershberger
On Tue, Aug 1, 2017 at 7:19 PM, Alexandru Gagniuc wrote: > Signed-off-by: Alexandru Gagniuc Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [PATCH 2/2] Move PHY_MICREL and PHY_MICREL_KSZ90X1 to Kconfig

2017-08-02 Thread Joe Hershberger
On Tue, Aug 1, 2017 at 7:20 PM, Alexandru Gagniuc wrote: > Signed-off-by: Alexandru Gagniuc Acked-by: Joe Hershberger ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [RFC PATCH 1/2] board: laird: add WB45N CPU module

2017-08-02 Thread Tom Rini
On Wed, Aug 02, 2017 at 11:58:42AM +0200, Stefano Babic wrote: > On 07/07/2017 12:40, Ben Whitten wrote: > > This board is based on the Atmel 9x5 eval board. > > Supporting the following features: > > - Boot from NAND Flash > > - Ethernet > > - FIT > > - SPL > > > > Patch is assigned to me. H

[U-Boot] [PATCH v2 1/2] imx: imx6ul: correct get_cpu_speed_grade_hz on 696MHz SoCs

2017-08-02 Thread Sébastien Szymanski
Return the correct value when the speed grade is 696MHz. Signed-off-by: Sébastien Szymanski --- Changes v1 -> v2: - Only true on i.MX6UL so adapt the subject and commit log accordingly. --- arch/arm/mach-imx/mx6/soc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/

[U-Boot] [PATCH 2/2] imx: imx6ull: correct get_cpu_speed_grade_hz

2017-08-02 Thread Sébastien Szymanski
i.MX6ULL has different speed grades than i.MX6UL. Signed-off-by: Sébastien Szymanski --- Notice that the i.MX6ULL RM says: 2b'00: 800MHz; 2b'01: 850MHz; 2b'10: 1GHz; 2b'11: 1.2Ghz; which seems incorrect. The commit [1] confirmed it, but I cannot find any 996MHz i.MX6ULL on the NXP website. Accord

Re: [U-Boot] [PATCH 1/8] armv8: Add workaround for USB erratum A-009008

2017-08-02 Thread York Sun
On 08/02/2017 02:55 AM, Ran Wang wrote: > Hello Sir, > May I know the review result for this patch set? Thank you. > BR > Ran Ran, I have seen three versions from Suresh, one version from Yinbo, and one version from you. Neither you or Yinbo updated the version number, or included change l

Re: [U-Boot] [PATCH] efi_loader: make pool allocations cacheline aligned

2017-08-02 Thread Brüns , Stefan
On Mittwoch, 2. August 2017 11:28:37 CEST Rob Clark wrote: > On Tue, Aug 1, 2017 at 9:10 PM, Heinrich Schuchardt [...] > >> > >> @@ -356,7 +356,8 @@ efi_status_t efi_allocate_pool(int pool_type, > >> unsigned long size,>> > >> { > >> > >> efi_status_t r; > >> efi_physical_addr_t t;

Re: [U-Boot] [PATCH] misc: Makefile: Add condition on build i2c_eeprom

2017-08-02 Thread Tom Rini
On Wed, Aug 02, 2017 at 03:47:58PM +0800, Wenyou Yang wrote: > The i2c_eeprom isn't always necessary when building for SPL, > add the condition on build i2c_eeprom. > > Signed-off-by: Wenyou Yang > --- > > drivers/misc/Makefile | 6 ++ > 1 file changed, 6 insertions(+) > > diff --git a/dr

Re: [U-Boot] [PATCH] imx-common: spl: return boot mode for asked MMC device in spl_boot_mode()

2017-08-02 Thread Anatolij Gustschin
Hi Stefano, On Wed, 2 Aug 2017 11:54:24 +0200 Stefano Babic sba...@denx.de wrote: ... > > +++ b/arch/arm/mach-imx/spl.c > > @@ -84,7 +84,7 @@ u32 spl_boot_device(void) > > /* called from spl_mmc to see type of boot mode for storage (RAW or FAT) */ > > u32 spl_boot_mode(const u32 boot_device) > >

Re: [U-Boot] [PATCH] efi_loader: make pool allocations cacheline aligned

2017-08-02 Thread Rob Clark
On Wed, Aug 2, 2017 at 11:24 AM, Brüns, Stefan wrote: > On Mittwoch, 2. August 2017 11:28:37 CEST Rob Clark wrote: >> On Tue, Aug 1, 2017 at 9:10 PM, Heinrich Schuchardt > [...] >> >> >> >> @@ -356,7 +356,8 @@ efi_status_t efi_allocate_pool(int pool_type, >> >> unsigned long size,>> >> >> { >> >>

[U-Boot] [PATCH] mx6sabresd: Fix IOMUXC_GPR6 and IOMUXC_GPR7 values

2017-08-02 Thread Breno Lima
The IPU AXI QoS for the i.MX6QP and i.MX6DP processors have to be set as commented in the code: /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ Set IOMUXC_GPR6 and IOMUXC_GPR7 to 0x77177717 instead of 0x007F007F. Signed-off-by: Breno Lima --- board/freescale/mx6sabresd/mx6sabresd.c | 4 ++--

Re: [U-Boot] [PATCH] vsprintf.c: add wide string (%ls) support

2017-08-02 Thread Heinrich Schuchardt
On 08/02/2017 11:38 AM, Rob Clark wrote: > On Tue, Aug 1, 2017 at 10:22 PM, Heinrich Schuchardt > wrote: >> On 07/31/2017 02:42 PM, Rob Clark wrote: >>> This is convenient for efi_loader which deals a lot with utf16. >>> >>> Signed-off-by: Rob Clark >>> --- >>> lib/vsprintf.c | 39 +

[U-Boot] [PATCH] mx6sabreauto: Fix IOMUXC_GPR6 and IOMUXC_GPR7 values

2017-08-02 Thread Breno Lima
The IPU AXI QoS for the i.MX6QP and i.MX6DP processors have to be set as commented in the code: /* set IPU AXI-id1 Qos=0x1 AXI-id0/2/3 Qos=0x7 */ Set IOMUXC_GPR6 and IOMUXC_GPR7 to 0x77177717 instead of 0x007F007F. Signed-off-by: Breno Lima --- board/freescale/mx6sabreauto/mx6sabreauto.c | 4 ++

Re: [U-Boot] [PATCH 1/5] board_f: Drop the timer after relocation

2017-08-02 Thread Simon Glass
Hi Bin, On 22 July 2017 at 22:36, Bin Meng wrote: > Hi Simon, > > On Sun, Jul 16, 2017 at 7:41 AM, Simon Glass wrote: >> Once U-Boot relocates itself the existing driver-model timer (if any) is >> no-longer valid until the device is reinitialised. Any use of the device >> may cause a crash. To h

Re: [U-Boot] [PATCH 2/5] dm: x86: Allow TSC timer to be used before DM is ready

2017-08-02 Thread Simon Glass
Hi Bin, On 22 July 2017 at 22:36, Bin Meng wrote: > Hi Simon, > > On Sun, Jul 16, 2017 at 7:41 AM, Simon Glass wrote: >> With bootstage we need access to the timer before driver model is set up. >> To handle this, put the required state in global_data and provide a new >> function to set up the

[U-Boot] [PATCH v2 1/2] dm: core: Drop use of strlcpy()

2017-08-02 Thread Simon Glass
We can use printf() to limit the string width. Adjust the code to do this instead of using strlcpy() which is a bit clumbsy. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to drop use of strlcpy() drivers/core/dump.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) d

[U-Boot] [PATCH v2 2/2] dm: core: Show driver name with 'dm tree'

2017-08-02 Thread Simon Glass
It is often useful to see which driver was actually selected for each device. Add a new 'Driver' column to provide this information. Sample output: Class Probed Driver Name root[ + ]root_drive root_driver keyboard[ + ]i804

Re: [U-Boot] [PATCH] vsprintf.c: add wide string (%ls) support

2017-08-02 Thread Rob Clark
On Wed, Aug 2, 2017 at 1:05 PM, Heinrich Schuchardt wrote: > On 08/02/2017 11:38 AM, Rob Clark wrote: >> On Tue, Aug 1, 2017 at 10:22 PM, Heinrich Schuchardt >> wrote: >>> On 07/31/2017 02:42 PM, Rob Clark wrote: This is convenient for efi_loader which deals a lot with utf16. Sign

Re: [U-Boot] [U-Boot, 5/5] boot: fdt: fixup the memory dt nodes falcon boot

2017-08-02 Thread York Sun
On 04/18/2017 04:57 AM, B, Ravi wrote: > In single stage bootmode or falcon boot mode, > the SPL shall update the memory dt nodes > spl_fixup_fdt() based on DDR configuration for > specific platform. > > Signed-off-by: Ravi Babu > --- > common/spl/spl.c | 40

Re: [U-Boot] [U-Boot, 5/5] boot: fdt: fixup the memory dt nodes falcon boot

2017-08-02 Thread Tom Rini
On Wed, Aug 02, 2017 at 07:10:51PM +, York Sun wrote: > On 04/18/2017 04:57 AM, B, Ravi wrote: > > In single stage bootmode or falcon boot mode, > > the SPL shall update the memory dt nodes > > spl_fixup_fdt() based on DDR configuration for > > specific platform. > > > > Signed-off-by: Ravi Ba

[U-Boot] [PATCH v4 03/66] rockchip: back-to-bootrom: add 'back-to-bootrom' support for AArch64

2017-08-02 Thread Philipp Tomsich
The back-to-bootrom support for Rockchip is equivalent to an (assembly) implementation of setjmp/longjmp (i.e. it saves the stack-pointer, link-register and callee-saved registers). Up until now, this had only been implemented for AArch32 (i.e. ARMv7 or older), which puts the new ARMv8 devices (whi

[U-Boot] [PATCH v4 01/66] spl: add a 'return to bootrom' boot method

2017-08-02 Thread Philipp Tomsich
Some devices (e.g. the RK3368) have only limited SRAM, but provide support for loading the next boot stage after our SPL performs basic setup (e.g. DRAM). For target systems like these, we add a boot device BOOTROM that will invoke a board-specific hook to return to the bootrom (if supported). Si

[U-Boot] [PATCH v4 06/66] spl: use TPL_SYS_MALLOC_F_LEN for TPL

2017-08-02 Thread Philipp Tomsich
The (upstream) changes to break up SYS_MALLOC_F_LEN for the full U-Boot and the SPL stage, break TPL (if simple malloc is enabled in TPL). This adds support for a TPL-variant of SYS_MALLOC_F_LEN: - adds TPL_SYS_MALLOC_F_LEN - rewrites a test for CONFIG_SPL_SYS_MALLOC_F_LEN to access CONFIG_VAL(S

[U-Boot] [PATCH v4 02/66] spl: configure 'return to bootrom' separately for SPL and TPL

2017-08-02 Thread Philipp Tomsich
On the RK3368, we want our TPL to use the 'return to bootrom' boot method (to have the bootrom load up the SPL stage) and then continue with different boot methods (MMC, SPI, etc.) from SPL. This adds the config option needed to control the availabily of the 'return to bootrom' boot-method separat

[U-Boot] [PATCH v4 05/66] rockchip: back-to-bootrom: simplify the #ifdef-check for LIBGENERIC in TPL/SPL

2017-08-02 Thread Philipp Tomsich
With the finer-grained control over LIBGENERIC_SUPPORT for TPL/SPL (i.e. with the newly introduced distinction between TPL_LIBGENERIC_SUPPORT and SPL_LIBGENERIC_SUPPORT), we can simplify the #ifdef-check to simply use CONFIG_IS_ENABELD. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Re

[U-Boot] [PATCH v4 04/66] rockchip: back-to-bootrom: split BACK_TO_BOOTROM for TPL/SPL

2017-08-02 Thread Philipp Tomsich
The back-to-bootrom option is rather unfortunately named CONFIG_ROCKCHIP_SPL_BACK_TO_BOOTROM instead of CONFIG_SPL_ROCKCHIP_BACK_TO_BOOTROM To make is selectable through CONFIG_IS_ENABLED(ROCKCHIP_BACK_TO_BOOTROM), we need to rename it. At the same time, we introduce a TPL_ variant of the opt

[U-Boot] [PATCH v4 07/66] spl: dm: Kconfig: fix help text for SPL/TPL confusion

2017-08-02 Thread Philipp Tomsich
TPL_NAND_SUPPORT, TPL_SERIAL_SUPPORT, TPL_SPI_FLASH_SUPPORT and TPL_SPI_SUPPORT refer to SPL in their help text. This fixes up the description to correctly reference TPL. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: - (new patch) added fix-up

Re: [U-Boot] [PATCH 2/2] armv8/ls1046a: RGMII PHY requires internal delay on Tx

2017-08-02 Thread York Sun
On 04/04/2017 04:44 AM, Madalin Bucur wrote: > Signed-off-by: Madalin Bucur > --- > drivers/net/fm/ls1046.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/net/fm/ls1046.c b/drivers/net/fm/ls1046.c > index bf4..6c91fb9 100644 > --- a/drivers/net/fm/ls10

[U-Boot] U-boot 2017.07 not working on Raspberry Pi

2017-08-02 Thread Paul Barker
I'm currently testing U-boot 2017.07 on Raspberry Pi, both on a Model B+ and a Raspberry Pi 3. On both devices I'm seeing two issues with u-boot: * U-boot can't boot the Linux kernel, it just hangs at "Starting kernel ...". * U-boot doesn't recognise any input via a USB keyboard. These issues we

[U-Boot] [PATCH v4 09/66] spl: dm: Kconfig: split REGMAP/SYSCON support for TPL from SPL

2017-08-02 Thread Philipp Tomsich
This change introduces TPL variants of the REGMAP and SYSCON config options (i.e. TPL_REGMAP and TPL_SYSCON in analogy to SPL_REGMAP and SPL_SYSCON) in preparation of a finer-grained feature selection for building feature-rich TPL variants. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass

[U-Boot] [PATCH v4 08/66] spl: dm: Kconfig: use more specific prereqs for SPL_REGMAP and SPL_SYSCON

2017-08-02 Thread Philipp Tomsich
SPL_REGMAP and SPL_SYSCON were marked as depending on DM, when a stricter dependency of SPL_DM was possible. This commit makes the prereq more specific. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: No

Re: [U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-08-02 Thread Álvaro Fernández Rojas
Hi Daniel, El 31/07/2017 a las 12:52, Daniel Schwierzeck escribió: > 2017-07-30 18:04 GMT+02:00 Álvaro Fernández Rojas : >> >> >> El 30/07/2017 a las 16:05, Daniel Schwierzeck escribió: >>> >>> >>> Am 30.07.2017 um 14:27 schrieb Álvaro Fernández Rojas: I've been a bit busy lately and I couldn

[U-Boot] [PATCH v4 00/66] Support OF_PLATDATA in TPL, enable RK3368 DRAM init and add RK3368-uQ7

2017-08-02 Thread Philipp Tomsich
This update has everyone's comments included and even reworks for Simon's request to retain the _SHIFT macros. I'll start applying this together with the DM timer series (to get rid of the hardcoded address needed for the secure timer init) to the Rockchip tree tomorrow, so it can be included in t

[U-Boot] [PATCH v2 3/6] rockchip: timer: add device-model timer driver for RK3368 (and similar)

2017-08-02 Thread Philipp Tomsich
This adds a device-model driver for the timer block in the RK3368 (and similar devices that share the same timer block, such as the RK3288) for the down-counting (i.e. non-secure) timers. This allows us to configure U-Boot for the RK3368 in such a way that we can run with the secure timer inaccess

[U-Boot] [PATCH v2 2/6] dm: timer: normalise SPL and TPL support

2017-08-02 Thread Philipp Tomsich
To fully support DM timer in SPL and TPL, we need a few things cleaned up and normalised: - inclusion of the uclass and drivers should be an all-or-nothing decision for each stage and under control of $(SPL_TPL_)TIMER instead of having the two-level configuration with TIMER and $(SPL_TPL_)TIM

[U-Boot] [PATCH v2 5/6] rockchip: lion-rk3368: defconfig: enable DM timer for all stages

2017-08-02 Thread Philipp Tomsich
There is no reasonably robust way (this will be needed so early that diagnostics will be limited) to specify the base-address of the secure timer through the DTS for TPL and SPL. In order to allow us a cleaner way to structure our SPL and TPL stage, we now move to a DM timer driver. Signed-off-by

[U-Boot] [PATCH v4 19/66] spl: Kconfig: split SYS_MALLOC_SIMPLE for TPL and SPL

2017-08-02 Thread Philipp Tomsich
As include/malloc.h already checks for SYS_MALLOC_SIMPLE using the CONFIG_IS_ENABLED macro, we need to move to having separate entries as we switch to fully separate configuration for SPL and TPL. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4:

[U-Boot] [PATCH v4 11/66] spl: dm: Kconfig: introduce TPL_RAM (in analogy to SPL_RAM)

2017-08-02 Thread Philipp Tomsich
To allow finer grained selection of features for TPL, we introduce TPL_RAM (in analogy to SPL_RAM). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes in v4: None Changes in v3: None Changes in v2: None drivers/ram/Kconfig | 9 + 1 file changed

[U-Boot] [PATCH v2 6/6] rockchip: rk3368: remove setup of secure timer from TPL/SPL

2017-08-02 Thread Philipp Tomsich
When using DM timers w/ the timer0 block within the RK3368, we no longer depend on the ARMv8 generic timer counting. This allows us to drop the secure timer initialisation from the TPL and SPL stages. The secure timer will later be set up by ATF, which starts the ARMv8 generic timer. Thus, there

[U-Boot] [PATCH v4 64/66] moveconfig: migrate TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE

2017-08-02 Thread Philipp Tomsich
We can finally drop TPL_STACK, TPL_TEXT_BASE and TPL_MAX_SIZE off the whitelist (this time it's really happening!) and migrate the setting (only used on the RK3368-uQ7 so far) into Kconfig. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v4: - migrate to Kconfig, so we d

[U-Boot] [PATCH v4 15/66] spl: dm: use CONFIG_IS_ENABLED to test for the DM option

2017-08-02 Thread Philipp Tomsich
Even though there's now a TPL_DM configuration option, the spl logic still checks for SPL_DM and thus does not pick up the proper config option. This introduces the use of CONFIG_IS_ENABLED(DM) in spl.c to always pick up the desired configuration option instead of having a hard-coded check for the

Re: [U-Boot] [PATCH v3 2/2] MIPS: Stop building position independent code

2017-08-02 Thread Álvaro Fernández Rojas
Hi Paul, El 31/07/2017 a las 19:13, Paul Burton escribió: > On Monday, 31 July 2017 03:52:57 PDT Daniel Schwierzeck wrote: >> 2017-07-30 18:04 GMT+02:00 Álvaro Fernández Rojas : >>> El 30/07/2017 a las 16:05, Daniel Schwierzeck escribió: Am 30.07.2017 um 14:27 schrieb Álvaro Fernández Rojas:

[U-Boot] [PATCH v2 1/6] timer: add OF_PLATDATA support for timer-uclass

2017-08-02 Thread Philipp Tomsich
The timer-uclass depends on full OF_CONTROL through its interrogation of /chosen and the code to determine the clock-frequency. For the OF_PLATDATA case, these code-paths are disabled and it becomes the timer driver's responsibility to correctly set the clock-frequency in the uclass priv-data. Si

[U-Boot] [PATCH v2 4/6] dts: rk3368: make timer0 accessible for SPL and TPL

2017-08-02 Thread Philipp Tomsich
To use it with the DM timer driver in SPL and TPL, timer0 needs to be marked as pre-reloc. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v2: - add 'clock-frequency' prop to timer in the -u-boot.dtsi arch/arm/dts/rk3368-lion-u-boot.dtsi | 5 + arch/arm/dts/rk3368.

[U-Boot] [PATCH v4 29/66] rockchip: rk3368: spl: add memory layout for TPL and SPL

2017-08-02 Thread Philipp Tomsich
For the RK3368, we use a multi-stage boot-process consisting of the following: 1. TPL: initalises DRAM, returns to boot-ROM (which then loads the next stage and transfers control to it) 2. SPL: a full-features SPL stage including OF_CONTROL and FIT image loading, which f

[U-Boot] [PATCH v4 28/66] rockchip: rk3368: spl: define COUNTER_FREQUENCY to 24MHz

2017-08-02 Thread Philipp Tomsich
The BootROM of the RK3368 Boot ROM does not initialise cntfrq_el0. This change defines COUNTER_FREQUENCY, which is used by the AArch64 init code in arch/arm/cpu/armv8/start.S to set up cntfrq_el0. If the counter-frequency is not correctly set up, the calculation of delays using the ARMv8 generic t

[U-Boot] [PATCH v4 49/66] rockchip: Makefile: streamline SPL/TPL configuration

2017-08-02 Thread Philipp Tomsich
Handling TPL and SPL in the Makefile for mach-rockchip was based on nested if checks and/or if-else-if paths. This can be simplified and made more readable by using $(SPL_TPL_) and by introducing intermediate variables for the aggregation of SPL and TPL features. Signed-off-by: Philipp Tomsich

[U-Boot] [PATCH v4 61/66] spl: support TPL_STACK, TPL_MAX_SIZE and TPL_TEXT_BASE via Kconfig

2017-08-02 Thread Philipp Tomsich
Let's clean up behind ourselves and move the (newly defined) TPL_STACK, TPL_MAX_SIZE and TPL_TEXT_BASE into Kconfig. Given that 0x0 might be considered to be valid values for TPL_TEXT_BASE and TPL_STACK, we need to introduce helper config options ("TPL_NEEDS_SEPARATE_...") to indicate that these s

[U-Boot] [PATCH v4 46/66] rockchip: clk: rk3368: mark 'priv' __maybe_unused in rk3368_clk_set_rate()

2017-08-02 Thread Philipp Tomsich
With the clock support in rk3368_clk_set_rate() conditionalized on various feature definitions, 'priv' can remain unused (e.g. in the SPL build when only MMC is enabled). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None d

[U-Boot] [PATCH v4 31/66] rockchip: rk3368: syscon: SGRF support for OF_PLATDATA

2017-08-02 Thread Philipp Tomsich
In TPL we will need to configure security in the SGRF of the RK3368. This change adds support for the SGRF as a syscon device, so we can retrieve its address range through the syscon API in TPL (and can avoid having to hard-code the address). Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glas

[U-Boot] [PATCH v4 65/66] rockchip: board: puma-rk3399: fix warnings in puma_rk3399/fit_spl_atf.its

2017-08-02 Thread Philipp Tomsich
The ITS file generated warnings due to @ designations in the naming which cause DTC to complain as follows: Warning (unit_address_vs_reg): Node /images/uboot@1 has a unit name, but no reg property Warning (unit_address_vs_reg): Node /images/atf@1 has a unit name, but no reg property Warning

[U-Boot] [PATCH v4 59/66] spl: Kconfig: migrate $(SPL_TPL_)LDSCRIPT to Kconfig

2017-08-02 Thread Philipp Tomsich
Now that we have split up SPL_LDSCRIPT into a SPL and TPL variant and have started to use the TPL-variant for the RK3368, it's time to clean up behind ourselves: move both variants into Kconfig and remove them from the whitelist. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Chan

[U-Boot] [PATCH v4 14/66] spl: dm: Kconfig: split OF_CONTROL and OF_PLATDATA between SPL and TPL

2017-08-02 Thread Philipp Tomsich
For the RK3368, we want to use OF_PLATDATA in TPL, but full OF_CONTROL in SPL: this requires the introduction of a new family of configuration options to decouple SPL_OF_CONTROL and SPL_OF_PLATDATA from TPL. Consequently, Makefile.spl needs to be adjusted to test for these configuration items thro

[U-Boot] [PATCH v4 32/66] rockchip: rk3368: grf: use shifted-constants

2017-08-02 Thread Philipp Tomsich
The RK3368 GRF header was still defines with a shifted-mask but with non-shifted function selectors for the IOMUX defines. As the RK3368 support is still fresh enough to allow a quick change, we do this now before having more code use this. Signed-off-by: Philipp Tomsich --- Changes in v4: - r

[U-Boot] [PATCH v4 26/66] rockchip: rk3368: mkimage: add support for the RK3368

2017-08-02 Thread Philipp Tomsich
This commit adds support for RK3368 SoC in mkimage. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v4: None Changes in v3: None Changes in v2: None tools/rkcommon.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/rkcommon.c b/tools/rkcommon.c index 25b0340..

[U-Boot] [PATCH v4 20/66] lib: spl: differentiate between TPL and SPL for libfdt/of_control/of_platdata

2017-08-02 Thread Philipp Tomsich
This splits the compilation of code modules for TPL and SPL for OF_CONTROL (and related) features between TPL and SPL. The typical use-case of this is a TPL stage that uses OF_PLATDATA at TPL and provides full OF_CONTROL at SPL (e.g. on the RK3368). Signed-off-by: Philipp Tomsich Reviewed-by: S

[U-Boot] [PATCH v4 63/66] rockchip: rk3368: mark TPL as not inheriting its stack, text-base and size from SPL

2017-08-02 Thread Philipp Tomsich
The RK3368 needs to have a different base-address and stack-pointer for its TPL stage. Now that we want to do this via Kconfig, we need to tick the appropriate 'TPL_NEEDS_...' boxes. Signed-off-by: Philipp Tomsich Reviewed-by: Simon Glass --- Changes in v4: - use 'select if' for SPL/TPL prese

[U-Boot] [PATCH v4 41/66] rockchip: clk: rk3368: implement DPLL (DRAM PLL) support

2017-08-02 Thread Philipp Tomsich
To implement a TPL stage (incl. its DRAM controller setup) for the RK3368, we'll want to configure the DPLL (DRAM PLL). This commit implements setting the DPLL (CLK_DDR) and provides PLL configuration details for the common DRAM operating speeds found on RK3368 boards. Signed-off-by: Philipp Toms

  1   2   >