Re: [U-Boot] [PATCH V2 4/4] pytest: aes: add test for aes192 and aes256

2019-10-31 Thread Philippe REYNES
Hi Simonn > Hi Philippe, > > On Tue, 29 Oct 2019 at 11:29, Philippe Reynes > wrote: >> >> This commit update the aes tests to check the >> aes192 and aes256. >> >> Signed-off-by: Philippe Reynes >> --- >> test/py/tests/test_aes.py | 118 >> +++--- >> 1

[U-Boot] [PATCH v2 07/17] microcode_tool: Convert to Python 3

2019-10-31 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/microcode-tool.py | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/tools/microcode-tool.py

[U-Boot] [PATCH v2 04/17] buildman: Convert to Python 3

2019-10-31 Thread Simon Glass
Convert buildman to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: - Use integer division for multiprocessing.cpu_count() - Use integer division in SetupBuild() and GetActionSummary() - Use HTTPMessage.getheader() instead of

[U-Boot] [PATCH v2 09/17] rkmux: Convert to Python 3

2019-10-31 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/rkmux.py | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tools/rkmux.py b/tools/rkmux.py index 11c192a073..1226ee201c

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 11:13:32PM +0800, Bin Meng wrote: > Hi Tom, > > On Thu, Oct 31, 2019 at 10:51 PM Tom Rini wrote: > > > > For some time now, pytest has supported setting where a cache directory > > that it will use is located (and in turn has logic to re-use this cache > > and speed

Re: [U-Boot] tpm / measured boot in u-boot

2019-10-31 Thread Stuart Yoder
On Tue, Oct 29, 2019 at 8:49 PM Simon Glass wrote: > > Hi Stuart, > > On Mon, 28 Oct 2019 at 17:27, Stuart Yoder wrote: > > > > I saw Simon's write-up here: https://lwn.net/Articles/571031/, which > > references TPM > > and trusted boot support using the TPM. > > > > I've started looking at the

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 10:04:18AM -0600, Stephen Warren wrote: > On 10/31/19 8:51 AM, Tom Rini wrote: > > For some time now, pytest has supported setting where a cache directory > > that it will use is located (and in turn has logic to re-use this cache > > and speed things up when possible).

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 10:12:06AM -0600, Stephen Warren wrote: > On 10/31/19 10:07 AM, Tom Rini wrote: > > On Thu, Oct 31, 2019 at 10:04:18AM -0600, Stephen Warren wrote: > > > On 10/31/19 8:51 AM, Tom Rini wrote: > > > > For some time now, pytest has supported setting where a cache directory > >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Tom Rini
On Wed, Oct 30, 2019 at 11:36:19PM +, Aaron Williams wrote: > On Wednesday, October 30, 2019 3:05:25 PM PDT Tom Rini wrote: > > External Email > > > > -- > > > > On Wed, Oct 23, 2019 at 03:50:00AM +, Aaron Williams

[U-Boot] [PATCH v2 05/17] test_fdt: Move to use Python 3

2019-10-31 Thread Simon Glass
Update this test to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/test_fdt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dtoc/test_fdt.py b/tools/dtoc/test_fdt.py index 028c8cbaa8..3316757e61 100755 ---

[U-Boot] [PATCH v2 13/17] binman: Remember the pre-reset entry size

2019-10-31 Thread Simon Glass
When preparing to possible expand or contract an entry we reset the size to the original value from the binman device-tree definition, which is often None. This causes binman to forget the original size of the entry. Remember this so that it can be used when needed. Signed-off-by: Simon Glass

[U-Boot] [PATCH v2 08/17] move_config: Convert to Python 3

2019-10-31 Thread Simon Glass
Convert this tool to Python 3 and make it use that, to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/moveconfig.py | 82 ++--- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/tools/moveconfig.py

[U-Boot] [PATCH v2 17/17] RRC: gitlab: Use Python 3 in virtualenv

2019-10-31 Thread Simon Glass
This is a test to see if it removes the error here: https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/jobs/24304 Signed-off-by: Simon Glass --- Changes in v2: None .gitlab-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index

[U-Boot] [PATCH v2 06/17] test_dtoc: Move to use Python 3

2019-10-31 Thread Simon Glass
Update this test to use Python 3 to meet the 2020 deadline. Also make it executable while we are here. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/dtoc.py | 2 +- tools/dtoc/test_dtoc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) mode change 100644 =>

[U-Boot] [PATCH v2 10/17] pylibfdt: Convert to Python 3

2019-10-31 Thread Simon Glass
Build this swig module with Python 3. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/Makefile | 2 +- scripts/dtc/pylibfdt/libfdt.i_shipped | 2 +- scripts/dtc/pylibfdt/setup.py | 2 +- tools/binman/entry.py | 16 ++--

Re: [U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 07:43:05AM -0600, Simon Glass wrote: > Update this tool to use Python 3 to meet the 2020 deadline. > > Unfortunately this introduces a test failure due to a problem in pylibfdt > on Python 3. I will investigate. > > Signed-off-by: Simon Glass > --- > > Changes in v2: >

Re: [U-Boot] [PATCH 04/13] dm: pinctrl: migrate pinctrl-generic to livetree

2019-10-31 Thread Patrick DELAUNAY
Hi Simon > From: Simon Glass > Sent: mercredi 30 octobre 2019 02:48 > > Hi Patrick, > > On Wed, 23 Oct 2019 at 07:45, Patrick Delaunay > wrote: > > > > Migrate pinctrl-generic to livetree: > > - ofnode_get_first_property > > - ofnode_get_next_property > > - ofnode_get_property_by_prop > > -

Re: [U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 09:19:50AM -0600, Simon Glass wrote: > Hi Tom, > > On Thu, 31 Oct 2019 at 07:55, Tom Rini wrote: > > > > On Thu, Oct 31, 2019 at 07:43:05AM -0600, Simon Glass wrote: > > > > > Update this tool to use Python 3 to meet the 2020 deadline. > > > > > > Unfortunately this

Re: [U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-10-31 Thread Simon Glass
Hi Tom, On Thu, 31 Oct 2019 at 09:50, Tom Rini wrote: > > On Thu, Oct 31, 2019 at 09:19:50AM -0600, Simon Glass wrote: > > Hi Tom, > > > > On Thu, 31 Oct 2019 at 07:55, Tom Rini wrote: > > > > > > On Thu, Oct 31, 2019 at 07:43:05AM -0600, Simon Glass wrote: > > > > > > > Update this tool to use

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Stephen Warren
On 10/31/19 10:07 AM, Tom Rini wrote: On Thu, Oct 31, 2019 at 10:04:18AM -0600, Stephen Warren wrote: On 10/31/19 8:51 AM, Tom Rini wrote: For some time now, pytest has supported setting where a cache directory that it will use is located (and in turn has logic to re-use this cache and speed

[U-Boot] [PATCH v2 00/17] scripts: Convert to Python 3

2019-10-31 Thread Simon Glass
This converts some of the tools/scripts that I've been involved in to use Python 3. In this version the problem with fdt_property_stub() in pylibfdt is fixed. Changes in v2: - Add new patch to explicitly use unicode for file I/O in patman - Use integer division for multiprocessing.cpu_count() -

Re: [U-Boot] [PATCH v2 17/17] RRC: gitlab: Use Python 3 in virtualenv

2019-10-31 Thread Tom Rini
On Thu, Oct 31, 2019 at 07:43:06AM -0600, Simon Glass wrote: > This is a test to see if it removes the error here: > > https://gitlab.denx.de/u-boot/custodians/u-boot-dm/-/jobs/24304 > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > .gitlab-ci.yml | 4 ++-- > 1 file changed,

[U-Boot] [PATCH v2 14/17] binman: Convert a few tests to Python 3

2019-10-31 Thread Simon Glass
Some tests have crept in with Python 2 strings and constructs. Convert then. Signed-off-by: Simon Glass --- Changes in v2: None tools/binman/ftest.py | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tools/binman/ftest.py b/tools/binman/ftest.py index

[U-Boot] [PATCH v2 12/17] pylibfdt: Correct the type for fdt_property_stub()

2019-10-31 Thread Simon Glass
This function should use a void * type, not char *. This causes an error: TypeError: in method 'fdt_property_stub', argument 3 of type 'char const *' Fix it. Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 4 ++-- 1 file changed, 2 insertions(+), 2

[U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Tom Rini
For some time now, pytest has supported setting where a cache directory that it will use is located (and in turn has logic to re-use this cache and speed things up when possible). When running the pytest tests on Azure Pipelines, our source directory is read-only and we now see a warning about

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Stephen Warren
On 10/31/19 10:17 AM, Tom Rini wrote: On Thu, Oct 31, 2019 at 10:12:06AM -0600, Stephen Warren wrote: On 10/31/19 10:07 AM, Tom Rini wrote: On Thu, Oct 31, 2019 at 10:04:18AM -0600, Stephen Warren wrote: On 10/31/19 8:51 AM, Tom Rini wrote: For some time now, pytest has supported setting

[U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-10-31 Thread Simon Glass
Update this tool to use Python 3 to meet the 2020 deadline. Unfortunately this introduces a test failure due to a problem in pylibfdt on Python 3. I will investigate. Signed-off-by: Simon Glass --- Changes in v2: - Add a few more patches to correct remaining problems tools/binman/binman.py |

[U-Boot] [PATCH v2 15/17] dtoc: Convert fdt.py to Python 3

2019-10-31 Thread Simon Glass
Drop the now-unused Python 2 code to keep code coverage at 100%. Signed-off-by: Simon Glass --- Changes in v2: None tools/dtoc/fdt.py | 17 - 1 file changed, 4 insertions(+), 13 deletions(-) diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py index 6770be79fb..1b7b730359

[U-Boot] Pull request for UEFI sub-system for efi-2020-01-rc2

2019-10-31 Thread Heinrich Schuchardt
The following changes since commit ffc379b42c85466e1dd4c8fee8268801f26d2ab8: Merge tag 'mips-pull-2019-10-25' of git://git.denx.de/u-boot-mips (2019-10-25 20:07:24 -0400) are available in the Git repository at: https://gitlab.denx.de/u-boot/custodians/u-boot-efi.git tags/efi-2020-01-rc2

[U-Boot] [PATCH v2 11/17] pylibfdt: Sync up with upstream

2019-10-31 Thread Simon Glass
Sync up the libfdt Python bindings with upstream, commit: 430419c (tests: fix some python warnings) Signed-off-by: Simon Glass --- Changes in v2: None scripts/dtc/pylibfdt/libfdt.i_shipped | 45 --- 1 file changed, 33 insertions(+), 12 deletions(-) diff --git

Re: [U-Boot] [PATCH v5 00/26]MTD defconfigs/Kconfigs/Makefiles heavy cleanup

2019-10-31 Thread Miquel Raynal
Hi Tom, Tom Rini wrote on Wed, 30 Oct 2019 09:57:13 -0400: > On Thu, Oct 03, 2019 at 07:50:02PM +0200, Miquel Raynal wrote: > > > Hello, > > > > A year ago, while working on SPI-NAND support in U-Boot, I discovered > > when modifying Makefiles a confusing organization where: > > *

Re: [U-Boot] [PATCH 06/13] gpio: add support for new flags on gpio configuration

2019-10-31 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: mercredi 30 octobre 2019 02:49 > > Hi Patrick, > > On Wed, 23 Oct 2019 at 07:45, Patrick Delaunay > wrote: > > > > This commit manages the flags that can be used in GPIO specifiers to > > indicate if a pull-up resistor or pull-down resistor should be

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Stephen Warren
On 10/31/19 8:51 AM, Tom Rini wrote: For some time now, pytest has supported setting where a cache directory that it will use is located (and in turn has logic to re-use this cache and speed things up when possible). When running the pytest tests on Azure Pipelines, our source directory is

Re: [U-Boot] [PATCH] test/py: Set cache_dir to /tmp/.pytest_cache

2019-10-31 Thread Bin Meng
Hi Tom, On Thu, Oct 31, 2019 at 10:51 PM Tom Rini wrote: > > For some time now, pytest has supported setting where a cache directory > that it will use is located (and in turn has logic to re-use this cache > and speed things up when possible). When running the pytest tests on > Azure

[U-Boot] [PATCH v3 16/17] binman: Move to use Python 3

2019-10-31 Thread Simon Glass
Update this tool to use Python 3 to meet the 2020 deadline. This problem in pylibfdt is now fixed. Signed-off-by: Simon Glass --- Changes in v3: - Fix commit message to mention that the pylibfdt problem is fixed. Changes in v2: - Add a few more patches to correct remaining problems

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
Hi Wolfgang, On Thursday, October 31, 2019 3:40:27 AM PDT Wolfgang Denk wrote: > Dear Aaron, > > In message <1889679.7FQr5zsBR1@flash> you wrote: > > Currently we are using 39MB under arch/mips. I think I can easily cut this > > down to 15MB or smaller, especially by moving some code here to the

Re: [U-Boot] [EXT] Re: [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-10-31 Thread Tim Harvey
On Wed, Oct 30, 2019 at 5:04 PM Aaron Williams wrote: > > Hi Tim, > > I think I can answer some of your questions. > > On Wednesday, October 30, 2019 10:06:41 AM PDT Tim Harvey wrote: > > External Email > > > > -- > > > > On Tue,

Re: [U-Boot] [EXT] Re: [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-10-31 Thread Chandrakala Chavva
Tim, You have to get the remaining parts of firmware from Marvell support site, there are no plans of upstream any other software. Aaron will add MIPS support to the code that is in the mainline, this will take some time. Chandra From: Tim Harvey Sent:

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
On Thursday, October 31, 2019 3:36:10 AM PDT Wolfgang Denk wrote: > Dear Aaron, > > In message <1932577.QJWW3v3lL8@flash> you wrote: > > We do this relocation as well, however the way we do it is by changing a > > couple of TLB entries. This lets U-Boot begin execution from any memory > >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Aaron Williams
On Thursday, October 31, 2019 6:26:51 AM PDT Tom Rini wrote: > On Wed, Oct 30, 2019 at 11:36:19PM +, Aaron Williams wrote: > > On Wednesday, October 30, 2019 3:05:25 PM PDT Tom Rini wrote: > > > External Email > > > > > > --

Re: [U-Boot] [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-10-31 Thread Suneel Garapati
Hi Tim, Thanks for testing the series. On Wed, Oct 30, 2019 at 10:06 AM Tim Harvey wrote: > > On Tue, Oct 29, 2019 at 2:08 PM Suneel Garapati > wrote: > > > > This series will add support for OcteonTX and OcteonTX2 processsor based > > platforms. The Marvell/Cavium Octeon-TX 64-bit ARM based

Re: [U-Boot] [PATCH v3 16/17] binman: Move to use Python 3

2019-10-31 Thread Peter Robinson
On Thu, Oct 31, 2019 at 5:26 PM Simon Glass wrote: > > Update this tool to use Python 3 to meet the 2020 deadline. > > This problem in pylibfdt is now fixed. > > Signed-off-by: Simon Glass For what it's worth I tested this series with 2020-rc1 on Fedora 32 with python3 and it built all our

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

2019-10-31 Thread Anatolij Gustschin
Hi Tom, please pull this build issue fix. gitlab CI and Travis builds were okay. Travis-CI: https://travis-ci.org/vdsao/u-boot-video/builds/605380757 Thanks, Anatolij The following changes since commit 412326d1bc2d346d7b4faad6fa547eaf065681a2: Merge tag 'u-boot-clk-23Oct2019' of

[U-Boot] [PATCH v2 02/17] patman: Use unicode for file I/O

2019-10-31 Thread Simon Glass
At present patman test fail in some environments which don't use utf-8 as the default file encoding. Add this explicitly. Signed-off-by: Simon Glass --- Changes in v2: - Add new patch to explicitly use unicode for file I/O in patman tools/patman/func_test.py | 8

[U-Boot] [PATCH v2 01/17] patman: Adjust 'command' to return strings instead of bytes

2019-10-31 Thread Simon Glass
At present all the 'command' methods return bytes. Most of the time we actually want strings, so change this. We still need to keep the internal representation as bytes since otherwise unicode strings might break over a read() boundary (e.g. 4KB), causing errors. But we can convert the end result

[U-Boot] [PATCH v2 03/17] patman: Move to use Python 3

2019-10-31 Thread Simon Glass
Update this tool to use Python 3 to meet the 2020 deadline. Signed-off-by: Simon Glass --- Changes in v2: None tools/patman/patman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/patman/patman.py b/tools/patman/patman.py index 9605a36eff..fe82f24c67 100755 ---

Re: [U-Boot] [PATCH v2 16/17] binman: Move to use Python 3

2019-10-31 Thread Simon Glass
Hi Tom, On Thu, 31 Oct 2019 at 07:55, Tom Rini wrote: > > On Thu, Oct 31, 2019 at 07:43:05AM -0600, Simon Glass wrote: > > > Update this tool to use Python 3 to meet the 2020 deadline. > > > > Unfortunately this introduces a test failure due to a problem in pylibfdt > > on Python 3. I will

Re: [U-Boot] required host packages on Travis CI

2019-10-31 Thread AKASHI Takahiro
Tom, On Wed, Oct 30, 2019 at 07:17:29AM -0400, Tom Rini wrote: > On Wed, Oct 30, 2019 at 03:30:58PM +0900, AKASHI Takahiro wrote: > > > Hi Tom, > > > > In test/py/README.md, all the required host packages and their > > versions to be used on 14.04(Trusty) are listed. On the other hand, > >

Re: [U-Boot] [PATCH v2 1/5] ARM: MediaTek: Add support for MediaTek MT8518 SoC

2019-10-31 Thread Mingming Lee
On Wed, 2019-10-30 at 23:09 -0400, Tom Rini wrote: > On Mon, Oct 21, 2019 at 02:59:04PM +0800, mingming lee wrote: > > > Add support for MediaTek MT8518 SoC. This include the file > > that will initialize the SoC after boot and its device tree. > > > > Signed-off-by: mingming lee > > --- > >

Re: [U-Boot] [PATCH 7/8] riscv: Fix clear bss loop in the start-up code

2019-10-31 Thread Rick Chen
Hi Bin > > Hi Rick, > > On Thu, Oct 31, 2019 at 11:10 AM Rick Chen wrote: > > > > Hi Bin > > > > > > > > Hi Rick, > > > > > > On Fri, Oct 25, 2019 at 2:18 PM Andes wrote: > > > > > > > > From: Rick Chen > > > > > > > > For RV64, it will use sd instruction to clear t0 > > > > register, and the

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Rick Chen
Hi Anup > > On Thu, Oct 31, 2019 at 1:42 PM Anup Patel wrote: > > > > On Thu, Oct 31, 2019 at 6:30 AM Alan Kao wrote: > > > > > > Hi Bin, > > > > > > Thanks for the critics. Comments below. > > > On Wed, Oct 30, 2019 at 06:38:00PM +0800, Bin Meng wrote: > > > > Hi Rick, > > > > > > > > On Wed,

Re: [U-Boot] [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-10-31 Thread Tim Harvey
On Thu, Oct 31, 2019 at 12:47 PM Suneel Garapati wrote: > > Hi Tim, > > Thanks for testing the series. > > On Wed, Oct 30, 2019 at 10:06 AM Tim Harvey wrote: > > > > On Tue, Oct 29, 2019 at 2:08 PM Suneel Garapati > > wrote: > > > > > > This series will add support for OcteonTX and OcteonTX2

Re: [U-Boot] [RFC PATCH 00/29] arm: Introduce Marvell/Cavium OcteonTX

2019-10-31 Thread Suneel Garapati
Hi Tim, On Thu, Oct 31, 2019 at 3:14 PM Tim Harvey wrote: > > On Thu, Oct 31, 2019 at 12:47 PM Suneel Garapati > wrote: > > > > Hi Tim, > > > > Thanks for testing the series. > > > > On Wed, Oct 30, 2019 at 10:06 AM Tim Harvey wrote: > > > > > > On Tue, Oct 29, 2019 at 2:08 PM Suneel Garapati

Re: [U-Boot] [PATCH v2 4/9] mpc85xx, socrates: add DM support

2019-10-31 Thread Priyanka Jain
>-Original Message- >From: Heiko Schocher >Sent: Wednesday, October 30, 2019 6:12 PM >To: Priyanka Jain >Cc: U-Boot Mailing List >Subject: Re: [U-Boot] [PATCH v2 4/9] mpc85xx, socrates: add DM support > >Hello Priyanka Jain, > >Am 28.10.2019 um 06:49 schrieb Heiko Schocher: >> >> >>

[U-Boot] [PATCH v2] configs: spi: Add the SPI_FLASH_BAR for ESPI

2019-10-31 Thread Xiaowei Bao
Add the SPI_FLASH_BAR for the ESPI controller of FSL, this entry is missed by commit 6d825178364. Signed-off-by: Xiaowei Bao --- v2: - Modify the commit message. drivers/spi/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/spi/Kconfig b/drivers/spi/Kconfig index

[U-Boot] [PATCH 6/7] mmc: fsl_esdhc: always check write protect state

2019-10-31 Thread Yangbo Lu
The QorIQ eSDHC on all platforms supports checking write protect state through register bit. So check it always. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 15 --- include/fsl_esdhc.h | 1 - 2 files changed, 4 insertions(+), 12 deletions(-) diff --git

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

2019-10-31 Thread Marek Vasut
On 10/30/19 5:52 PM, Lukasz Majewski wrote: > Hi Marek, > > The following changes since commit > 7f0d5fa97074690dcbfcbc902f99c8dab0bff24d: > > dwc3-generic: Don't fail probe if clk/reset entries are absent > (2019-10-28 23:47:45 +0100) > > are available in the Git repository at: > >

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Anup Patel
On Thu, Oct 31, 2019 at 6:30 AM Alan Kao wrote: > > Hi Bin, > > Thanks for the critics. Comments below. > On Wed, Oct 30, 2019 at 06:38:00PM +0800, Bin Meng wrote: > > Hi Rick, > > > > On Wed, Oct 30, 2019 at 10:50 AM Rick Chen wrote: > > > > > > Hi Bin > > > > > > > > > > > Hi Rick, > > > > >

Re: [U-Boot] Pull request: u-boot-spi/master

2019-10-31 Thread Schrempf Frieder
Hi Jagan, On 28.10.19 01:46, Tom Rini wrote: > On Sun, Oct 27, 2019 at 05:20:22PM +0530, Jagan Teki wrote: >> Hi Tom, >> >> On Fri, Oct 25, 2019 at 11:19 PM Tom Rini wrote: >>> >>> On Fri, Oct 25, 2019 at 02:08:12PM +0530, Jagan Teki wrote: >>> Hi Tom, Please pull this PR.

Re: [U-Boot] Pull request: u-boot-spi/master

2019-10-31 Thread Schrempf Frieder
On 31.10.19 08:57, Jagan Teki wrote: > Hi Schrempf, > > On Thu, Oct 31, 2019 at 1:24 PM Schrempf Frieder > wrote: >> >> Hi Jagan, >> >> On 28.10.19 01:46, Tom Rini wrote: >>> On Sun, Oct 27, 2019 at 05:20:22PM +0530, Jagan Teki wrote: Hi Tom, On Fri, Oct 25, 2019 at 11:19 PM Tom

[U-Boot] [PATCH v5] arm: add initial support for the Phytium Durian Board

2019-10-31 Thread liu hao
This adds platform code and the device tree for the Phytium Durian Board. The initial support comprises the UART and the PCIE. Cc: Bin Meng Cc: Kever Yang Cc: Tom Rini Cc: Heinrich Schuchardt Signed-off-by: Steven Hao --- Changes for v5: - Remove the gmac support, including the gmac

Re: [U-Boot] Pull request: u-boot-spi/master

2019-10-31 Thread Jagan Teki
Hi Schrempf, On Thu, Oct 31, 2019 at 1:24 PM Schrempf Frieder wrote: > > Hi Jagan, > > On 28.10.19 01:46, Tom Rini wrote: > > On Sun, Oct 27, 2019 at 05:20:22PM +0530, Jagan Teki wrote: > >> Hi Tom, > >> > >> On Fri, Oct 25, 2019 at 11:19 PM Tom Rini wrote: > >>> > >>> On Fri, Oct 25, 2019 at

Re: [U-Boot] Pull request: u-boot-spi/master

2019-10-31 Thread Jagan Teki
On Thu, Oct 31, 2019 at 1:31 PM Schrempf Frieder wrote: > > On 31.10.19 08:57, Jagan Teki wrote: > > Hi Schrempf, > > > > On Thu, Oct 31, 2019 at 1:24 PM Schrempf Frieder > > wrote: > >> > >> Hi Jagan, > >> > >> On 28.10.19 01:46, Tom Rini wrote: > >>> On Sun, Oct 27, 2019 at 05:20:22PM +0530,

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Bin Meng
Hi Alan, On Thu, Oct 31, 2019 at 3:49 PM Alan Kao wrote: > > > On Thu, Oct 31, 2019 at 11:36:48AM +0800, Bin Meng wrote: > > Hi Alan, > > > > On Thu, Oct 31, 2019 at 9:00 AM Alan Kao wrote: > > > > > > Hi Bin, > > > > > > Thanks for the critics. Comments below. > > > On Wed, Oct 30, 2019 at

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Wolfgang Denk
Dear Aaron, In message <1932577.QJWW3v3lL8@flash> you wrote: > > We do this relocation as well, however the way we do it is by changing a > couple of TLB entries. This lets U-Boot begin execution from any memory > location, be it flash, L2 cache or RAM. It also lets us statically link >

Re: [U-Boot] [EXT] Re: Cavium/Marvell Octeon Support

2019-10-31 Thread Wolfgang Denk
Dear Aaron, In message <1889679.7FQr5zsBR1@flash> you wrote: > > Currently we are using 39MB under arch/mips. I think I can easily cut this > down to 15MB or smaller, especially by moving some code here to the > appropriate driver directories (i.e. DRAM, pcie, watchdog, etc.) > > It will

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Alan Kao
Hi Bin, Thanks for the critics. Comments below. On Wed, Oct 30, 2019 at 06:38:00PM +0800, Bin Meng wrote: > Hi Rick, > > On Wed, Oct 30, 2019 at 10:50 AM Rick Chen wrote: > > > > Hi Bin > > > > > > > > Hi Rick, > > > > > > On Fri, Oct 25, 2019 at 2:18 PM Andes wrote: > > > > > > > > From:

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Anup Patel
On Thu, Oct 31, 2019 at 1:42 PM Anup Patel wrote: > > On Thu, Oct 31, 2019 at 6:30 AM Alan Kao wrote: > > > > Hi Bin, > > > > Thanks for the critics. Comments below. > > On Wed, Oct 30, 2019 at 06:38:00PM +0800, Bin Meng wrote: > > > Hi Rick, > > > > > > On Wed, Oct 30, 2019 at 10:50 AM Rick

Re: [U-Boot] [PATCH 4/8] riscv: andes_plic: Fix some wrong configurations

2019-10-31 Thread Alan Kao
On Thu, Oct 31, 2019 at 11:36:48AM +0800, Bin Meng wrote: > Hi Alan, > > On Thu, Oct 31, 2019 at 9:00 AM Alan Kao wrote: > > > > Hi Bin, > > > > Thanks for the critics. Comments below. > > On Wed, Oct 30, 2019 at 06:38:00PM +0800, Bin Meng wrote: > > > Hi Rick, > > > > > > On Wed, Oct 30, 2019

[U-Boot] [PATCH 2/7] mmc: fsl_esdhc: fix voltage validation

2019-10-31 Thread Yangbo Lu
Voltage validation should be done by CMD8. Current comparison between mmc_cfg voltages and host voltage capabilities is meaningless. So drop current comparison and let voltage validation is through CMD8. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 36

[U-Boot] [PATCH 0/7] mmc: fsl_esdhc: clean up and shrink the driver

2019-10-31 Thread Yangbo Lu
This patch-set is to clean up and shrink the fsl_esdhc driver. Yangbo Lu (7): mmc: fsl_esdhc: drop controller initialization in fsl_esdhc_init() mmc: fsl_esdhc: fix voltage validation mmc: fsl_esdhc: clean up bus width configuration code mmc: fsl_esdhc: convert to use

[U-Boot] [PATCH 7/7] mmc: fsl_esdhc: clean up DM and non-DM code

2019-10-31 Thread Yangbo Lu
Make DM and non-DM code clear using below structure. #if !CONFIG_IS_ENABLED(DM_MMC) #else #endif Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 204 1 file changed, 100

[U-Boot] [PATCH 1/7] mmc: fsl_esdhc: drop controller initialization in fsl_esdhc_init()

2019-10-31 Thread Yangbo Lu
Controller initialization is not needed in fsl_esdhc_init(). It will be done in esdhc_init() for non-DM_MMC, and in esdhc_init_common() in probe for DM_MMC. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 36 1 file changed, 36 deletions(-) diff

[U-Boot] [PATCH 5/7] mmc: fsl_esdhc: drop redundant code for non-removable feature

2019-10-31 Thread Yangbo Lu
Drop redundant code for non-removable feature. "non-removable" property has been read in mmc_of_parse(). Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 18 -- 1 file changed, 4 insertions(+), 14 deletions(-) diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c

[U-Boot] [PATCH 3/7] mmc: fsl_esdhc: clean up bus width configuration code

2019-10-31 Thread Yangbo Lu
This patch is to clean up bus width setting code. - For DM_MMC, remove getting "bus-width" from device tree. This has been done in mmc_of_parse(). - For non-DM_MMC, move bus width configuration from fsl_esdhc_init() to fsl_esdhc_initialize() which is non-DM_MMC specific. And fix up bus

[U-Boot] [PATCH 4/7] mmc: fsl_esdhc: convert to use fsl_esdhc_get_cfg_common()

2019-10-31 Thread Yangbo Lu
The fsl_esdhc_init() was actually to get configuration of mmc_config. So rename it to fsl_esdhc_get_cfg_common() and make it common for both DM_MMC and non-DM_MMC. Signed-off-by: Yangbo Lu --- drivers/mmc/fsl_esdhc.c | 43 --- 1 file changed, 8

[U-Boot] [PATCH 2/2] freescale/powerpc: Rename the config CONFIG_SECURE_BOOT name.

2019-10-31 Thread Udit Agarwal
Renames the CONFIG_SECURE_BOOT name to CONFIG_NXP_ESBC to avoid conflicts with UEFI secure boot. Signed-off-by: Udit Agarwal --- arch/powerpc/cpu/mpc85xx/Kconfig | 4 ++-- arch/powerpc/cpu/mpc85xx/cpu_init.c| 8

[U-Boot] [PATCH 1/2] freescale/layerscape: Rename the config CONFIG_SECURE_BOOT name.

2019-10-31 Thread Udit Agarwal
Renames CONFIG_SECURE_BOOT to CONFIG_NXP_ESBC to avoid conflict with UEFI secure boot. Signed-off-by: Udit Agarwal --- arch/arm/cpu/armv7/ls102xa/Kconfig | 4 ++-- arch/arm/cpu/armv8/fsl-layerscape/Kconfig| 4 ++-- arch/arm/cpu/armv8/fsl-layerscape/spl.c

Re: [U-Boot] [RFC PATCH 4/5] ram: add SDRAM driver for i.MXRT SoCs

2019-10-31 Thread Giulio Benetti
Hi Stefano, Fabio and All, I have some question below: On 10/30/19 10:09 PM, Giulio Benetti wrote: Signed-off-by: Giulio Benetti --- drivers/ram/Kconfig | 8 + drivers/ram/Makefile | 2 + drivers/ram/imxrt_sdram.c| 406

Re: [U-Boot] [PATCH 03/13] dm: core: add ofnode function to iterate on node property

2019-10-31 Thread Patrick DELAUNAY
Hi Simon, > From: Simon Glass > Sent: mercredi 30 octobre 2019 02:48 > > On Wed, 23 Oct 2019 at 07:45, Patrick Delaunay > wrote: > > > > Add functions to iterate on all property with livetree > > - ofnode_get_first_property > > - ofnode_get_next_property > > - ofnode_get_property_by_prop > > >

Re: [U-Boot] [PATCH 7/8] riscv: Fix clear bss loop in the start-up code

2019-10-31 Thread Bin Meng
Hi Rick, On Thu, Oct 31, 2019 at 11:10 AM Rick Chen wrote: > > Hi Bin > > > > > Hi Rick, > > > > On Fri, Oct 25, 2019 at 2:18 PM Andes wrote: > > > > > > From: Rick Chen > > > > > > For RV64, it will use sd instruction to clear t0 > > > register, and the increament will be 8 bytes. So > > > if