[U-Boot] [PATCH v1] rockchip: pwm: fix: pwm dosen't work on rk3288

2017-06-18 Thread Eric Gao
According to rk3288 spec, the pwm register order is: PWM_PWM0_CNT, PWM_PWM0_PERIOD_HPR, PWM_PWM0_DUTY_LPR, PWM_PWM0_CTRL but the source code's order is: struct rk3288_pwm { u32 cnt; u32 duty_lpr; u32 period_hpr; u32 ctrl; }; So, correct it here. It is the same as R

Re: [U-Boot] [PATCH 2/2] mmc: rpmb: update size format for write_counter

2017-06-18 Thread Lothar Waßmann
Hi, On Tue, 13 Jun 2017 10:11:17 +0800 Kever Yang wrote: > Hi Simon, > > > On 06/09/2017 08:28 PM, Simon Glass wrote: > > On 7 June 2017 at 19:20, Kever Yang wrote: > >> According to MMC spec, the write_counter is 4-byte length, > >> use 'int' instead of 'long' type for the 'long' is not 4-byte

[U-Boot] [PATCH v2 1/3] rockchip: video: mipi: Add rk3288 soc specific driver for mipi dsi

2017-06-18 Thread Eric Gao
Add rk3288 soc specific driver for mipi dsi. Signed-off-by: Eric Gao --- Changes in v1: -Change function name from rk_display_enable to rk_mipi_enable. -Use IS_ERR to judge the return status. -Use dev_read_addr to replace devfdt_get_addr. drivers/video/rockchip/rk3288_mipi.c | 191 +++

[U-Boot] [PATCH v2 2/3] rockchip: video: Makefile: Add soc specific driver for rk3288 mipi dsi

2017-06-18 Thread Eric Gao
Signed-off-by: Eric Gao --- Changes in v1: None drivers/video/rockchip/Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/video/rockchip/Makefile b/drivers/video/rockchip/Makefile index 600743c..8005003 100644 --- a/drivers/video/rockchip/Makefile +++ b/drivers/video/rockchip/

[U-Boot] [PATCH v2 3/3] rockchip: video: defconfig: Add mipi dsi support for evb-rk3288

2017-06-18 Thread Eric Gao
Add support for rk3288 mipi dsi. Signed-off-by: Eric Gao Reviewed-by: Simon Glass --- Changes in v1: -Make the subject more intelligible. configs/evb-rk3288_defconfig | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configs/evb-rk3288_defconfig b/configs/evb-rk3288

[U-Boot] [PATCH v2 0/3] Add mipi dsi support for evb-rk3288.

2017-06-18 Thread Eric Gao
Changes in v1: -Change function name from rk_display_enable to rk_mipi_enable. -Use IS_ERR to judge the return status. -Use dev_read_addr to replace devfdt_get_addr. -Make the subject more intelligible. Eric Gao (3): rockchip: video: mipi: Add rk3288 soc specific driver for mipi dsi rockchip

Re: [U-Boot] [PATCH] SECURE_BOOT: Unify memory map for Layerscape based platforms

2017-06-18 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Wednesday, June 14, 2017 1:55 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Vini Pillai ; Udit > Agarwal > Subject: Re: [PATCH] SECURE_BOOT: Unify memory map for Layerscape based > platforms > > On 05/

Re: [U-Boot] [PATCH] arm64: ls1043ardb: Add distro secure boot support

2017-06-18 Thread Sumit Garg
> -Original Message- > From: York Sun > Sent: Wednesday, June 14, 2017 2:13 AM > To: Sumit Garg ; u-boot@lists.denx.de > Cc: Ruchika Gupta ; Prabhakar Kushwaha > ; Mingkai Hu ; > Shengzhou Liu > Subject: Re: [PATCH] arm64: ls1043ardb: Add distro secure boot support > > On 06/04/2017 11:54

Re: [U-Boot] [PATCH v3] regmap: add support for address cell 2

2017-06-18 Thread Simon Glass
Hi Kever, On 7 May 2017 at 19:45, Kever Yang wrote: > Hi Heiko, > > > Thanks for your comments. > > > On 05/05/2017 09:10 PM, Heiko Stuebner wrote: >> >> Hi Kever, >> >> Am Freitag, 5. Mai 2017, 10:39:35 CEST schrieb Kever Yang: >>> >>> ARM64 is using 64bit address which address cell is 2 instead

[U-Boot] [PATCH 04/11] dtoc: Fix pylint warnings

2017-06-18 Thread Simon Glass
Unfortunately I neglected to run pylint on this tool with its initial submission. Fix the warnings. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 261 - tools/dtoc/dtoc.py | 14 +-- 2 files changed, 144 insertions(+), 131 deleti

[U-Boot] [PATCH 08/11] dtoc: Move the main logic into the dtb_platdata file

2017-06-18 Thread Simon Glass
Collect the main logic of dtoc into a function and put it into dtb_platdata. This will allow tests to use this function instead of duplicating the code themselves. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 29 + tools/dtoc/dtoc.py | 19 ++---

[U-Boot] [PATCH 09/11] dtoc: Add a comment about string replace in conv_name_to_c()

2017-06-18 Thread Simon Glass
This function uses several separate string replaces where a regular expression might seem more reasonable. Add a comment justifying the way it is currently done. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/dtoc/dtb_platd

[U-Boot] [PATCH 06/11] dtoc: Pass include_disabled explicitly

2017-06-18 Thread Simon Glass
This option is the only one actually used by the dtb_platdata class. Pass it explicitly to avoid needing to pass the whole option object to the constructor. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 8 tools/dtoc/dtoc.py | 2 +- 2 files changed, 5 insertions(+

[U-Boot] [PATCH 11/11] dtoc: Add tests

2017-06-18 Thread Simon Glass
Add some tests of dtoc's functionality to make it easier to expand and enhance the tool. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 31 - tools/dtoc/dtoc_test.dts | 12 ++ tools/dtoc/dtoc_test_aliases.dts | 18 +++ tools/dtoc/dtoc_test_empty.dts | 12 ++

[U-Boot] [PATCH 02/11] dtoc: Add a comment at the top

2017-06-18 Thread Simon Glass
Add a description of the dtoc tool at the top of the file. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 20 1 file changed, 20 insertions(+) diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index 056f5157c9..79779477d9 100755 --- a/tools/dtoc/dtoc.py +++ b/tools

[U-Boot] [PATCH 05/11] dtoc: Don't handle properties with / in them

2017-06-18 Thread Simon Glass
This conversion appears to not be needed as it does not occur in practice. Drop it. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 1 - 1 file changed, 1 deletion(-) diff --git a/tools/dtoc/dtb_platdata.py b/tools/dtoc/dtb_platdata.py index 75adf48dea..d86651b9aa 100644 --- a/tool

[U-Boot] [PATCH 07/11] dtoc: Move static functions out of the class

2017-06-18 Thread Simon Glass
Rather than using static functions within the class, move them out of the class. This will make it slightly easier for tests to call them. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 125 +++-- 1 file changed, 63 insertions(+), 62 deletion

[U-Boot] [PATCH 10/11] sandbox: Stop printing platdata at the start of SPL

2017-06-18 Thread Simon Glass
Currently we have code which prints out platform data at the start of SPL. Now that we have tests for dtoc this is probably not necessary. Drop it. Update test_ofplatdata to check for empty output since it is useful to check that sandbox_spl works as expected. Signed-off-by: Simon Glass --- arc

[U-Boot] [PATCH 01/11] dtoc: Use self._options instead of the global options

2017-06-18 Thread Simon Glass
This class should use the options object passed to it rather than finding the global one. Fix it. Signed-off-by: Simon Glass --- tools/dtoc/dtoc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/dtoc/dtoc.py b/tools/dtoc/dtoc.py index c0ab13ad34..056f5157c9 100755

[U-Boot] [PATCH 03/11] dtoc: Split out the main class into its own file

2017-06-18 Thread Simon Glass
To simplify running tests we should move this class into its own file. This allows the tests to import it without having to import dtoc.py, which runs the tests. Signed-off-by: Simon Glass --- tools/dtoc/dtb_platdata.py | 411 + tools/dtoc/dtoc.py

[U-Boot] [PATCH 00/11] dtoc: Tidy up and add tests

2017-06-18 Thread Simon Glass
When dtoc was originally written it was an idea without much expectation (on my part at least) that it would be widely used. However there have been several features requests and it is being relied on for several rockchip boards. At present dtoc has no tests of its own. It relies on sandbox_spl wh

[U-Boot] Use u-boot to recover bricked NVIDIA SHIELD TV.

2017-06-18 Thread Matthew Gorski
I am curious if there is a possibility to recover a wrongly flashed NVIDIA SHIELD TV device by flashing u-boot instead of cboot and mounting the emmc in uboot to do some repairs. If I lose keys for widevine I won't care I just would like to know if this or any remedy is possible when stuck in APX

[U-Boot] [PULL] u-boot-usb/master

2017-06-18 Thread Marek Vasut
The following changes since commit b9f7d8817424bb328d5eac9b16196a1189b8b6f5: powerpc, 5xx: remove some "5xx" remains (2017-06-16 10:14:56 -0400) are available in the git repository at: git://git.denx.de/u-boot-usb.git master for you to fetch changes up to b9203429a04402bd03c48fa87670686ef7e

Re: [U-Boot] [GIT] Pull request: u-boot-dfu

2017-06-18 Thread Marek Vasut
On 06/18/2017 09:16 PM, Lukasz Majewski wrote: > Dear Marek, > > Please find pull request for dfu repository: Would be nice if you specified the branch next time. Pulled. > The following changes since commit > 9000eddbae0d292331ef403b0a1ff7ec7a983a79: > > drivers/usb/ehci: Use platform-specif

[U-Boot] [GIT] Pull request: u-boot-dfu

2017-06-18 Thread Lukasz Majewski
Dear Marek, Please find pull request for dfu repository: The following changes since commit 9000eddbae0d292331ef403b0a1ff7ec7a983a79: drivers/usb/ehci: Use platform-specific accessors (2017-06-17 17:59:03 +0200) are available in the git repository at: git://git.denx.de/u-boot-dfu.git f

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-18 Thread Wolfgang Denk
Dear Tom, In message <20170612145646.GY10782@bill-the-cat> you wrote: > > Looking at the man page for atoi: > The atoi() function converts the initial portion of the string pointed > to by nptr to int. The behavior is the same as > > strtol(nptr, NULL, 10); > > So we should just re-work

Re: [U-Boot] [PATCH v6 3/3] GPT: provide commands to selectively rename partitions

2017-06-18 Thread Wolfgang Denk
Dear Alison, In message you wrote: > > The idea behind the 'swap' mode is that a storage device can have two sets > of partitions, one set all named 'primary' and one set all named 'backup'. > The software updater in userspace can then simply rename the partitions > with sgdisk in order to pic