test unit for aes128,
and the forth add a test unit for aes 196 and aes256.
Philippe Reynes (4):
aes: add a define for the size of a block
aes: add support of aes192 and aes256
aes: add test unit for aes128
aes: add test unit for aes196 and aes256
arch/arm/mach-tegra/tegra20/crypto.c
Hi Simon,
> Hi Philippe,
>
> On Thu, 31 Oct 2019 at 07:33, Philippe REYNES
> wrote:
>>
>> Hi Simonn
>>
>> > Hi Philippe,
>> >
>> > On Tue, 29 Oct 2019 at 11:29, Philippe Reynes
>> > wrote:
>> >>
This commit add to u-boot the support to decrypt
fit image encrypted with aes. The FIT image contains
the key name and the IV name. Then u-boot look for
the key and IV in his device tree and decrypt images
before moving to the next stage.
Signed-off-by: Philippe Reynes
---
common/image-cipher.c
.
Signed-off-by: Philippe Reynes
---
Kconfig | 8 ++
common/Makefile | 1 +
common/image-cipher.c | 63 +++
common/image-fit.c| 27 +
include/image.h | 63 +++
include/u-boot/aes.h | 31 ++
lib/aes/aes-encrypt.c | 136
test.
Signed-off-by: Philippe Reynes
---
include/test/suites.h | 4 +++-
test/bloblist.c | 3 ++-
test/cmd_ut.c | 12 ++--
test/compression.c| 3 ++-
test/env/cmd_ut_env.c | 3 ++-
test/lib/cmd_ut_lib.c | 2 +-
test/
The command cp 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/mem.c | 16 +---
1 file changed, 13 insertions(+), 3 deletions(-)
diff --git a/cmd/mem.c b/cmd
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
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
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
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 in this
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
---
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
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 for
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
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 the
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
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
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
---
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
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
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(-)
d
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
.
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
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
--- a
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
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
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
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
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
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
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
---
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
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
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
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
.
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
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 of
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
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
.
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
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
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
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 b
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 Reyn
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
"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 opti
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
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
hang
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/
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
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
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
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
rn, do 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
Review
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
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
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 a
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
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
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
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
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
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
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
rn, do 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
Review
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 a
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
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
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 on
rn, do 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
Review
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
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
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
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
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
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
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
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
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
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 Mhz), we
>
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: Philippe Rey
on this board, 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/broadc
on this board, 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
-
on this board, 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
-
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
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 a
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
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 a
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
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
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
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
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
--- a
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
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
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
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
--- a
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
--- a
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
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
301 - 400 of 583 matches
Mail list logo