Re: [U-Boot] [PATCH] power: extend prefix match to regulator-name property

2017-10-25 Thread Chen-Yu Tsai
On Tue, Oct 24, 2017 at 2:30 PM, Felix Brack wrote: > On 23.10.2017 22:34, Chen-Yu Tsai wrote: >> On Tue, Oct 24, 2017 at 12:36 AM, Felix Brack wrote: >>> On 23.10.2017 16:36, Chen-Yu Tsai wrote: Hi, On Thu, Oct 12, 2017 at 11:40 PM, Felix Brack wrote: > On 12.10.2017 14:53, C

Re: [U-Boot] qemu and baremetal arm prog

2017-10-25 Thread Wolfgang Denk
Dear Anupam, please keep the list on Cc:, and please don't top post/full quote. Thanks. In message you wrote: > > Thanks for the point. Can you please tell me what will be the address to > load the kernel? Or the way to know how to load it ? All the tutorials > shows this only. Didn't find any

[U-Boot] [PATCH] rockchip: rk3328: fix rockchip_get_cru api

2017-10-25 Thread Kever Yang
The API for get priv pointer is wrong, fix it. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3328/clk_rk3328.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-rockchip/rk3328/clk_rk3328.c b/arch/arm/mach-rockchip/rk3328/clk_rk3328.c index 4dcac27..013

[U-Boot] [PATCH 1/2] rockchip: sysreset: merge into one common driver

2017-10-25 Thread Kever Yang
Use a common driver for all Rockchip SOC instead of one for each SoC. Use driver_data for reg offset. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/clock.h | 5 +++ drivers/sysreset/Makefile | 11 +- drivers/sysreset/sysreset_rk3036.c | 45 --

[U-Boot] [PATCH 2/2] rockchip: clock: update sysreset driver bingding

2017-10-25 Thread Kever Yang
Using driver_data for new sysreset driver binding. Signed-off-by: Kever Yang --- drivers/clk/rockchip/clk_rk3036.c | 15 +-- drivers/clk/rockchip/clk_rk3188.c | 16 ++-- drivers/clk/rockchip/clk_rk322x.c | 15 +-- drivers/clk/rockchip/clk_rk3288.c | 15 ++

Re: [U-Boot] [PATCH v1] spl: add support to booting with ATF

2017-10-25 Thread Dan Handley
Hi Peng > -Original Message- > From: Peng Fan [mailto:peng@nxp.com] > Sent: 25 October 2017 02:39 > > diff --git a/common/spl/spl_atf.c b/common/spl/spl_atf.c new file mode > > 100644 index 000..ec3f675 > > --- /dev/null > > +++ b/common/spl/spl_atf.c > > @@ -0,0 +1,92 @@ > > +/*

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Maxime Ripard
On Tue, Oct 24, 2017 at 06:21:43PM +0100, Andre Przywara wrote: > That being said I have prepared a patch to switch sunxi ARM64 boards > over to ENV_IS_IN_FAT, because I guess we will hit the wall soon there > and have no Thumb2 to get off lightly. And I believe that the arm64 > boards mostly use a

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Jagan Teki
I'm personally feel trimming un(non)used bits(which might use in future or not) is not a good idea.why can't we have TPL because even adding Falcon might also increase the size. On 25-Oct-2017 11:43 AM, "Maxime Ripard" wrote: On Tue, Oct 24, 2017 at 06:21:43PM +0100, Andre Przywara wrote: > That

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Andre Przywara
Hi, On 25/10/17 10:42, Maxime Ripard wrote: > On Tue, Oct 24, 2017 at 06:21:43PM +0100, Andre Przywara wrote: >> That being said I have prepared a patch to switch sunxi ARM64 boards >> over to ENV_IS_IN_FAT, because I guess we will hit the wall soon there >> and have no Thumb2 to get off lightly.

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Siarhei Siamashka
On Tue, 24 Oct 2017 18:21:43 +0100 Andre Przywara wrote: > Hi, > > On 24/10/17 18:05, Dennis Gilmore wrote: > > El lun, 23-10-2017 a las 09:35 +0200, Maxime Ripard escribió: > >> On Fri, Oct 20, 2017 at 04:33:57PM -0500, Dennis Gilmore wrote: > >>> El jue, 19-10-2017 a las 16:58 +0200, Maxim

[U-Boot] [RFC 0/4] sunxi: Implement transition in environment

2017-10-25 Thread Maxime Ripard
Hi, Here is an RFC to implement the transition from a raw environment in the MMC to a FAT file in the first bootable partition. This is based in a custom environment method that reuses the mmc and fat codes as much as possible, and just deals with the fallbacks, printing a warning when we're usin

[U-Boot] [RFC 1/4] env: Rework mmc environment ifdef

2017-10-25 Thread Maxime Ripard
We want the MMC environment code to be compilable so that it can be used by other environment methods, even if it's not the primary one. Rework slightly the ifdef to do that. Signed-off-by: Maxime Ripard --- env/mmc.c | 24 +--- 1 file changed, 13 insertions(+), 11 deletions

[U-Boot] [RFC 2/4] env; fat: Allow the fat environment to be embedded by another one

2017-10-25 Thread Maxime Ripard
The fat environment is currently only buildable as the primary environment, but other environment methods might need to use it as a secondary environment (for example to implement fallback mechanisms). Make sure the environment can be compiled and that the functions are not static when the configu

[U-Boot] [RFC 4/4] env: sunxi: Switch by default to the transition environment code

2017-10-25 Thread Maxime Ripard
Now that we have some code to smoothly transition from a raw environment to a file, make that the default. Signed-off-by: Maxime Ripard --- env/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/env/Kconfig b/env/Kconfig index fdd68fdfbdb6..95ab988552bb 100644 --- a/env/

[U-Boot] [RFC 3/4] env: Create an environment transition method

2017-10-25 Thread Maxime Ripard
The current environment has been hardcoded to an offset that starts to be an issue given the current size of our main U-Boot binary. Introduce an environment method from storing the environment raw in the MMC to a file in a FAT partition. Eventually, and hopefully before we reach that limit again,

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Maxime Ripard
Hi Jagan, On Wed, Oct 25, 2017 at 03:25:59PM +0530, Jagan Teki wrote: > I'm personally feel trimming un(non)used bits(which might use in > future or not) is not a good idea.why can't we have TPL because even > adding Falcon might also increase the size. As far as I understand it, the TPL is just

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Andre Przywara
Hi, On 25/10/17 12:58, Siarhei Siamashka wrote: > On Tue, 24 Oct 2017 18:21:43 +0100 > Andre Przywara wrote: > . >> >> That being said I have prepared a patch to switch sunxi ARM64 boards >> over to ENV_IS_IN_FAT, because I guess we will hit the wall soon there >> and have no Thumb2 to get

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Tom Rini
On Wed, Oct 25, 2017 at 02:58:44PM +0300, Siarhei Siamashka wrote: > On Tue, 24 Oct 2017 18:21:43 +0100 > Andre Przywara wrote: > > > Hi, > > > > On 24/10/17 18:05, Dennis Gilmore wrote: > > > El lun, 23-10-2017 a las 09:35 +0200, Maxime Ripard escribió: > > >> On Fri, Oct 20, 2017 at 04:33:57

[U-Boot] [PATCH 1/1] Add UART base addresses for additional UARTs

2017-10-25 Thread Landheer-Cieslak, Ronald
UARTs 1 through 5 were missing in the code - added. Also pick the default according to the configuration setting for the console index. Signed-off-by: Ronald Landheer-Cieslak --- arch/arm/include/asm/arch-am33xx/hardware.h| 14 +- arch/arm/include/asm/arch-am33xx/hardware_am3

[U-Boot] [PATCH 0/1] Add UART base addresses for additional UARTs

2017-10-25 Thread Landheer-Cieslak, Ronald
Hello all, We are currently developing a new BSP for a custom board based on the Sitara SOC, using U-boot. I've noticed a bug in that setting CONS_INDEX to something other than 1 does not change the default base address of the UART being used. My next message will be a patch intended to fix this

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Maxime Ripard
Hi Siarhei, On Wed, Oct 25, 2017 at 02:58:44PM +0300, Siarhei Siamashka wrote: > > > Anyone doing something like this on X86 has to have the same setup. its > > > not that hard of a ask to assume that a pxe environment is available. > > > you can skip the dhcp part and set the serrver ip and syste

Re: [U-Boot] [PATCH 1/1] Add UART base addresses for additional UARTs

2017-10-25 Thread Bin Meng
Hi, On Wed, Oct 25, 2017 at 9:46 PM, Landheer-Cieslak, Ronald wrote: > UARTs 1 through 5 were missing in the code - added. > Also pick the default according to the configuration setting for the > console index. > > Signed-off-by: Ronald Landheer-Cieslak > --- > arch/arm/include/asm/arch-am33xx/

Re: [U-Boot] [RFC 3/4] env: Create an environment transition method

2017-10-25 Thread Wolfgang Denk
Dear Maxime, In message <20171025122601.28224-4-maxime.rip...@free-electrons.com> you wrote: > The current environment has been hardcoded to an offset that starts to be > an issue given the current size of our main U-Boot binary. > > Introduce an environment method from storing the environment ra

Re: [U-Boot] [RFC 0/4] sunxi: Implement transition in environment

2017-10-25 Thread Tom Rini
On Wed, Oct 25, 2017 at 02:25:57PM +0200, Maxime Ripard wrote: > Hi, > > Here is an RFC to implement the transition from a raw environment in > the MMC to a FAT file in the first bootable partition. > > This is based in a custom environment method that reuses the mmc and > fat codes as much as po

Re: [U-Boot] [EXTERNAL] Re: [PATCH 1/1] Add UART base addresses for additional UARTs

2017-10-25 Thread Landheer-Cieslak, Ronald
Hi Bin, On Wednesday, October 25, 2017 10:45, Bin Meng wrote: > On Wed, Oct 25, 2017 at 9:46 PM, Landheer-Cieslak, Ronald > wrote: >> UARTs 1 through 5 were missing in the code - added. >> Also pick the default according to the configuration setting for the >> console index. >> >> Signed-off-by

Re: [U-Boot] [PATCH 2/2] armv8: sec_firmware: Add support for loadables in FIT

2017-10-25 Thread York Sun
On 10/24/2017 09:00 PM, Sumit Garg wrote: >> -Original Message- >> From: York Sun >> Sent: Tuesday, October 24, 2017 8:00 PM >> To: Sumit Garg ; u-boot@lists.denx.de >> Cc: Ruchika Gupta ; Prabhakar Kushwaha >> ; Z.q. Hou ; Pankaj >> Gupta ; Arun Pathak ; Sahil >> Malhotra >> Subject: Re:

[U-Boot] about fdt-control

2017-10-25 Thread albert008.xu
Dear Simon    I'm reading doc/README.fdt-control written by U in u-boot source. you said CONFIG_OF_EMBED is  defined ,dtb will be built into u-boot image.This is suitable for debugging and is not recommended for producton. Why CONFIG_OF_EMBED is suitable for debugging? I think CONFIG_OF_EMBED is

[U-Boot] [RFC] efi_loader: frame buffers in EFI GOP and DM_VIDEO

2017-10-25 Thread Heinrich Schuchardt
Hello Alex, hello Simon, I have just been reading through efi_gop and video_uclass.c and there seems to be something missing in the support of video modes. U-Boot configuration knows the following color models: 16-color 256-color 32k (1:5:5:5) 64k (5:6:5) 16.8M (8:8:8) In lib/efi_loader/efi_

[U-Boot] U-Boot SPL/TPL build system

2017-10-25 Thread Kever Yang
Hi Simon,Philipp, I still confuse about how the SPL/TPL build system works, including what Kconfig will be used, and how to write the Makefile suppose to be correct. I'm trying to enable the SPL/TPL for rk3328, I want to remove all the unnecessary module because the ram size is very

Re: [U-Boot] [PATCH 0/3] sunxi: Fix boot of Cubietruk and al.

2017-10-25 Thread Dennis Gilmore
El mié, 25-10-2017 a las 20:41 +0200, Karsten Merker escribió: > [CCing Vagrant Cascadian, the Debian U-Boot maintainer] > > On Wed, Oct 25, 2017 at 02:42:50PM +0100, Andre Przywara wrote: > > On 25/10/17 12:58, Siarhei Siamashka wrote: > > > On Tue, 24 Oct 2017 18:21:43 +0100 > > > Andre Przywara

[U-Boot] [PATCH RESEND v5 0/4] Allwinner SimpleFB Kconfig cleanup and DE2 SimpleFB support

2017-10-25 Thread Icenowy Zheng
This patchset is resent to inform the video maintainers. Here's the original cover letter: This patchset is mainly for Allwinner DE2 HDMI SimpleFB support. The framebuffer initialized by the Allwinner DE2 driver can be passed by to the kernel as simplefb, and this can enable the kernel to displa

[U-Boot] [PATCH RESEND v5 1/4] sunxi: change the DE1 video option to CONFIG_VIDEO_SUNXI

2017-10-25 Thread Icenowy Zheng
The sunxi DE1 video option used to be CONFIG_VIDEO, which has the same name as the "Enable legacy video support" option in drivers/video/Kconfig. Change the option name to CONFIG_VIDEO_SUNXI, which is really used by Makefile under drivers/video/sunxi/, and defined in sunxi-common.h when CONFIG_VID

[U-Boot] [PATCH RESEND v5 3/4] video: add an option for video simplefb via DT

2017-10-25 Thread Icenowy Zheng
Add an option to indicate that the video driver should setup a SimpleFB node that passes the video framebuffer initialized by U-Boot to the operating system kernel. Currently only the Allwinner DE driver uses this option, and the definition of this option in the sunxi-common.h config header is con

[U-Boot] [PATCH RESEND v5 2/4] video: sunxi: extract simplefb match code to a new file

2017-10-25 Thread Icenowy Zheng
As the DE2 simplefb setup code can also benefit from the simplefb match code, extract it to a new source file. Signed-off-by: Icenowy Zheng Reviewed-by: Andre Przywara Acked-by: Maxime Ripard --- Changes in v4: - Add missing copyright for Luc. Changes in v3: - Use /** to start kerndoc. driver

[U-Boot] [PATCH RESEND v5 4/4] sunxi: setup simplefb for Allwinner DE2

2017-10-25 Thread Icenowy Zheng
As the support of EFI boot on Allwinner H3 is broken, we still need to use simplefb to pass the framebuffer to Linux. Add code to setup simplefb for Allwinner DE2 driver. Signed-off-by: Icenowy Zheng Acked-by: Maxime Ripard --- Changes in v4: - Imply CONFIG_VIDEO_DT_SIMPLEFB. Changes in v3: -

[U-Boot] [RFC PATCH 1/2] rockchip: dts: rk3328: update dmc node for driver

2017-10-25 Thread Kever Yang
Update dmc node for full feature driver. Signed-off-by: Kever Yang --- arch/arm/dts/rk3328-evb.dts | 1 + arch/arm/dts/rk3328-sdram-ddr3-666.dtsi | 215 ++ arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi | 215 ++ arch/arm/dts/

[U-Boot] [RFC PATCH 2/2] rockchip: ram: add full feature rk3328 dram driver

2017-10-25 Thread Kever Yang
This driver supports ddr3/lpddr3/ddr4 sdram initialization. Since we are going to merge the common part in dram driver for all Rockchip SoCs, this patch become a RFC and can be used for people who need it. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- drivers/ram/rockchip/sdram_rk3

[U-Boot] [RFC PATCH 1/2] rockchip: dts: rk3328: update dmc node for driver

2017-10-25 Thread Kever Yang
Update dmc node for full feature driver. Signed-off-by: Kever Yang --- arch/arm/dts/rk3328-evb.dts | 1 + arch/arm/dts/rk3328-sdram-ddr3-666.dtsi | 215 ++ arch/arm/dts/rk3328-sdram-lpddr3-666.dtsi | 215 ++ arch/arm/dts/

[U-Boot] [RFC PATCH 2/2] rockchip: ram: add full feature rk3328 dram driver

2017-10-25 Thread Kever Yang
This driver supports ddr3/lpddr3/ddr4 sdram initialization. Since we are going to merge the common part in dram driver for all Rockchip SoCs, this patch become a RFC and can be used for people who need it. Signed-off-by: YouMin Chen Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rock

[U-Boot] [PATCH] board: freescale: ls1012a: fix RGMII TX-delay issue

2017-10-25 Thread Calvin Johnson
Recently logic to enable RGMII TX-delay was changed by commit 05b29aa0cb68 ("net: phy: realtek: fix enabling of the TX-delay for RTL8211F") Based on this, here we are enabling the TX-delay again using PHY_INTERFACE_MODE_RGMII_TXID. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmu

[U-Boot] [PATCH] rockchip: evb-rk3328: remove CONFIG_ENV_OFFSET

2017-10-25 Thread Kever Yang
Remove CONFIG_ENV_OFFSET for there already have one in rockchip_common.h Signed-off-by: Kever Yang --- include/configs/evb_rk3328.h | 6 -- 1 file changed, 6 deletions(-) diff --git a/include/configs/evb_rk3328.h b/include/configs/evb_rk3328.h index c792ce5..93b18b8 100644 --- a/include/co