[U-Boot] [RFC PATCH 2/2] zynq: Add support for loading secure images

2018-04-01 Thread Siva Durga Prasad Paladugu
This patch adds support to load secure images secure image is an image which is authenticated or encrypted or both autheticated and encrypted image in xilinx boot image(BOOT.BIN) format. The secure image has to be created using xilinx bootgen tool. Signed-off-by: Siva Durga Prasad Paladugu --- b

[U-Boot] [RFC PATCH 1/2] fpga: xilinx: zynq: Add support to decrypt images

2018-04-01 Thread Siva Durga Prasad Paladugu
This patch adds support to decrypt an encrypted bitstream or image. This zynq aes command can either load decrypted image back to DDR or it can load an encrypted bitsream to PL directly by decrypting it. The image has to be encrypted using xilinx bootgen tool and to get only the encrypted image fro

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

2018-04-01 Thread Simon Glass
Hi Tom, On 4 February 2018 at 02:13, Tom Rini wrote: > On Sat, Feb 03, 2018 at 10:12:41AM -0700, Simon Glass wrote: >> Hi Tom, >> >> On 26 January 2018 at 17:50, Tom Rini wrote: >> > On Fri, Jan 26, 2018 at 02:45:29PM -0700, Simon Glass wrote: >> > >> >> Hi Tom, >> >> >> >> Here are some additio

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Simon Glass
Hi Jagan, On 2 April 2018 at 12:57, Jagan Teki wrote: > > On Fri, Mar 30, 2018 at 4:13 AM, Simon Glass wrote: > > Hi Jagan, > > > > On 28 March 2018 at 02:04, Jagan Teki wrote: > >> On Mon, Sep 4, 2017 at 9:57 PM, wrote: > >>> Hi Tom, > >>> > >>> On 7 August 2017 at 09:39, Tom Rini wrote: >

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Jagan Teki
On Fri, Mar 30, 2018 at 4:13 AM, Simon Glass wrote: > Hi Jagan, > > On 28 March 2018 at 02:04, Jagan Teki wrote: >> On Mon, Sep 4, 2017 at 9:57 PM, wrote: >>> Hi Tom, >>> >>> On 7 August 2017 at 09:39, Tom Rini wrote: On Sat, Aug 05, 2017 at 03:45:53PM -0600, Simon Glass wrote: >

Re: [U-Boot] [U-Boot, 31/36] rockchip: rk3399: prepare to use common board file

2018-04-01 Thread Kever Yang
On 04/02/2018 05:59 AM, Philipp Tomsich wrote: >> >> DECLARE_GLOBAL_DATA_PTR; >> >> -int board_init(void) >> -{ >> -    int ret; >> - >> -    /* >> - * We need to call into regulators_enable_boot_on() again, as >> the call >> - * during SPL may have not included all regulators. >> - *

Re: [U-Boot] [U-Boot, 30/36] rockchip: lion-rk3368: remove rockchip timer

2018-04-01 Thread Kever Yang
On 04/02/2018 05:34 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> We use ARM generic timer. > > A more enlightening commit message, please. > >> Signed-off-by: Kever Yang > > See below for comments. > >> --- >> >> configs/lion-rk3368_defconfig | 4 >> 1 file ch

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Simon Glass
Hi, On 2 April 2018 at 11:07, Peter Robinson wrote: > On Mon, Apr 2, 2018 at 3:56 AM, Simon Glass wrote: >> Hi Peter, >> >> On 2 April 2018 at 10:45, Peter Robinson wrote: >>> On Mon, Apr 2, 2018 at 3:28 AM, Simon Glass wrote: Hi Andre, On 2 April 2018 at 09:43, André Przywara

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Peter Robinson
On Mon, Apr 2, 2018 at 3:56 AM, Simon Glass wrote: > Hi Peter, > > On 2 April 2018 at 10:45, Peter Robinson wrote: >> On Mon, Apr 2, 2018 at 3:28 AM, Simon Glass wrote: >>> Hi Andre, >>> >>> On 2 April 2018 at 09:43, André Przywara wrote: Hi, On 01/04/18 14:19, Tom Rini wrote: >>

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Simon Glass
Hi Peter, On 2 April 2018 at 10:45, Peter Robinson wrote: > On Mon, Apr 2, 2018 at 3:28 AM, Simon Glass wrote: >> Hi Andre, >> >> On 2 April 2018 at 09:43, André Przywara wrote: >>> Hi, >>> >>> On 01/04/18 14:19, Tom Rini wrote: On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Peter Robinson
On Mon, Apr 2, 2018 at 3:28 AM, Simon Glass wrote: > Hi Andre, > > On 2 April 2018 at 09:43, André Przywara wrote: >> Hi, >> >> On 01/04/18 14:19, Tom Rini wrote: >>> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: On Mon, Sep 4, 2017 at 9:57 PM, wrote: > Hi Tom, >

Re: [U-Boot] [U-Boot, 17/36] rockchip: sdram_common: add common dram_init_banksize

2018-04-01 Thread Kever Yang
On 04/02/2018 05:50 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> dram_init_banksize() can be common used by all SoCs, move it into >> sdram_common.c >> >> Signed-off-by: Kever Yang >> --- >> >> arch/arm/mach-rockchip/sdram_common.c | 63 >>

Re: [U-Boot] [U-Boot, 16/36] rockchip: sdram-common: add api to pass dram info to trust os

2018-04-01 Thread Kever Yang
On 04/02/2018 05:43 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> Trust OS decode this info like this: >> https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/rockchip/common/drivers/parameter/ddr_parameter.c#L19 >> >> We have to set a available val

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Simon Glass
[resending from correct address] Hi Andre, On 2 April 2018 at 09:43, André Przywara wrote: > Hi, > > On 01/04/18 14:19, Tom Rini wrote: >> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >>> On Mon, Sep 4, 2017 at 9:57 PM, wrote: Hi Tom, On 7 August 2017 at 09:39, To

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread Simon Glass
Hi Andre, On 2 April 2018 at 09:43, André Przywara wrote: > Hi, > > On 01/04/18 14:19, Tom Rini wrote: >> On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >>> On Mon, Sep 4, 2017 at 9:57 PM, wrote: Hi Tom, On 7 August 2017 at 09:39, Tom Rini wrote: > On Sat, Aug 0

Re: [U-Boot] [U-Boot, 06/36] rockchip: add IRAM_START_ADDR for all SoCs

2018-04-01 Thread Kever Yang
On 04/02/2018 05:00 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> We add this for get the location for boot device of bootrom. > > Your commit message should be specific enough, so the motivation for > the change, where it fits into the overall architecture and what

Re: [U-Boot] [U-Boot,05/36] rockchip: add STIMER_BASE for all SoCs

2018-04-01 Thread Kever Yang
On 04/02/2018 04:58 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> STIMER is can only access in secure mode if the SoCs supports trust, >> and it locate in alive power domain, as the source of ARM arch/generic >> timer, we add a base addr for all SoCs so that we can

Re: [U-Boot] [PATCH 1/3] dm: Add migration plan for CONFIG_BLK

2018-04-01 Thread André Przywara
Hi, On 01/04/18 14:19, Tom Rini wrote: > On Tue, Mar 27, 2018 at 11:34:19PM +0530, Jagan Teki wrote: >> On Mon, Sep 4, 2017 at 9:57 PM, wrote: >>> Hi Tom, >>> >>> On 7 August 2017 at 09:39, Tom Rini wrote: On Sat, Aug 05, 2017 at 03:45:53PM -0600, Simon Glass wrote: > The CONFIG_B

Re: [U-Boot] [U-Boot, 02/36] rockchip: add common MACRO to enable sys arch timer

2018-04-01 Thread Kever Yang
On 04/02/2018 04:51 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> All rockchip SoCs can use ARM arch timer, let's enable it in >> common header file > > Please provide a commit message that is more descriptive of what > actually happens... i.e. that COUNTER_FREQUENC

Re: [U-Boot] [U-Boot, 01/36] rockchip: rk3288: move configure_l2ctlr back to rk3288

2018-04-01 Thread Kever Yang
Hi Philipp, On 04/02/2018 04:47 AM, Philipp Tomsich wrote: > > > On Tue, 27 Mar 2018, Kever Yang wrote: > >> The configure_l2ctlr() is used only by rk3288, do not need to >> locate in sys_proto.h > > Please elaborate on what the function does and why it is not needed by > any of the other SOCs (a

Re: [U-Boot] [PATCH] arm: stm32mp1: add PSCI support

2018-04-01 Thread Tom Rini
On Thu, Mar 29, 2018 at 04:59:21PM +, Patrick DELAUNAY wrote: > Hi Mark, > > > > -Original Message- > > From: Mark Rutland [mailto:mark.rutl...@arm.com] > > > > Hi, > > > > On Tue, Mar 20, 2018 at 01:59:03PM +0100, Patrick Delaunay wrote: > > > Add minimal PSCI support for Linux. >

Re: [U-Boot] [PATCH v2 1/2] ARC: HSDK: add platform-specific commands

2018-04-01 Thread Tom Rini
On Fri, Mar 30, 2018 at 08:08:19PM +, Alexey Brodkin wrote: > Hi Tom, > > On Mon, 2018-03-26 at 15:57 +0300, Eugeniy Paltsev wrote: > > This patch add support of hsdk platform-specific commands: > > > > hsdk_clock set - set clock from axi_freq, cpu_freq and tun_freq > > environment variables/

[U-Boot] Please pull u-boot-dm

2018-04-01 Thread Simon Glass
Hi Tom, Here's an assortment of things that were in my queue. Test result is here: https://travis-ci.org/sglass68/u-boot/builds/360881266 The following changes since commit 81cf7c8d45935a295991fe2cd1df286f0f47511f: Merge git://git.denx.de/u-boot-ubi (2018-03-25 12:02:13 -0400) are available

Re: [U-Boot] [U-Boot, 31/36] rockchip: rk3399: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Use common board file and move SoC spec setting into rk3399.c Signed-off-by: Kever Yang See below for a few comments. I'll review again, once this series is somewhat more mature... --- arch/arm/mach-rockchip/rk3399-board-spl.c | 179 ---

Re: [U-Boot] [PATCH v2 1/2] Migrate CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig

2018-04-01 Thread Petr Vorel
Hi Alex, > Convert CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig > Signed-off-by: Alex Kiernan > Reviewed-by: Lukasz Majewski Reviewed-by: Petr Vorel > --- > Changes in v2: > - Rebase against master > - Drop default in Kconfig to avoid over conversion by moveconfig > - Resolve conflict in

Re: [U-Boot] [U-Boot, 24/36] armv8: add timer_get_boot_us() for generic timer

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We need timer_get_boot_us() for boot stage if we use generic timer only. Signed-off-by: Kever Yang See below for requested changes/questions. --- arch/arm/cpu/armv8/generic_timer.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/arm/c

Re: [U-Boot] [U-Boot, 21/36] rockchip: rk3128: prepare use common board file

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: remoe rk3128 board file and move SoC spec setting into rk3128.c 'Remove'? Also: please elaborate on what this patch is doing. Signed-off-by: Kever Yang Many comments agains the similar changes also apply here. --- arch/arm/mach-rockchip/rk3128-

Re: [U-Boot] [U-Boot, 17/36] rockchip: sdram_common: add common dram_init_banksize

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: dram_init_banksize() can be common used by all SoCs, move it into sdram_common.c Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/sdram_common.c | 63 ++- 1 file changed, 62 insertions(+), 1 deletion(-) diff --git a/

Re: [U-Boot] [U-Boot, 18/36] rockchip: rk3188: remove rockchip timer as sys timer

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We use ARM arch timer instead. Signed-off-by: Kever Yang --- include/configs/rk3188_common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/configs/rk3188_common.h b/include/configs/rk3188_common.h index 30c150e..7dddf11 100644 --- a

Re: [U-Boot] [U-Boot, 15/36] rockchip: declare sdram_init() in common header

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We need a dedicate sdram_init() function for those SoCS not using SPL_FRAMEWORK. Signed-off-by: Kever Yang --- arch/arm/include/asm/arch-rockchip/sys_proto.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/include/asm/arch-rockchip/sys_p

Re: [U-Boot] [U-Boot, 14/36] rockchip: rk3036: prepare to use commong board file

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Move some soc spec setting into rk3036.c Please provide a summary of the changes in your commit message. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036-board.c | 104 - arch/arm/mach-rockchip/rk3036/Make

Re: [U-Boot] [U-Boot, 12/36] rockchip: rk3036: sdram: use udelay instead of rockchip_udelay

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We are going to remove rockchip_udelay after enable arch timer. Please use commit message that better describes what this commit is changing. Signed-off-by: Kever Yang --- arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 19 +-- 1 fi

Re: [U-Boot] [U-Boot, 16/36] rockchip: sdram-common: add api to pass dram info to trust os

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Trust OS decode this info like this: https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/rockchip/common/drivers/parameter/ddr_parameter.c#L19 We have to set a available value, or else we get error info from Trust OS like this: "ERROR:

Re: [U-Boot] [U-Boot, 33/36] rockchip: dts: rk3399-firefly: enable uart2 in spl

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: pre-loader console in SPL needs UART. Please describe what the change is (with this I still need to look at the diff). Signed-off-by: Kever Yang Just make this a separate patch, as I can apply this without the remainder of the series. --- a

Re: [U-Boot] [U-Boot, 29/36] rockchip: rk3368: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Use common board file and move SoC spec setting into rk3368.c Please improve the commit message, so the casual reader knows what is changed it this patch and why. Signed-off-by: Kever Yang See below for some requested changes. --- arch/arm/ma

Re: [U-Boot] [U-Boot, 30/36] rockchip: lion-rk3368: remove rockchip timer

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We use ARM generic timer. A more enlightening commit message, please. Signed-off-by: Kever Yang See below for comments. --- configs/lion-rk3368_defconfig | 4 1 file changed, 4 deletions(-) diff --git a/configs/lion-rk3368_defconfig b/confi

Re: [U-Boot] [U-Boot, 36/36] rockchip: add common board file for rockchip platform

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We use common board/spl/tpl file for all rockchip SoCs, - all the SoC spec setting should move into SoC file like rk3288.c; - tpl is option and only purpose to init DRAM, clock, uart(option); - spl do secure relate one time init, boot device select, boot

Re: [U-Boot] [U-Boot, 35/36] rockchip: declear boot_devices in bootrom.h

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: boot_devices may defined in soc file, and used in board file, we need to delear it in header file. I think you meant to write 'declare'. Again: a bit more context from the commit message might be useful (e.g. what is 'boot_devices'? If 'boot_devices'

Re: [U-Boot] [U-Boot, 10/36] rockchip: rk322x: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Move soc spec setting into rk322x.c and remove rk322x-board/board-spl.c A clear description of what the patch is attempting to achieve. Signed-off-by: Kever Yang See below for requested changes. --- arch/arm/mach-rockchip/rk322x-board.c

Re: [U-Boot] [U-Boot, 06/36] rockchip: add IRAM_START_ADDR for all SoCs

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We add this for get the location for boot device of bootrom. Your commit message should be specific enough, so the motivation for the change, where it fits into the overall architecture and what is changed are apparent. Signed-off-by: Kever Yang A

Re: [U-Boot] [U-Boot, 08/36] rockchip: rk322x: remove use rockchip timer as sys timer

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We can use arch timer instead of rockchip timer. A slightly more enlightening commit message would be great. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich These changes for (for the timer) should go into a separate series. Also: you should r

Re: [U-Boot] [U-Boot, 07/36] rockchip: rk3328: add BOOT_MODE_REG for rk3328

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: Signed-off-by: Kever Yang Commit message is missing. --- arch/arm/mach-rockchip/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 98bf935..892d51e 100644 --- a/arch/arm/m

Re: [U-Boot] [U-Boot, 35/36] rockchip: declear boot_devices in bootrom.h

2018-04-01 Thread Philipp Tomsich
> boot_devices may defined in soc file, and used in board file, > we need to delear it in header file. > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/bootrom.h | 2 ++ > 1 file changed, 2 insertions(+) > Acked-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, 03/36] rockchip: enable SYS_NS16550 for all SoCs by default

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: All rockchip SoCs can use ns16550 driver, enable it for all and set SYS_NS16550_MEM32 for all SoCs. Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich See below for a question. Note that I believe that the NS16550 cha

Re: [U-Boot] [U-Boot,05/36] rockchip: add STIMER_BASE for all SoCs

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: STIMER is can only access in secure mode if the SoCs supports trust, and it locate in alive power domain, as the source of ARM arch/generic timer, we add a base addr for all SoCs so that we can init with a common function. The commit message does not re

Re: [U-Boot] [U-Boot, 18/36] rockchip: rk3188: remove rockchip timer as sys timer

2018-04-01 Thread Philipp Tomsich
> We use ARM arch timer instead. > > Signed-off-by: Kever Yang > --- > > include/configs/rk3188_common.h | 3 --- > 1 file changed, 3 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listin

Re: [U-Boot] [U-Boot, 21/36] rockchip: rk3128: prepare use common board file

2018-04-01 Thread Philipp Tomsich
> remoe rk3128 board file and move SoC spec setting into rk3128.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3128-board.c | 127 > -- > 1 file changed, 127 deletions(-) > delete mode 100644 arch/arm/mach-rockchip/rk3128-board.c > Acked-b

Re: [U-Boot] [U-Boot, 16/36] rockchip: sdram-common: add api to pass dram info to trust os

2018-04-01 Thread Philipp Tomsich
> Trust OS decode this info like this: > https://github.com/ARM-software/arm-trusted-firmware/blob/master/plat/rockchip/common/drivers/parameter/ddr_parameter.c#L19 > We have to set a available value, or else we get error info from > Trust OS like this: > "ERROR: over or zero region, nr=3145987,

Re: [U-Boot] [U-Boot,13/36] rockchip: rk3036: remove sys timer

2018-04-01 Thread Philipp Tomsich
> Use ARM arch timer instead. > > Signed-off-by: Kever Yang > --- > > include/configs/rk3036_common.h | 4 > 1 file changed, 4 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo

Re: [U-Boot] [U-Boot, 02/36] rockchip: add common MACRO to enable sys arch timer

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: All rockchip SoCs can use ARM arch timer, let's enable it in common header file Please provide a commit message that is more descriptive of what actually happens... i.e. that COUNTER_FREQUENCY gets moved to a common header. It would be great to docum

Re: [U-Boot] [U-Boot, 15/36] rockchip: declare sdram_init() in common header

2018-04-01 Thread Philipp Tomsich
> We need a dedicate sdram_init() function for those SoCS not > using SPL_FRAMEWORK. > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/sys_proto.h | 3 +++ > 1 file changed, 3 insertions(+) > Acked-by: Philipp Tomsich ___ U

Re: [U-Boot] [U-Boot, 04/36] rockchip: defconfig: remove CONFIG_SYS_NS16550

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: We have enable NS16550 in Kconfig, do not need enable at defconfig Did you generate this with moveconfig.py? Signed-off-by: Kever Yang Acked-by: Philipp Tomsich Reviewed-by: Philipp Tomsich ___ U-Boot

Re: [U-Boot] [U-Boot, 07/36] rockchip: rk3328: add BOOT_MODE_REG for rk3328

2018-04-01 Thread Philipp Tomsich
> Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/Kconfig | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot

Re: [U-Boot] [U-Boot, 23/36] rockchip: rk3288: remove rockchip timer for sys timer

2018-04-01 Thread Philipp Tomsich
> Use ARM arch timer instead > > Signed-off-by: Kever Yang > --- > > include/configs/rk3288_common.h | 4 > 1 file changed, 4 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/

Re: [U-Boot] [U-Boot, 25/36] rockchip: rk3288: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Use common board file and move SoC spec setting into rk3288.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3288-board-spl.c | 304 -- > arch/arm/mach-rockchip/rk3288-board-tpl.c | 84 - > arch/arm/mach-rockchip/rk3288-board.c

Re: [U-Boot] [U-Boot, 27/36] rockchip: rv1108: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Remove functions will present at common board file. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rv1108/rv1108.c | 8 > board/rockchip/evb_rv1108/evb_rv1108.c | 6 -- > 2 files changed, 14 deletions(-) > Acked-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, 26/36] rockchip: rk1108: remove rockchip timer for sys timer

2018-04-01 Thread Philipp Tomsich
> We use ARM arch timer instead. > > Signed-off-by: Kever Yang > --- > > include/configs/rv1108_common.h | 5 - > 1 file changed, 5 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/list

Re: [U-Boot] [U-Boot, 29/36] rockchip: rk3368: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Use common board file and move SoC spec setting into rk3368.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3368-board-spl.c | 73 -- > arch/arm/mach-rockchip/rk3368-board-tpl.c | 157 > -- > arch/arm/mach-rockchip/rk3368/rk3368

Re: [U-Boot] rockchip: clk: rk3288: add clk_enable function and support USB HOST0/HSIC

2018-04-01 Thread Philipp Tomsich
> The generic ehci-driver (ehci-generic.c) will try to enable the clocks > listed in the DTSI. If this fails (e.g. due to clk_enable not being > implemented in a driver and -ENOSYS being returned by the clk-uclass), > the driver will bail our and print an error message. > > This implements a minim

Re: [U-Boot] [U-Boot, 20/36] rockchip: rk3128: remove rockchip timer as systimer

2018-04-01 Thread Philipp Tomsich
> We use ARM arch timer instead. > > Signed-off-by: Kever Yang > --- > > include/configs/rk3128_common.h | 4 > 1 file changed, 4 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

Re: [U-Boot] [U-Boot, 30/36] rockchip: lion-rk3368: remove rockchip timer

2018-04-01 Thread Philipp Tomsich
> We use ARM generic timer. > > Signed-off-by: Kever Yang > --- > > configs/lion-rk3368_defconfig | 4 > 1 file changed, 4 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-b

Re: [U-Boot] [U-Boot, 33/36] rockchip: dts: rk3399-firefly: enable uart2 in spl

2018-04-01 Thread Philipp Tomsich
> pre-loader console in SPL needs UART. > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3399-firefly.dts | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/l

Re: [U-Boot] [U-Boot, 31/36] rockchip: rk3399: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Use common board file and move SoC spec setting into rk3399.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3399-board-spl.c | 179 > -- > arch/arm/mach-rockchip/rk3399-board.c | 14 -- > arch/arm/mach-rockchip/rk3399/rk3399.c

Re: [U-Boot] [U-Boot, 36/36] rockchip: add common board file for rockchip platform

2018-04-01 Thread Philipp Tomsich
> We use common board/spl/tpl file for all rockchip SoCs, > - all the SoC spec setting should move into SoC file like rk3288.c; > - tpl is option and only purpose to init DRAM, clock, uart(option); > - spl do secure relate one time init, boot device select, boot into > U-Boot or trust or OS in fa

Re: [U-Boot] [U-Boot, 17/36] rockchip: sdram_common: add common dram_init_banksize

2018-04-01 Thread Philipp Tomsich
> dram_init_banksize() can be common used by all SoCs, move it into > sdram_common.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/sdram_common.c | 63 > ++- > 1 file changed, 62 insertions(+), 1 deletion(-) > Acked-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot, 22/36] rockchip: dts: rk3288: update spl-boot-order

2018-04-01 Thread Philipp Tomsich
> Use "uboot,spl-boot-orde" instead of "uboot,boot0". > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3288-phycore-rdk.dts | 6 +- > arch/arm/dts/rk3288-veyron.dtsi | 6 +- > 2 files changed, 2 insertions(+), 10 deletions(-) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 28/36] rockchip: rk3328: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Use common board file and move SoC spec setting into rk3328.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3328/rk3328.c | 59 +- > board/rockchip/evb_rk3328/evb-rk3328.c | 66 > -- > 2 files changed, 51 insertio

Re: [U-Boot] [U-Boot, 12/36] rockchip: rk3036: sdram: use udelay instead of rockchip_udelay

2018-04-01 Thread Philipp Tomsich
> We are going to remove rockchip_udelay after enable arch timer. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3036/sdram_rk3036.c | 19 +-- > 1 file changed, 9 insertions(+), 10 deletions(-) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 10/36] rockchip: rk322x: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Move soc spec setting into rk322x.c and remove rk322x-board/board-spl.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk322x-board.c | 155 > - > arch/arm/mach-rockchip/rk322x/Makefile | 2 +- > .../{rk322x-board-spl.c => rk322x

Re: [U-Boot] [U-Boot, 19/36] rockchip: rk3188: prepare to use common board file

2018-04-01 Thread Philipp Tomsich
> Move SoC spec setting into rk3188.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3188-board-spl.c | 226 > -- > arch/arm/mach-rockchip/rk3188-board.c | 82 --- > arch/arm/mach-rockchip/rk3188/Makefile| 1 + > arch/arm/mach-ro

Re: [U-Boot] [U-Boot, 14/36] rockchip: rk3036: prepare to use commong board file

2018-04-01 Thread Philipp Tomsich
> Move some soc spec setting into rk3036.c > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk3036-board.c | 104 > - > arch/arm/mach-rockchip/rk3036/Makefile | 2 +- > .../{rk3036-board-spl.c => rk3036/rk3036.c}| 41 ++-

Re: [U-Boot] [U-Boot, 34/36] rockchip: spl-boot-order: do not enable with OF_PLATDATA

2018-04-01 Thread Philipp Tomsich
> The "fdt_*" functions may not enable even if the OF_CONTROL is enabled. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/spl-boot-order.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Acked-by: Philipp Tomsich ___ U-Boot

Re: [U-Boot] [U-Boot, 24/36] armv8: add timer_get_boot_us() for generic timer

2018-04-01 Thread Philipp Tomsich
> We need timer_get_boot_us() for boot stage if we use generic timer only. > > Signed-off-by: Kever Yang > --- > > arch/arm/cpu/armv8/generic_timer.c | 6 ++ > 1 file changed, 6 insertions(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list

Re: [U-Boot] [U-Boot, 01/36] rockchip: rk3288: move configure_l2ctlr back to rk3288

2018-04-01 Thread Philipp Tomsich
On Tue, 27 Mar 2018, Kever Yang wrote: The configure_l2ctlr() is used only by rk3288, do not need to locate in sys_proto.h Please elaborate on what the function does and why it is not needed by any of the other SOCs (after all: it has been available to all SOCs so far). Signed-off-by: Ke

Re: [U-Boot] [U-Boot,13/36] rockchip: rk3036: remove sys timer

2018-04-01 Thread Philipp Tomsich
> Use ARM arch timer instead. > > Signed-off-by: Kever Yang > --- > > include/configs/rk3036_common.h | 4 > 1 file changed, 4 deletions(-) > Reviewed-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listi

Re: [U-Boot] [U-Boot,32/36] rockchip: remove rk_timer

2018-04-01 Thread Philipp Tomsich
> We do not use rk_timer.c now, remove it. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > arch/arm/mach-rockchip/rk_timer.c | 48 > --- > 1 file changed, 48 deletions(-) > delete mode 100644 arch/arm/mach-rockchip/rk_timer.c > Review

Re: [U-Boot] [U-Boot, 34/36] rockchip: spl-boot-order: do not enable with OF_PLATDATA

2018-04-01 Thread Philipp Tomsich
> The "fdt_*" functions may not enable even if the OF_CONTROL is enabled. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/spl-boot-order.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Reviewed-by: Philipp Tomsich ___ U-B

Re: [U-Boot] [U-Boot, 11/36] rockchip: defconfig enable sysreset for rk3229 spl

2018-04-01 Thread Philipp Tomsich
> We need CONFIG_SPL_DRIVERS_MISC_SUPPORT to enable sysreset driver, > which will fix missing do_reset() error in SPL build. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > configs/evb-rk3229_defconfig | 1 + > 1 file changed, 1 insertion(+) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 22/36] rockchip: dts: rk3288: update spl-boot-order

2018-04-01 Thread Philipp Tomsich
> Use "uboot,spl-boot-orde" instead of "uboot,boot0". > > Signed-off-by: Kever Yang > --- > > arch/arm/dts/rk3288-phycore-rdk.dts | 6 +- > arch/arm/dts/rk3288-veyron.dtsi | 6 +- > 2 files changed, 2 insertions(+), 10 deletions(-) > Reviewed-by: Philipp Tomsich _

Re: [U-Boot] [U-Boot, 09/36] rockchip: rk322x: sdram: use common udelay instead of rockchip_udelay

2018-04-01 Thread Philipp Tomsich
> Do not need to use rockchip_udelay after we can use systimer. > > Signed-off-by: Kever Yang > Acked-by: Philipp Tomsich > --- > > drivers/ram/rockchip/sdram_rk322x.c | 29 ++--- > 1 file changed, 14 insertions(+), 15 deletions(-) > Reviewed-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 11/36] rockchip: defconfig enable sysreset for rk3229 spl

2018-04-01 Thread Philipp Tomsich
> We need CONFIG_SPL_DRIVERS_MISC_SUPPORT to enable sysreset driver, > which will fix missing do_reset() error in SPL build. > > Signed-off-by: Kever Yang > --- > > configs/evb-rk3229_defconfig | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Philipp Tomsich __

Re: [U-Boot] [U-Boot,32/36] rockchip: remove rk_timer

2018-04-01 Thread Philipp Tomsich
> We do not use rk_timer.c now, remove it. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/rk_timer.c | 48 > --- > 1 file changed, 48 deletions(-) > delete mode 100644 arch/arm/mach-rockchip/rk_timer.c > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 06/36] rockchip: add IRAM_START_ADDR for all SoCs

2018-04-01 Thread Philipp Tomsich
> We add this for get the location for boot device of bootrom. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/Kconfig | 17 + > 1 file changed, 17 insertions(+) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-B

Re: [U-Boot] [U-Boot, 09/36] rockchip: rk322x: sdram: use common udelay instead of rockchip_udelay

2018-04-01 Thread Philipp Tomsich
> Do not need to use rockchip_udelay after we can use systimer. > > Signed-off-by: Kever Yang > --- > > drivers/ram/rockchip/sdram_rk322x.c | 29 ++--- > 1 file changed, 14 insertions(+), 15 deletions(-) > Acked-by: Philipp Tomsich

Re: [U-Boot] [U-Boot, 03/36] rockchip: enable SYS_NS16550 for all SoCs by default

2018-04-01 Thread Philipp Tomsich
> All rockchip SoCs can use ns16550 driver, enable it for all > and set SYS_NS16550_MEM32 for all SoCs. > > Signed-off-by: Kever Yang > --- > > arch/arm/Kconfig | 1 + > arch/arm/mach-rockchip/Kconfig| 1 - > include/configs/rk3036_common.h | 3 --- > include/configs/rk31

Re: [U-Boot] [U-Boot,05/36] rockchip: add STIMER_BASE for all SoCs

2018-04-01 Thread Philipp Tomsich
> STIMER is can only access in secure mode if the SoCs supports trust, > and it locate in alive power domain, as the source of ARM arch/generic > timer, we add a base addr for all SoCs so that we can init with a common > function. > > Signed-off-by: Kever Yang > --- > > arch/arm/mach-rockchip/K

Re: [U-Boot] [U-Boot, 04/36] rockchip: defconfig: remove CONFIG_SYS_NS16550

2018-04-01 Thread Philipp Tomsich
> We have enable NS16550 in Kconfig, do not need enable at defconfig > > Signed-off-by: Kever Yang > --- > > configs/evb-rk3128_defconfig | 1 - > configs/evb-rk3229_defconfig | 1 - > configs/evb-rk3288_defconfig | 1 - > configs/evb-rk3328_defconfig | 1 - > configs/evb-rk

Re: [U-Boot] [U-Boot, 02/36] rockchip: add common MACRO to enable sys arch timer

2018-04-01 Thread Philipp Tomsich
> All rockchip SoCs can use ARM arch timer, let's enable it in > common header file > > Signed-off-by: Kever Yang > --- > > include/configs/rk3368_common.h | 2 -- > include/configs/rk3399_common.h | 2 -- > include/configs/rockchip-common.h | 4 > 3 files changed, 4 insertions(+), 4 d

Re: [U-Boot] [U-Boot, 08/36] rockchip: rk322x: remove use rockchip timer as sys timer

2018-04-01 Thread Philipp Tomsich
> We can use arch timer instead of rockchip timer. > > Signed-off-by: Kever Yang > --- > > include/configs/rk322x_common.h | 3 --- > 1 file changed, 3 deletions(-) > Acked-by: Philipp Tomsich ___ U-Boot mailing list U-Boot@lists.denx.de https://li

Re: [U-Boot] [U-Boot, 01/36] rockchip: rk3288: move configure_l2ctlr back to rk3288

2018-04-01 Thread Philipp Tomsich
> The configure_l2ctlr() is used only by rk3288, do not need to > locate in sys_proto.h > > Signed-off-by: Kever Yang > --- > > arch/arm/include/asm/arch-rockchip/sys_proto.h | 22 -- > arch/arm/mach-rockchip/rk3288/rk3288.c | 26 > +- > 2 fi

Re: [U-Boot] [PATCH v2 1/2] Migrate CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig

2018-04-01 Thread Petr Vorel
Hi Alex, > Convert CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig > Signed-off-by: Alex Kiernan > Reviewed-by: Lukasz Majewski Reviewed-by: Petr Vorel > --- > Changes in v2: > - Rebase against master > - Drop default in Kconfig to avoid over conversion by moveconfig > - Resolve conflict in i

Re: [U-Boot] [PATCH v2 2/2] Cleanup CONFIG_VERSION_VARIABLE migration

2018-04-01 Thread Petr Vorel
Hi Alex, > CONFIG_VERSION_VARIABLE had already been mostly migrated to Kconfig, > but two headers still referenced it. Also set defaults so that > most of the defconfigs inherit the default rather than needing it > to be set explicitly. > Signed-off-by: Alex Kiernan Reviewed-by: Petr Vorel > --

[U-Boot] [PATCH v2 1/2] Migrate CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig

2018-04-01 Thread Alex Kiernan
Convert CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG to Kconfig Signed-off-by: Alex Kiernan Reviewed-by: Lukasz Majewski --- Changes in v2: - Rebase against master - Drop default in Kconfig to avoid over conversion by moveconfig - Resolve conflict in include/configs/am335x_igep003x.h README

[U-Boot] [PATCH v2 2/2] Cleanup CONFIG_VERSION_VARIABLE migration

2018-04-01 Thread Alex Kiernan
CONFIG_VERSION_VARIABLE had already been mostly migrated to Kconfig, but two headers still referenced it. Also set defaults so that most of the defconfigs inherit the default rather than needing it to be set explicitly. Signed-off-by: Alex Kiernan --- Changes in v2: - Remove default from Kconfig

Re: [U-Boot] [PATCH 2/5] fdt_region: remove unneeded fdt_internal.h inclusion

2018-04-01 Thread Simon Glass
On 23 March 2018 at 22:30, Simon Glass wrote: > On 21 March 2018 at 03:03, Masahiro Yamada > wrote: >> fdt_region.c does not depend on anything in libfdt_internal.h >> >> Signed-off-by: Masahiro Yamada >> --- >> >> lib/libfdt/fdt_region.c | 2 -- >> 1 file changed, 2 deletions(-) > > Reviewed-b

Re: [U-Boot] [PATCH 1/5] libfdt: move FDT_RAMDISK_OVERHEAD to image-fdt.c

2018-04-01 Thread Simon Glass
On 23 March 2018 at 22:30, Simon Glass wrote: > On 21 March 2018 at 03:03, Masahiro Yamada > wrote: >> This macro is locally referenced in common/image-fdt.c >> >> Signed-off-by: Masahiro Yamada >> --- >> >> common/image-fdt.c | 3 +++ >> include/linux/libfdt.h | 3 --- >> 2 files changed,

Re: [U-Boot] [PATCH 2/3] fs: cbfs: fix locating the cbfs header

2018-04-01 Thread Simon Glass
On 1 April 2018 at 22:19, Simon Glass wrote: > Hi, > > On 22 February 2018 at 08:08, Alexander Graf wrote: >> >> >> On 15.02.18 07:40, Andre Heider wrote: >>> The value at the end of the rom is not a pointer, it is an offset >>> relative to the end of rom. >> >> Do you have any documentation poin

Re: [U-Boot] [PATCH 3/5] image.h: add forward declaration of struct fdt_region

2018-04-01 Thread Simon Glass
On 23 March 2018 at 22:30, Simon Glass wrote: > On 21 March 2018 at 03:03, Masahiro Yamada > wrote: >> This header needs to know 'fdt_region' is a struct for the >> fit_region_make_list() prototype. >> >> Signed-off-by: Masahiro Yamada >> --- >> >> include/image.h | 1 + >> 1 file changed, 1 in

Re: [U-Boot] [PATCH] dm: core: make fixed-clock dt scan live dt compatible

2018-04-01 Thread Simon Glass
On 20 March 2018 at 08:56, Andy Yan wrote: > Hi Simon: > > > > On 2018年03月20日 01:58, Simon Glass wrote: >> >> Hi Andy, >> >> On 10 March 2018 at 23:58, Andy Yan wrote: >>> >>> Hi Simon: >>> >>> >>> >>> On 2018年03月09日 05:03, Simon Glass wrote: Hi Andy. On 28 February 2018 at 23

Re: [U-Boot] [PATCH v2] core: ofnode: Fix translation for #size-cells == 0

2018-04-01 Thread Simon Glass
On 20 March 2018 at 01:58, Simon Glass wrote: > On 12 March 2018 at 07:53, Mario Six wrote: >> Commit 286ede6 ("drivers: core: Add translation in live tree case") made >> dev_get_addr always use proper bus translations for addresses read from >> the device tree. But this leads to problems with ce

  1   2   >