[U-Boot] [PATCH] iminfo: add missing map_sysmem

2019-12-02 Thread Philippe Reynes
The command iminfo fails on sandbox because the address is used directly. To fix this issue, we call the function map_sysmem to translate the address. Signed-off-by: Philippe Reynes --- cmd/bootm.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cmd/bootm.c b

[U-Boot] [PATCH V3 5/5] aes: add test unit for aes196 and aes256

2019-11-15 Thread Philippe Reynes
This commit add test unit for aes196 and aes256. Signed-off-by: Philippe Reynes --- test/lib/test_aes.c | 4 1 file changed, 4 insertions(+) Changelog: v3: - new patch in this serie (in the previous version, the test to aes was added to pytest, now, we add test unit for aes as proposed

[U-Boot] [PATCH V3 2/5] aes: add support of aes192 and aes256

2019-11-15 Thread Philippe Reynes
Until now, we only support aes128. This commit add the support of aes192 and aes256. Signed-off-by: Philippe Reynes --- cmd/aes.c | 38 +- include/uboot_aes.h | 34 +++ lib/aes.c | 77

[U-Boot] [PATCH V3 4/5] aes: add test unit for aes128

2019-11-15 Thread Philippe Reynes
This commit add test unit for aes128. Signed-off-by: Philippe Reynes --- test/lib/Makefile | 1 + test/lib/test_aes.c | 162 2 files changed, 163 insertions(+) create mode 100644 test/lib/test_aes.c Changelog: v3: - new patch

[U-Boot] [PATCH V3 1/5] aes: add a define for the size of a block

2019-11-15 Thread Philippe Reynes
In the code, we use the size of the key for the size of the block. It's true when the key is 128 bits, but it become false for key of 192 bits and 256 bits. So to prepare the support of aes192 and 256, we introduce a constant for the iaes block size. Signed-off-by: Philippe Reynes --- cmd

[U-Boot] [PATCH V3 3/5] tegra20: crypto: update code to use new aes api

2019-11-15 Thread Philippe Reynes
This commit update tge driver crypto for tegra20 to use the new aes api. Signed-off-by: Philippe Reynes --- arch/arm/mach-tegra/tegra20/crypto.c | 41 +++- 1 file changed, 22 insertions(+), 19 deletions(-) Changelog: v3: - no change v2: - add a really simple

[U-Boot] [PATCH V3 0/5] aes: add support for aes192 and aes256

2019-11-15 Thread Philippe Reynes
add a test unit for aes128, and the sixth add a test unit for aes 196 and aes256. Philippe Reynes (5): aes: add a define for the size of a block aes: add support of aes192 and aes256 tegra20: crypto: update code to use new aes api aes: add test unit for aes128 aes: add test unit

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

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

2019-10-29 Thread Philippe Reynes
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 file changed, 91 insertions(+), 27 deletions(-) Changelog: v2: - add a really simple commit text - re-write

[U-Boot] [PATCH V2 3/4] tegra20: crypto: update code to use new aes api

2019-10-29 Thread Philippe Reynes
This commit update tge driver crypto for tegra20 to use the new aes api. Signed-off-by: Philippe Reynes --- arch/arm/mach-tegra/tegra20/crypto.c | 41 +++- 1 file changed, 22 insertions(+), 19 deletions(-) Changelog: v2: - add a really simple commit text diff

[U-Boot] [PATCH V2 2/4] aes: add support of aes192 and aes256

2019-10-29 Thread Philippe Reynes
Until now, we only support aes128. This commit add the support of aes192 and aes256. Signed-off-by: Philippe Reynes --- cmd/aes.c | 38 +- include/uboot_aes.h | 34 +++ lib/aes.c | 77

[U-Boot] [PATCH V2 1/4] aes: add a define for the size of a block

2019-10-29 Thread Philippe Reynes
In the code, we use the size of the key for the size of the block. It's true when the key is 128 bits, but it become false for key of 192 bits and 256 bits. So to prepare the support of aes192 and 256, we introduce a constant for the iaes block size. Signed-off-by: Philippe Reynes --- cmd

[U-Boot] [PATCH V2 0/4] aes: add support for aes192 and aes256

2019-10-29 Thread Philippe Reynes
, and the forth one add tests in pytest for aes192 and aes256. Philippe Reynes (4): aes: add a define for the size of a block aes: add support of aes192 and aes256 tegra20: crypto: update code to use new aes api pytest: aes: add test for aes192 and aes256 arch/arm/mach-tegra/tegra20/crypto.c | 41

[U-Boot] [PATCH V4] pytest: add a new test for aes

2019-10-28 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/test_aes.py | 101 ++ 1 file changed, 101 insertions(+) create mode

[U-Boot] [PATCH] ubi: env: fix redundand management

2019-10-14 Thread Philippe Reynes
that is true when ENV_UBI_VOLUME_REDUND is not "". Then, I check this flag in the code, instead of the string ENV_UBI_VOLUME_REDUND. Signed-off-by: Philippe Reynes --- env/Kconfig| 6 ++ include/env_internal.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff -

[U-Boot] [PATCH V3 2/4] sandbox64: enable command aes

2019-09-24 Thread Philippe Reynes
This commit add the support of command aes. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index 7aa2d38..1fea683 100644 --- a/configs

[U-Boot] [PATCH V3 0/4] pytest: add a simple test to check the command aes

2019-09-24 Thread Philippe Reynes
. Philippe Reynes (4): sandbox: enable command aes sandbox64: enable command aes cmd: aes: use map_sysmem when accessing memory pytest: add a new test for aes Changelog: v3: - add unmap_sysmem (thanks Simon) v2: - add binary file (key128.bin, iv128.bin and plaintext.bin) cmd/aes.c

[U-Boot] [PATCH V3 3/4] cmd: aes: use map_sysmem when accessing memory

2019-09-24 Thread Philippe Reynes
The aes command used to segfault when accessing memory in sandbox. The pointer accesses should be mapped. Signed-off-by: Philippe Reynes --- cmd/aes.c | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/cmd/aes.c b/cmd/aes.c index 7ff4a71..8c61cee 100644

[U-Boot] [PATCH V3 4/4] pytest: add a new test for aes

2019-09-24 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/aes/iv128.bin | 1 + test/py/tests/aes/key128.bin| 1 + test/py/tests/aes/plaintext.bin | 1 + test/py

[U-Boot] [PATCH V3 1/4] sandbox: enable command aes

2019-09-24 Thread Philippe Reynes
This commit enable the command aes on sandbox. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index f77b9e8..4b9cce5 100644 --- a/configs

[U-Boot] [PATCH 2/4] aes: add support of aes192 and aes256

2019-09-23 Thread Philippe Reynes
Until now, we only support aes128. This commit add the support of aes192 and aes256. Signed-off-by: Philippe Reynes --- cmd/aes.c | 38 +- include/uboot_aes.h | 34 +++ lib/aes.c | 77

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

2019-09-23 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- test/py/tests/aes/key192.bin | 1 + test/py/tests/aes/key256.bin | 1 + test/py/tests/test_aes.py| 54 +++- 3 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 test/py/tests/aes/key192.bin create

[U-Boot] [PATCH 3/4] tegra20: crypto: update code to use new aes api

2019-09-23 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- arch/arm/mach-tegra/tegra20/crypto.c | 41 +++- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/arch/arm/mach-tegra/tegra20/crypto.c b/arch/arm/mach-tegra/tegra20/crypto.c index 66fbc3b..b91191e 100644 --- a/arch

[U-Boot] [PATCH 0/4] aes: add support for aes192 and aes256

2019-09-23 Thread Philippe Reynes
, and the forth one add tests in pytest for aes192 and aes256. Philippe Reynes (4): aes: add a define for the size of a block aes: add support of aes192 and aes256 tegra20: crypto: update code to use new aes api pytest: aes: add test for aes192 and aes256 arch/arm/mach-tegra/tegra20/crypto.c | 41

[U-Boot] [PATCH 1/4] aes: add a define for the size of a block

2019-09-23 Thread Philippe Reynes
In the code, we use the size of the key for the size of the block. It's true when the key is 128 bits, but it become false for key of 192 bits and 256 bits. So to prepare the support of aes192 and 256, we introduce a constant for the iaes block size. Signed-off-by: Philippe Reynes --- cmd

[U-Boot] [PATCH V2 2/4] sandbox64: enable command aes

2019-09-23 Thread Philippe Reynes
This commit add the support of command aes. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index c177ff8..9332e34 100644 --- a/configs

[U-Boot] [PATCH V2 4/4] pytest: add a new test for aes

2019-09-23 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/aes/iv128.bin | 1 + test/py/tests/aes/key128.bin| 1 + test/py/tests/aes/plaintext.bin | 1 + test/py

[U-Boot] [PATCH V2 3/4] cmd: aes: use map_sysmem when accessing memory

2019-09-23 Thread Philippe Reynes
The aes command used to segfault when accessing memory in sandbox. The pointer accesses should be mapped. Signed-off-by: Philippe Reynes --- cmd/aes.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/aes.c b/cmd/aes.c index 7ff4a71..3db110c 100644 --- a/cmd/aes.c

[U-Boot] [PATCH V2 1/4] sandbox: enable command aes

2019-09-23 Thread Philippe Reynes
This commit enable the command aes on sandbox. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 968ffda..d5872dd 100644 --- a/configs

[U-Boot] [PATCH V2 0/4] pytest: add a simple test to check the command aes

2019-09-23 Thread Philippe Reynes
. Philippe Reynes (4): sandbox: enable command aes sandbox64: enable command aes cmd: aes: use map_sysmem when accessing memory pytest: add a new test for aes Changelog: v2: - add binary file (key128.bin, iv128.bin and plaintext.bin) cmd/aes.c | 9 configs

[U-Boot] [PATCH V2] spl: add a generic function board_init_f

2019-09-19 Thread Philippe Reynes
This commit add a generic function board_init_f that only initialize some device (for example serial). It avoid to define a board function only to launch the serial configuration. Signed-off-by: Philippe Reynes --- Changelog: v2: - fix the commit message (use board_init_f instead

[U-Boot] [PATCH 4/4] pytest: add a new test for aes

2019-09-19 Thread Philippe Reynes
This commit add a simple test to check that a text may be ciphered and unciphered. Each step are checked with the known result. Signed-off-by: Philippe Reynes --- test/py/tests/test_aes.py | 48 +++ 1 file changed, 48 insertions(+) create mode 100644

[U-Boot] [PATCH 3/4] cmd: aes: use map_sysmem when accessing memory

2019-09-19 Thread Philippe Reynes
The aes command used to segfault when accessing memory in sandbox. The pointer accesses should be mapped. Signed-off-by: Philippe Reynes --- cmd/aes.c | 9 + 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/cmd/aes.c b/cmd/aes.c index 7ff4a71..3db110c 100644 --- a/cmd/aes.c

[U-Boot] [PATCH 0/4] pytest: add a simple test to check the command aes

2019-09-19 Thread Philippe Reynes
. Philippe Reynes (4): sandbox: enable command aes sandbox64: enable command aes cmd: aes: use map_sysmem when accessing memory pytest: add a new test for aes cmd/aes.c | 9 + configs/sandbox64_defconfig | 1 + configs/sandbox_defconfig | 1 + test/py/tests

[U-Boot] [PATCH 2/4] sandbox64: enable command aes

2019-09-19 Thread Philippe Reynes
This commit add the support of command aes. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox64_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox64_defconfig b/configs/sandbox64_defconfig index c177ff8..9332e34 100644 --- a/configs

[U-Boot] [PATCH 1/4] sandbox: enable command aes

2019-09-19 Thread Philippe Reynes
This commit enable the command aes on sandbox. Then, it may be used on pytest. Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 968ffda..d5872dd 100644 --- a/configs

[U-Boot] [PATCH 2/2] rsa: Return immediately if required-key verification fails

2019-09-18 Thread Philippe Reynes
From: Daniele Alessandrelli Currently, if image verification with a required key fails, rsa_verify() code tries to find another key to verify the FIT image. This however, is not the intended behavior as the documentation says that required keys "must be verified for the image / configuration to

[U-Boot] [PATCH 0/2] rsa signature: check that required key is really mandatory

2019-09-18 Thread Philippe Reynes
don't allow FIT with another key than the required key. This test fails and show the issue. The second commit fix this issue with required key, so the test with required key succeed. Daniele Alessandrelli (1): rsa: Return immediately if required-key verification fails Philippe Reynes (1

[U-Boot] [PATCH 1/2] pytest: vboot: add a test for required key

2019-09-18 Thread Philippe Reynes
This commit add a test in the vboot test to check that when a required key is asked, only FIT signed with this key is used/accepted by u-boot. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py| 57 ++ .../tests/vboot/sign-configs-sha256

Re: [U-Boot] [RFC][PATCH] bootcount: add support to customize bootcount variable name

2019-09-09 Thread Philippe REYNES
t;boootcount" name? As it is "unique", I can't chain severals bootcount. That's why I propose an option to customize the bootcount name variable. I know that it's a "corner case" and that you could prefer to avoid adding another option, that's why I've

[U-Boot] [RFC][PATCH] bootcount: add support to customize bootcount variable name

2019-09-09 Thread Philippe Reynes
This commit add an option to customize the bootcount variable name in the u-boot environment. To stay compatible with old config, the default name is bootcount. Signed-off-by: Philippe Reynes --- drivers/bootcount/Kconfig | 8 drivers/bootcount/bootcount_env.c | 4 ++-- 2 files

[U-Boot] [PATCH] spl: add a generic function board_init_r

2019-09-05 Thread Philippe Reynes
This commit add a generic function board_init_r that only initialize some device (for example serial). It avoid to define a board function only to launch the serial configuration. Signed-off-by: Philippe Reynes --- common/spl/Kconfig | 8 common/spl/spl.c | 19 +++ 2

Re: [U-Boot] [PATCH] drivers: nand: brcmnand: fix nand_chip ecc layout structure

2019-09-05 Thread Philippe REYNES
m Zhang Good catch, I've missed it when I have ported this driver to u-boot. Reviewed-by: Philippe Reynes > --- > drivers/mtd/nand/raw/brcmnand/brcmnand.c | 260 +-- > 1 file changed, 104 insertions(+), 156 deletions(-) > > diff --git a/drivers/mtd/nand/raw/brcmn

[U-Boot] [PATCH V3 05/10] dt: bcm63158: Add hsspi controller

2019-08-14 Thread Philippe Reynes
From: Kursad Oney This change adds the hsspi controller to the 63158 dtsi. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 25 + 1 file changed, 25 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/arch

[U-Boot] [PATCH V3 08/10] dt: bcm6858: add hsspi controller

2019-08-14 Thread Philippe Reynes
This commit add a hsspi controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm6858.dtsi | 25 + 1 file changed, 25 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/arch/arm/dts/bcm6858

[U-Boot] [PATCH V3 03/10] spi: bcm63xx_hsspi: switch to raw I/O functions.

2019-08-14 Thread Philippe Reynes
From: Kursad Oney Make the driver compatible with both big and little endian SOCs. Replace big-endian calls with their raw equivalents, expect for writing the command to FIFO. That still has to be in big-endian format. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi

[U-Boot] [PATCH V3 06/10] dt: bcm963158: add a spi-nor device

2019-08-14 Thread Philippe Reynes
From: Kursad Oney This change adds a spi nor flash device to the bcm963158 board. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 12 1 file changed, 12 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/arch/arm/dts

[U-Boot] [PATCH V3 04/10] spi: bcm63xx_hsspi: Continue init when using no reset and fixed-clock.

2019-08-14 Thread Philippe Reynes
o not bail but continue initialization. Similarly the block might already have been out of reset, say, when we are booting from a SPI device. So if the reset signal is not configured in the device tree, do not bail out and instead skip deasserting the reset. Signed-off-by: Kursad Oney Reviewed-by

[U-Boot] [PATCH V3 07/10] configs: Add hsspi/spi support to bcm963158.

2019-08-14 Thread Philippe Reynes
From: Kursad Oney This commit enable the support of the spi-nor for the broadcom reference board bcm963158. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 7 +++ 1 file changed, 7 insertions(+) Changelog: v3: - no change v2: - no change

[U-Boot] [PATCH V3 09/10] dt: bcm968580xref: add a spi-nor device

2019-08-14 Thread Philippe Reynes
This commit add a spi-nor device in the bcm96850xref device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm968580xref.dts | 12 1 file changed, 12 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/arch/arm/dts

[U-Boot] [PATCH V3 10/10] bcm968580xref: enable spi-nor support

2019-08-14 Thread Philippe Reynes
This commit enable the support of the spi-nor for the broadcom reference board bcm968580xref. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- configs/bcm968580xref_ram_defconfig | 9 + 1 file changed, 9 insertions(+) Changelog: v3: - no change v2: - no change diff --git

[U-Boot] [PATCH V3 02/10] waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.

2019-08-14 Thread Philippe Reynes
From: Kursad Oney wait_for_bit_le32 and wait_for_bit_le16 use the raw I/O functions which would default to big-endian on BE systems. Create the generic equivalents to use the native endianness. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- include/wait_bit.h | 2 ++ 1 file

[U-Boot] [PATCH V3 01/10] spi: hsspi: allow to be used on bcm6858 and bcm63158

2019-08-14 Thread Philippe Reynes
From: Kursad Oney This IP exists in both MIPS and ARM cores, so we also allow to use this driver on bcm6858 and bcm63158. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changelog: v3: - no change v2

[U-Boot] [PATCH V2 09/10] dt: bcm968580xref: add a spi-nor device

2019-08-13 Thread Philippe Reynes
This commit add a spi-nor device in the bcm96850xref device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm968580xref.dts | 12 1 file changed, 12 insertions(+) Changelog: v2: - no change diff --git a/arch/arm/dts/bcm968580xref.dts b/arch/arm

[U-Boot] [PATCH V2 05/10] dt: bcm63158: Add hsspi controller

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This change adds the hsspi controller to the 63158 dtsi. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 25 + 1 file changed, 25 insertions(+) Changelog: v2: - no change diff --git a/arch/arm/dts/bcm63158

[U-Boot] [PATCH V2 08/10] dt: bcm6858: add hsspi controller

2019-08-13 Thread Philippe Reynes
This commit add a hsspi controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm6858.dtsi | 25 + 1 file changed, 25 insertions(+) Changelog: v2: - no change diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm

[U-Boot] [PATCH V2 02/10] waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney wait_for_bit_le32 and wait_for_bit_le16 use the raw I/O functions which would default to big-endian on BE systems. Create the generic equivalents to use the native endianness. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- include/wait_bit.h | 4 1 file

[U-Boot] [PATCH V2 10/10] bcm968580xref: enable spi-nor support

2019-08-13 Thread Philippe Reynes
This commit enable the support of the spi-nor for the broadcom reference board bcm968580xref. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- configs/bcm968580xref_ram_defconfig | 9 + 1 file changed, 9 insertions(+) Changelog: v2: - no change diff --git a/configs

[U-Boot] [PATCH V2 04/10] spi: bcm63xx_hsspi: Continue init when using no reset and fixed-clock.

2019-08-13 Thread Philippe Reynes
o not bail but continue initialization. Similarly the block might already have been out of reset, say, when we are booting from a SPI device. So if the reset signal is not configured in the device tree, do not bail out and instead skip deasserting the reset. Signed-off-by: Kursad Oney Reviewed-by

[U-Boot] [PATCH V2 07/10] configs: Add hsspi/spi support to bcm963158.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This commit enable the support of the spi-nor for the broadcom reference board bcm963158. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 7 +++ 1 file changed, 7 insertions(+) Changelog: v2: - no change diff --git

[U-Boot] [PATCH V2 03/10] spi: bcm63xx_hsspi: switch to raw I/O functions.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney Make the driver compatible with both big and little endian SOCs. Replace big-endian calls with their raw equivalents, expect for writing the command to FIFO. That still has to be in big-endian format. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi

[U-Boot] [PATCH V2 01/10] spi: hsspi: allow to be used on bcm6858 and bcm63158

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This IP exists in both MIPS and ARM cores, so we also allow to use this driver on bcm6858 and bcm63158. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changelog: v2: - add dependancy

[U-Boot] [PATCH V2 06/10] dt: bcm963158: add a spi-nor device

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This change adds a spi nor flash device to the bcm963158 board. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 12 1 file changed, 12 insertions(+) Changelog: v2: - no change diff --git a/arch/arm/dts/bcm963158.dts b

[U-Boot] [PATCH 04/10] spi: bcm63xx_hsspi: Continue init when using no reset and fixed-clock.

2019-08-13 Thread Philippe Reynes
o not bail but continue initialization. Similarly the block might already have been out of reset, say, when we are booting from a SPI device. So if the reset signal is not configured in the device tree, do not bail out and instead skip deasserting the reset. Signed-off-by: Kursad Oney Reviewed-by

[U-Boot] [PATCH 10/10] bcm968580xref: enable spi-nor support

2019-08-13 Thread Philippe Reynes
This commit enable the support of the spi-nor for the broadcom reference board bcm968580xref. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- configs/bcm968580xref_ram_defconfig | 9 + 1 file changed, 9 insertions(+) diff --git a/configs/bcm968580xref_ram_defconfig b

[U-Boot] [PATCH 05/10] dt: bcm63158: Add hsspi controller

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This change adds the hsspi controller to the 63158 dtsi. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158

[U-Boot] [PATCH 08/10] dt: bcm6858: add hsspi controller

2019-08-13 Thread Philippe Reynes
This commit add a hsspi controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm6858.dtsi | 25 + 1 file changed, 25 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index

[U-Boot] [PATCH 09/10] dt: bcm968580xref: add a spi-nor device

2019-08-13 Thread Philippe Reynes
This commit add a spi-nor device in the bcm96850xref device tree. Signed-off-by: Philippe Reynes Reviewed-by: Kursad Oney --- arch/arm/dts/bcm968580xref.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/bcm968580xref.dts b/arch/arm/dts/bcm968580xref.dts index

[U-Boot] [PATCH 07/10] configs: Add hsspi/spi support to bcm963158.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This commit enable the support of the spi-nor for the broadcom reference board bcm963158. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b

[U-Boot] [PATCH 03/10] waitbit: Add the generic wait_for_bit macros for 16 and 32 bits.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney wait_for_bit_le32 and wait_for_bit_le16 use the raw I/O functions which would default to big-endian on BE systems. Create the generic equivalents to use the native endianness. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- include/wait_bit.h | 4 1 file

[U-Boot] [PATCH 01/10] spi: Remove MIPS dependency from Broadcom HSSPI driver.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This IP exists in both MIPS and ARM cores, so there is no need to tie it up to MIPS only. Remove the dependency. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi/Kconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/spi/Kconfig b/drivers

[U-Boot] [PATCH 06/10] dt: bcm963158: add a spi-nor device

2019-08-13 Thread Philippe Reynes
From: Kursad Oney This change adds a spi nor flash device to the bcm963158 board. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts

[U-Boot] [PATCH 02/10] spi: bcm63xx_hsspi: switch to raw I/O functions.

2019-08-13 Thread Philippe Reynes
From: Kursad Oney Make the driver compatible with both big and little endian SOCs. Replace big-endian calls with their raw equivalents, expect for writing the command to FIFO. That still has to be in big-endian format. Signed-off-by: Kursad Oney Reviewed-by: Philippe Reynes --- drivers/spi

Re: [U-Boot] [PATCH 3/3] dt: bcm63158: watchdog should use a 50Mhz clock

2019-05-06 Thread Philippe REYNES
Hi Stefan, > Hi Philippe, > > On 06.05.19 14:38, Philippe REYNES wrote: >> Hi Stefan, >> >>> On 03.05.19 19:43, Philippe Reynes wrote: >>>> The watchdog should use a clock at 50 Mhz, so >>>> instead of using the clock osc (200 M

Re: [U-Boot] [PATCH 3/3] dt: bcm63158: watchdog should use a 50Mhz clock

2019-05-06 Thread Philippe REYNES
Hi Stefan, > On 03.05.19 19:43, Philippe Reynes wrote: >> The watchdog should use a clock at 50 Mhz, so >> instead of using the clock osc (200 Mhz), we >> define a reference clock at 50Mhz and use it >> for both watchdog. >> >> Signed-off-by:

[U-Boot] [PATCH 2/3] bcm963158: remove CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT

2019-05-03 Thread Philippe Reynes
ard, so we simply remove it. Signed-off-by: Philippe Reynes --- include/configs/broadcom_bcm963158.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/broadcom_bcm963158.h b/include/configs/broadcom_bcm963158.h index 2de6f21..a0f7ead 100644 --- a/include/configs/broadcom_bcm9631

[U-Boot] [PATCH 1/3] bcm968580xref: remove CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT

2019-05-03 Thread Philippe Reynes
ard, so we simply remove it. Signed-off-by: Philippe Reynes --- include/configs/broadcom_bcm968580xref.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/broadcom_bcm968580xref.h b/include/configs/broadcom_bcm968580xref.h index 52b4f55..fdb6203 100644 --- a/inclu

[U-Boot] [PATCH 3/3] bcm968380gerg: remove CONFIG_SYS_NAND_DRIVER_ECC_LAYOUT

2019-05-03 Thread Philippe Reynes
ard, so we simply remove it. Signed-off-by: Philippe Reynes --- include/configs/broadcom_bcm968380gerg.h | 1 - 1 file changed, 1 deletion(-) diff --git a/include/configs/broadcom_bcm968380gerg.h b/include/configs/broadcom_bcm968380gerg.h index 355f3ef..aa6ce67 100644 --- a/inclu

[U-Boot] [PATCH 1/3] watchdog: bcm6345: callback start use tick instead of ms

2019-05-03 Thread Philippe Reynes
The function bcm6345_wdt_start use the argument timeout as tick but it should be used as milliseconds. A clock is added as requirement for this driver. The frequency of the clock is then used to convert the millisecond to ticks in the function bcm6345_wdt_start. Signed-off-by: Philippe Reynes

[U-Boot] [PATCH 2/3] dt: bcm6858: watchdog should use a 50Mhz clock

2019-05-03 Thread Philippe Reynes
The watchdog should use a clock at 50 Mhz, so instead of using the clock osc (200 Mhz), we define a reference clock at 50Mhz and use it for both watchdog. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH 0/3] fix bcm6345 watchdog on broadcom board

2019-05-03 Thread Philippe Reynes
63158 (arm) Philippe Reynes (3): watchdog: bcm6345: callback start use tick instead of ms dt: bcm6858: watchdog should use a 50Mhz clock dt: bcm63158: watchdog should use a 50Mhz clock arch/arm/dts/bcm63158.dtsi | 10 -- arch/arm/dts/bcm6858.dtsi | 10 -- driver

[U-Boot] [PATCH 3/3] dt: bcm63158: watchdog should use a 50Mhz clock

2019-05-03 Thread Philippe Reynes
The watchdog should use a clock at 50 Mhz, so instead of using the clock osc (200 Mhz), we define a reference clock at 50Mhz and use it for both watchdog. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 10 -- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git

[U-Boot] [PATCH V2 5/8] led: bcm6858: allow to use this driver on ARCH_963158

2019-03-22 Thread Philippe Reynes
Allow the led bcm6858 driver to be used on bcm63158. They have the same led controller. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change drivers/led/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig index 4c8582d

[U-Boot] [PATCH V2 3/8] dt: bcm968580xref: enable led controller

2019-03-22 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm968580xref. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change arch/arm/dts/bcm968580xref.dts | 48 ++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/bcm968580xref.dts b

[U-Boot] [PATCH V2 8/8] bcm963158: enable led support

2019-03-22 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm963158. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change configs/bcm963158_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index

[U-Boot] [PATCH V2 7/8] dt: bcm963158: enable led controller

2019-03-22 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm963158. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change arch/arm/dts/bcm963158.dts | 49 ++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch

[U-Boot] [PATCH V2 6/8] dt: bcm63158: add led controller

2019-03-22 Thread Philippe Reynes
Add the led controller in the bcm63158 device tree. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change arch/arm/dts/bcm63158.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 6a3fbc9..0967a3d 100644

[U-Boot] [PATCH V2 4/8] bcm968580xref: enable led support

2019-03-22 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm968580xref. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change configs/bcm968580xref_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm968580xref_ram_defconfig b/configs

[U-Boot] [PATCH V2 1/8] led: add initial support for bcm6858

2019-03-22 Thread Philippe Reynes
The driver add the support of the led IP on bcm6858. This led IP can drive up to 32 leds, and can handle blinking. Signed-off-by: Philippe Reynes --- Changelog: v2: - use const for array bcm6858_flash_rate (thanks Daniel) - use int for array bcm6858_flash_rate (thanks Daniel) doc/device-tree

[U-Boot] [PATCH V2 2/8] dt: bcm6858: add led controller

2019-03-22 Thread Philippe Reynes
Add the led controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- Changelog: v2: - no change arch/arm/dts/bcm6858.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index 23b80c6..0359417 100644 --- a/arch

[U-Boot] [PATCH 8/8] bcm963158: enable led support

2019-03-21 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm963158. Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index fc55e98..c93a8f6 100644

[U-Boot] [PATCH 5/8] led: bcm6858: allow to use this driver on ARCH_963158

2019-03-21 Thread Philippe Reynes
Allow the led bcm6858 driver to be used on bcm63158. They have the same led controller. Signed-off-by: Philippe Reynes --- drivers/led/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/led/Kconfig b/drivers/led/Kconfig index 4c8582d..5643939 100644

[U-Boot] [PATCH 3/8] dt: bcm968580xref: enable led controller

2019-03-21 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm968580xref. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm968580xref.dts | 48 ++ 1 file changed, 48 insertions(+) diff --git a/arch/arm/dts/bcm968580xref.dts b/arch/arm/dts

[U-Boot] [PATCH 6/8] dt: bcm63158: add led controller

2019-03-21 Thread Philippe Reynes
Add the led controller in the bcm63158 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 6a3fbc9..0967a3d 100644 --- a/arch/arm/dts/bcm63158.dtsi

[U-Boot] [PATCH 4/8] bcm968580xref: enable led support

2019-03-21 Thread Philippe Reynes
Enable the led support in the configuration of the board bcm968580xref. Signed-off-by: Philippe Reynes --- configs/bcm968580xref_ram_defconfig | 3 +++ 1 file changed, 3 insertions(+) diff --git a/configs/bcm968580xref_ram_defconfig b/configs/bcm968580xref_ram_defconfig index e8cb3a0..887ccb8

[U-Boot] [PATCH 7/8] dt: bcm963158: enable led controller

2019-03-21 Thread Philippe Reynes
Enable the led controller in the device tree of the board bcm963158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 49 ++ 1 file changed, 49 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts index

[U-Boot] [PATCH 1/8] led: add initial support for bcm6858

2019-03-21 Thread Philippe Reynes
The driver add the support of the led IP on bcm6858. This led IP can drive up to 32 leds, and can handle blinking. Signed-off-by: Philippe Reynes --- doc/device-tree-bindings/leds/leds-bcm6858.txt | 51 + drivers/led/Kconfig| 7 + drivers/led/Makefile

[U-Boot] [PATCH 2/8] dt: bcm6858: add led controller

2019-03-21 Thread Philippe Reynes
Add the led controller in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 7 +++ 1 file changed, 7 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index 23b80c6..0359417 100644 --- a/arch/arm/dts/bcm6858.dtsi +++ b

[U-Boot] [PATCH] rsa: check that pointer checksum isn't NULL before using it

2019-03-19 Thread Philippe Reynes
The pointer checksum were used before checking that it isn't NULL. We move the code that use it after the check. Reported-by: Coverity (CID: 185835) Signed-off-by: Philippe Reynes --- lib/rsa/rsa-verify.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/rsa/rsa-verify.c

[U-Boot] [PATCH 02/18] mtd: nand: import nand_hw_control_init()

2019-03-15 Thread Philippe Reynes
From: Marc Gonzalez Linux commit d45bc58dd3b ("mtd: nand: import nand_hw_control_init()") The code to initialize a struct nand_hw_control is duplicated across several drivers. Factorize it using an inline function. Signed-off-by: Marc Gonzalez Signed-off-by: Boris Brezillon [Phili

<    1   2   3   4   5   6   >