[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

[U-Boot] [PATCH 03/18] mtd: nand: provide several helpers to do common NAND operations

2019-03-15 Thread Philippe Reynes
nflicts] Signed-off-by: Miquel Raynal Acked-by: Masahiro Yamada [Philippe Reynes: adapt code to u-boot and only keep new function] Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/nand_base.c | 1013 -- include/linux/mtd/rawnand.h | 30 ++ 2 files chan

[U-Boot] [PATCH 15/18] bcm968580xref: add nand support

2019-03-15 Thread Philippe Reynes
Enable the nand support (driver and command) in the configuration of the board bcm968580xref. Signed-off-by: Philippe Reynes --- configs/bcm968580xref_ram_defconfig | 7 +++ include/configs/broadcom_bcm968580xref.h | 7 +++ 2 files changed, 14 insertions(+) diff --git a/configs

[U-Boot] [PATCH 16/18] dt: bcm63158: add nand controller

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

[U-Boot] [PATCH 18/18] bcm963158: add nand support

2019-03-15 Thread Philippe Reynes
Enable the nand support (driver and command) in the configuration of the board bcm963158. Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 6 ++ include/configs/broadcom_bcm963158.h | 7 +++ 2 files changed, 13 insertions(+) diff --git a/configs

[U-Boot] [PATCH 17/18] dt: bcm963158: enable nand controller

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

[U-Boot] [PATCH 14/18] dt: bcm968580xref: enable nand controller

2019-03-15 Thread Philippe Reynes
Enable the nand controller in the device tree of the board bcm968580xref. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm968580xref.dts | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/dts/bcm968580xref.dts b/arch/arm/dts/bcm968580xref.dts index 0c59f94..2085c18

[U-Boot] [PATCH 09/18] drivers: nand: brcmnand: add an option to read the write-protect from device tree

2019-03-15 Thread Philippe Reynes
The option write-protect may only change on the kernel command line, we add a property in the device tree to be more flexible. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand

[U-Boot] [PATCH 13/18] dt: bcm6858: add nand controller

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

[U-Boot] [PATCH 11/18] dt: bcm968380gerg: enable nand controller

2019-03-15 Thread Philippe Reynes
Enable the nand controller in the device tree of the board bcm96838gerg. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm968380gerg.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/mips/dts/brcm,bcm968380gerg.dts b/arch/mips/dts/brcm,bcm968380gerg.dts index

[U-Boot] [PATCH 12/18] bcm968380gerg: add nand support

2019-03-15 Thread Philippe Reynes
Enable the nand support (driver and command) in the configuration of the board bcm96838gerg. Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 7 +++ include/configs/broadcom_bcm968380gerg.h | 7 +++ 2 files changed, 14 insertions(+) diff --git a/configs

[U-Boot] [PATCH 07/18] drivers: nand: brcmnand: add initial support

2019-03-15 Thread Philippe Reynes
The driver brcmnand come from linux kernel 4.18. Only SoC bcm6838 and bcm6858 are supported. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/Kconfig| 25 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/brcmnand/Makefile

[U-Boot] [PATCH 10/18] dt: bcm6838: add nand controller

2019-03-15 Thread Philippe Reynes
Add the nand controller in the bcm6838 device tree. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 13 + 1 file changed, 13 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6838.dtsi b/arch/mips/dts/brcm,bcm6838.dtsi index b6f9559..2b7baf9 100644 --- a/arch

[U-Boot] [PATCH 04/18] arm: asm: io.h: define readX_relaxed and writeX_relaxed

2019-03-15 Thread Philippe Reynes
This patch port the function readX_relaxed and writeX_relaxed from kernel 4.18. Signed-off-by: Philippe Reynes --- arch/arm/include/asm/io.h | 21 + 1 file changed, 21 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 12bc7fb..e6d27b6

[U-Boot] [PATCH 05/18] include: linux: io: define devm_ioremap on board with ioremap

2019-03-15 Thread Philippe Reynes
The macro devm_ioremap is only defined for configuration that doesn't have ioremap. But this macro may also be defined on configuration with ioremap. This patch remove the condition for the macro devm_ioremap, so it's always defined. Signed-off-by: Philippe Reynes --- include/linux/io.h | 2

[U-Boot] [PATCH 08/18] drivers: nand: brcmnand: add parameter parameter-page-big-endian

2019-03-15 Thread Philippe Reynes
The parameter page isn't always in big endian, so we add an option to choose the endiannes of the parameter page. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 17 +++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/nand

[U-Boot] [PATCH 06/18] compat linux: import completion from linux 4.18

2019-03-15 Thread Philippe Reynes
This patch port the file include/linux/completion.h from linux 4.18 to u-boot. It define the structure but all the function are stubbed. Signed-off-by: Philippe Reynes --- include/linux/completion.h | 173 + 1 file changed, 173 insertions(+) create

[U-Boot] [PATCH 00/18] Initial support of driver brcmnand (from kernel 4.18)

2019-03-15 Thread Philippe Reynes
ian Norris (1): mtd: add get/set of_node/flash_node helpers Marc Gonzalez (1): mtd: nand: import nand_hw_control_init() Philippe Reynes (15): arm: asm: io.h: define readX_relaxed and writeX_relaxed include: linux: io: define devm_ioremap on board with ioremap compat linux: import compl

[U-Boot] [PATCH 01/18] mtd: add get/set of_node/flash_node helpers

2019-03-15 Thread Philippe Reynes
) too, so get that ready with their own helpers. Signed-off-by: Brian Norris Reviewed-by: Boris Brezillon [Philippe Reynes: only add function nand_set_flash_node and nand_get_flash_node because others were already backported] Signed-off-by: Philippe Reynes --- include/linux/mtd/rawnand.h | 12 +++

[U-Boot] [PATCH 13/14] dt: bcm963158: enable gpio controller

2019-03-07 Thread Philippe Reynes
Enable all the gpio controllers in the device tree of the board bcm963158. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm963158.dts | 32 1 file changed, 32 insertions(+) diff --git a/arch/arm/dts/bcm963158.dts b/arch/arm/dts/bcm963158.dts index dc5afb5

[U-Boot] [PATCH 14/14] bcm963158: enable gpio support

2019-03-07 Thread Philippe Reynes
Enable the gpio support (driver and command) 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

[U-Boot] [PATCH 11/14] gpio: do not include on ARCH_BCM63158

2019-03-07 Thread Philippe Reynes
As no gpio.h is defined for this architecture, to avoid a compilation failure, do not include for arch bcm63158. Signed-off-by: Philippe Reynes --- arch/arm/include/asm/gpio.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include

[U-Boot] [PATCH 10/14] gpio: bcm6345: allow this driver on ARCH_BCM63158

2019-03-07 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use this driver on arch bcm63158. Signed-off-by: Philippe Reynes --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 42b15f7..b3e4ecc 100644

[U-Boot] [PATCH 09/14] bcm968580xref: enable gpio support

2019-03-07 Thread Philippe Reynes
Enable the gpio support (driver and command) 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

[U-Boot] [PATCH 12/14] dt: bcm63158: add gpio controller

2019-03-07 Thread Philippe Reynes
Add 8 gpio controllers in the bcm63158 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 80 ++ 1 file changed, 80 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index 6a3fbc9..4f41f62

[U-Boot] [PATCH 08/14] dt: bcm968580xref: enable gpio controller

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

[U-Boot] [PATCH 06/14] gpio: do not include on ARCH_BCM6858

2019-03-07 Thread Philippe Reynes
As no gpio.h is defined for this architecture, to avoid compilation failure, do not include for arch bcm6858. Signed-off-by: Philippe Reynes --- arch/arm/include/asm/gpio.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/include/asm/gpio.h b/arch/arm/include/asm

[U-Boot] [PATCH 05/14] gpio: bcm6345: allow this driver on ARCH_BCM6858

2019-03-07 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use this driver on arch bcm6858. Signed-off-by: Philippe Reynes --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index b103180..42b15f7 100644

[U-Boot] [PATCH 07/14] dt: bcm6858: add gpio controller

2019-03-07 Thread Philippe Reynes
Add 8 gpio controllers in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 80 +++ 1 file changed, 80 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index 23b80c6..5d5e64d

[U-Boot] [PATCH 04/14] bcm968380gerg: enable gpio support

2019-03-07 Thread Philippe Reynes
Enable the gpio support (driver and command) in the configuration of the board bcm968380gerg Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs/bcm968380gerg_ram_defconfig

[U-Boot] [PATCH 03/14] dt: bcm968380gerg: enable gpio controller

2019-03-07 Thread Philippe Reynes
Enable the gpio controllers in the device tree of the board bcm968380gerg. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm968380gerg.dts | 12 1 file changed, 12 insertions(+) diff --git a/arch/mips/dts/brcm,bcm968380gerg.dts b/arch/mips/dts/brcm,bcm968380gerg.dts index

[U-Boot] [PATCH 02/14] dt: bcm6838: add gpio controller

2019-03-07 Thread Philippe Reynes
Add gpio controllers in bcm6838 device tree. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 27 +++ 1 file changed, 27 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6838.dtsi b/arch/mips/dts/brcm,bcm6838.dtsi index b6f9559..c060802 100644

[U-Boot] [PATCH 01/14] gpio: bcm6345: switch to raw I/O functions

2019-03-07 Thread Philippe Reynes
This driver is used on several big endian mips board. So we could use raw I/O function instead of forcing big endian access. Signed-off-by: Philippe Reynes --- drivers/gpio/bcm6345_gpio.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/gpio

[U-Boot] [PATCH] bcm963158: use TARGET_BCM963158 instead of ARCH_BCM63158

2019-02-11 Thread Philippe Reynes
We use TARGET_BCM63158 in the Kconfig instead of ARCH_BCM63158, so we could add other board that use a bcm63158. Signed-off-by: Philippe Reynes --- board/broadcom/bcm963158/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/board/broadcom/bcm963158/Kconfig b/board

[U-Boot] [PATCH V2 1/2] bcm968580: rename to bcm968580xref

2019-02-04 Thread Philippe Reynes
The name of the board is bcm968580xref, so rename the config to bcm968580xref too. Signed-off-by: Philippe Reynes --- board/broadcom/bcm968580xref/MAINTAINERS | 4 ++-- configs/bcm968580_ram_defconfig | 35 configs/bcm968580xref_ram_defconfig | 35

[U-Boot] [PATCH V2 2/2] bcm968580xref: switch to CONFIG_OF_SEPARATE

2019-02-04 Thread Philippe Reynes
The option OF_EMBED is deprecated, so we switch to CONFIG_OF_SEPARATE Signed-off-by: Philippe Reynes --- configs/bcm968580xref_ram_defconfig | 1 - 1 file changed, 1 deletion(-) Changelog: v2: - no change diff --git a/configs/bcm968580xref_ram_defconfig b/configs/bcm968580xref_ram_defconfig

[U-Boot] [PATCH 1/2] bcm968580: rename to bcm968580xref

2019-02-04 Thread Philippe Reynes
The name of the board is bcm968580xref, so rename the config to bcm968580xref too. Signed-off-by: Philippe Reynes --- configs/bcm968580_ram_defconfig | 35 --- configs/bcm968580xref_ram_defconfig | 35 +++ 2 files changed, 35

[U-Boot] [PATCH 2/2] bcm968580xref: switch to CONFIG_OF_SEPARATE

2019-02-04 Thread Philippe Reynes
The option OF_EMBED is deprecated, so we switch to CONFIG_OF_SEPARATE Signed-off-by: Philippe Reynes --- configs/bcm968580xref_ram_defconfig | 1 - 1 file changed, 1 deletion(-) diff --git a/configs/bcm968580xref_ram_defconfig b/configs/bcm968580xref_ram_defconfig index 56e0a56..b66a295

[U-Boot] [PATCH 4/5] dt: bcm63158: add watchdog

2019-01-31 Thread Philippe Reynes
This commit add watchdog and sysreset watchdog in the bcm63158 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm63158.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/bcm63158.dtsi b/arch/arm/dts/bcm63158.dtsi index be68205..6a3fbc9 100644

[U-Boot] [PATCH 5/5] bcm963158: enable watchdog and reboot with watchdog

2019-01-31 Thread Philippe Reynes
Enable watchdog and reboot with watchdog in the configuration. Signed-off-by: Philippe Reynes --- configs/bcm963158_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm963158_ram_defconfig b/configs/bcm963158_ram_defconfig index 6e3b688..9083f1d 100644 --- a/configs

[U-Boot] [PATCH 3/5] watchdog: bcm6345: allow to use this driver on arm bcm63158

2019-01-31 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm63158 too. Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 9456abd..115fc45 100644

[U-Boot] [PATCH 2/5] bcm963158: add initial support

2019-01-31 Thread Philippe Reynes
This add the initial support of the broadcom reference board bcm963158 with a bcm63158 SoC. This board has 1 GB of ram, 512 MB of flash (nand), 2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN). Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 1

[U-Boot] [PATCH 1/5] bcm63158: add initial support

2019-01-31 Thread Philippe Reynes
This add the initial support of the broadcom bcm63158 SoC family, only the cpu, dram and uart are supported. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 6 arch/arm/dts/bcm63158.dtsi | 85 ++ 2 files changed, 91 insertions

[U-Boot] [PATCH V3 6/6] bcm968580: enable watchdog and reboot with watchdog

2019-01-28 Thread Philippe Reynes
Enable watchdog and reboot with watchdog in the configuration. Signed-off-by: Philippe Reynes --- configs/bcm968580_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) Changelog: v2: - add a commit message (thanks Marek) v3: - no change diff --git a/configs/bcm968580_ram_defconfig b/configs

[U-Boot] [PATCH V3 4/6] dt: bcm6858: add watchdog

2019-01-28 Thread Philippe Reynes
This commit add watchdog and sysreset watchdog in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 17 + 1 file changed, 17 insertions(+) Changelog: v2: - add a commit message (thanks Marek) v3: - no change diff --git a/arch/arm/dts

[U-Boot] [PATCH V3 5/6] bcm968380gerg: enable watchdog and reboot with watchdog

2019-01-28 Thread Philippe Reynes
Enable watchdog and reboot with watchdog in the configuration. Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) Changelog: v2: - add a commit message (thanks Marek) v3: - no change diff --git a/configs/bcm968380gerg_ram_defconfig

[U-Boot] [PATCH V3 2/6] watchdog: bcm6345: allow to use this driver on arm bcm6858

2019-01-28 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm bcm6858 too. Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changelog: v2: - add a commit message (thanks Marek) v3: - only enable this driver on bcm6858

[U-Boot] [PATCH V3 3/6] dt: bcm6838: add watchdog

2019-01-28 Thread Philippe Reynes
This commit add watchdog and sysreset watchdog in the bcm6838 device tree. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 17 + 1 file changed, 17 insertions(+) Changelog: v2: - add a commit message (thanks Marek) v3: - no change diff --git a/arch/mips

[U-Boot] [PATCH V3 1/6] watchdog: bcm6345: switch to raw I/O functions

2019-01-28 Thread Philippe Reynes
This driver is used on several big endian mips board. So we could use raw I/O function instead of forcing big endian access. Signed-off-by: Philippe Reynes Reviewed-by: Daniel Schwierzeck --- drivers/watchdog/bcm6345_wdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions

[U-Boot] [PATCH V2 6/6] bcm968580: enable watchdog and reboot with watchdog

2019-01-22 Thread Philippe Reynes
Enable watchdog and reboot with watchdog in the configuration. Signed-off-by: Philippe Reynes --- configs/bcm968580_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) Changelog: v2: - add a commit message (thanks Marek) diff --git a/configs/bcm968580_ram_defconfig b/configs

[U-Boot] [PATCH V2 5/6] bcm968380gerg: enable watchdog and reboot with watchdog

2019-01-22 Thread Philippe Reynes
Enable watchdog and reboot with watchdog in the configuration. Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) Changelog: v2: - add a commit message (thanks Marek) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs

[U-Boot] [PATCH V2 4/6] dt: bcm6858: add watchdog

2019-01-22 Thread Philippe Reynes
This commit add watchdog and sysreset watchdog in the bcm6858 device tree. Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 17 + 1 file changed, 17 insertions(+) Changelog: v2: - add a commit message (thanks Marek) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch

[U-Boot] [PATCH V2 3/6] dt: bcm6838: add watchdog

2019-01-22 Thread Philippe Reynes
This commit add watchdog and sysreset watchdog in the bcm6838 device tree. Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 17 + 1 file changed, 17 insertions(+) Changelog: v2: - add a commit message (thanks Marek) diff --git a/arch/mips/dts/brcm,bcm6838

[U-Boot] [PATCH V2 1/6] watchdog: bcm6345: switch to raw I/O functions

2019-01-22 Thread Philippe Reynes
This driver is used on several big endian mips board. So we could use raw I/O function instead of forcing big endian access. Signed-off-by: Philippe Reynes --- drivers/watchdog/bcm6345_wdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) Changelog: v2: - add a commit message

[U-Boot] [PATCH V2 2/6] watchdog: bcm6345: allow to use this driver on arm

2019-01-22 Thread Philippe Reynes
This IP is also used on some arm SoC, so we allow to use it on arm too. Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Changelog: v2: - add a commit message (thanks Marek) diff --git a/drivers/watchdog/Kconfig b/drivers

[U-Boot] [PATCH] bcm968380gerg: disable SPI_FLASH

2019-01-21 Thread Philippe Reynes
The board bcm968380gerg don't have a spi flash so we disable the spi flash support. Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 2 -- 1 file changed, 2 deletions(-) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs/bcm968380gerg_ram_defconfig index

[U-Boot] [PATCH 6/6] bcm968580_ram_defconfig: enable watchdog and reboot with watchdog

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- configs/bcm968580_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm968580_ram_defconfig b/configs/bcm968580_ram_defconfig index 56e0a56..b23f960 100644 --- a/configs/bcm968580_ram_defconfig +++ b/configs/bcm968580_ram_defconfig

[U-Boot] [PATCH 5/6] bcm968380gerg_ram_defconfig: enable watchdog and reboot with watchdog

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- configs/bcm968380gerg_ram_defconfig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configs/bcm968380gerg_ram_defconfig b/configs/bcm968380gerg_ram_defconfig index fdecc0f..d98fe51 100644 --- a/configs/bcm968380gerg_ram_defconfig +++ b/configs

[U-Boot] [PATCH 3/6] dt: bcm6838: add watchdog

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- arch/mips/dts/brcm,bcm6838.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6838.dtsi b/arch/mips/dts/brcm,bcm6838.dtsi index 77d6a8e..b6f9559 100644 --- a/arch/mips/dts/brcm,bcm6838.dtsi +++ b/arch/mips/dts/brcm

[U-Boot] [PATCH 4/6] dt: bcm6858: add watchdog

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm6858.dtsi | 17 + 1 file changed, 17 insertions(+) diff --git a/arch/arm/dts/bcm6858.dtsi b/arch/arm/dts/bcm6858.dtsi index d78d34d..23b80c6 100644 --- a/arch/arm/dts/bcm6858.dtsi +++ b/arch/arm/dts/bcm6858.dtsi @@ -81,5 +81,22

[U-Boot] [PATCH 1/6] watchdog: bcm6345: switch to raw I/O functions

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- drivers/watchdog/bcm6345_wdt.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/watchdog/bcm6345_wdt.c b/drivers/watchdog/bcm6345_wdt.c index e1bd73d..44f5662 100644 --- a/drivers/watchdog/bcm6345_wdt.c +++ b/drivers

[U-Boot] [PATCH 2/6] watchdog: bcm6345: allow to use this driver on arm

2019-01-21 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- drivers/watchdog/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/watchdog/Kconfig b/drivers/watchdog/Kconfig index 10fd303..e723c5e 100644 --- a/drivers/watchdog/Kconfig +++ b/drivers/watchdog/Kconfig @@ -88,7 +88,7 @@ config

[U-Boot] [RFC][PATCH V0 5/7] drivers: nand: brcmnand: add initial support

2018-11-16 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/Kconfig| 19 + drivers/mtd/nand/raw/Makefile |1 + drivers/mtd/nand/raw/brcmnand/Makefile |6 + drivers/mtd/nand/raw/brcmnand/bcm6838_nand.c| 124 + drivers/mtd/nand/raw/brcmnand

[U-Boot] [RFC][PATCH v0 3/7] mtd: nand: provide several helpers to do common NAND operations

2018-11-16 Thread Philippe Reynes
504956ad2] [Philippe Reynes: adapt code to u-boot and only keep new function] Signed-off-by: Philippe Reynes Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/nand_base.c | 1013 -- include/linux/mtd/rawnand.h | 30 ++ 2 files changed, 883 i

[U-Boot] [RFC][PATCH V0 6/7] drivers: nand: brcmnand: add parameter parameter-page-big-endian

2018-11-16 Thread Philippe Reynes
The parameter page isn't always in big endian, so we add an option to choose the endiannes of the parameter page. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/drivers/mtd/nand/raw/brcmnand

[U-Boot] [RFC][PATCH V0 4/7] arm: asm: io.h: define readX_relaxed and writeX_relaxed

2018-11-16 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- arch/arm/include/asm/io.h | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/arm/include/asm/io.h b/arch/arm/include/asm/io.h index 5df7472..ab6bc59 100644 --- a/arch/arm/include/asm/io.h +++ b/arch/arm/include/asm/io.h @@ -123,6 +123,21

[U-Boot] [RFC][PATCH V0 7/7] drivers: nand: brcmnand: add an option to read the write-protect from device tree

2018-11-16 Thread Philippe Reynes
The option write-protect may only change on the kernel command line, we add a property in the device tree to be more flexible. Signed-off-by: Philippe Reynes --- drivers/mtd/nand/raw/brcmnand/brcmnand.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/mtd/nand/raw/brcmnand

[U-Boot] [RTC][PATCH V0 0/7] Initial support of driver brcmnand (from kernel 4.18)

2018-11-16 Thread Philippe Reynes
this code for others driver (adding compat file for platform device, ...) Boris Brezillon (1): mtd: nand: provide several helpers to do common NAND operations Brian Norris (1): mtd: add get/set of_node/flash_node helpers Marc Gonzalez (1): mtd: nand: import nand_hw_control_init() Philippe

[U-Boot] [RFC][PATCH v0 2/7] mtd: nand: import nand_hw_control_init()

2018-11-16 Thread Philippe Reynes
From: Marc Gonzalez 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 [Linux commit: d45bc58dd3bdcaabc1d7d8d9b0b8dee826635cc6] [Philippe Reynes: adapt code

[U-Boot] [RFC][PATCH V0 1/7] mtd: add get/set of_node/flash_node helpers

2018-11-16 Thread Philippe Reynes
wed-by: Boris Brezillon [Linux commit: 28b8b26b308e656edfa9467867d5f79212da2ec3] [Philippe Reynes: adapt code to u-boot] Signed-off-by: Philippe Reynes Signed-off-by: Philippe Reynes --- include/linux/mtd/rawnand.h | 12 1 file changed, 12 insertions(+) diff --git a/include/linux/

[U-Boot] [PATCH V4 4/7] doc: uImage.FIT: signature.txt: add option padding

2018-11-14 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- doc/uImage.FIT/signature.txt | 3 +++ 1 file changed, 3 insertions(+) Changelog: v4: - remove Reviewed-by Clement Peron (added by mistake) v3: - no change v2: - no change diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT

Re: [U-Boot] [PATCH V3 7/7] test: vboot: clean its file

2018-11-14 Thread Philippe REYNES
: "Clément Péron" À: "philippe reynes" Cc: s...@chromium.org, "joe hershberger" , "michal simek" , "yamada masahiro" , "Marek Vasut" , "Adam Ford" , "woods technical" , "Teddy Reed V" , "jun

[U-Boot] [PATCH V4 7/7] test: vboot: clean its file

2018-11-14 Thread Philippe Reynes
This update the its file used in vboot test to respect the new node style name defined in doc/uImage.FIT (for example: replace kernel@1 by kernel and fdt@1 by fdt-1) Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 2 +- test/py/tests/vboot/sign-configs-sha1

[U-Boot] [PATCH V4 5/7] configs: sandbox: enable padding pss for rsa signature

2018-11-14 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) Changelog: v4: - remove Reviewed-by Clement Peron (added by mistake) v3: - no change v2: - new patch in the serie diff --git a/configs/sandbox_defconfig b/configs

[U-Boot] [PATCH V4 3/7] rsa: add support of padding pss

2018-11-14 Thread Philippe Reynes
We add the support of the padding pss for rsa signature. This new padding is often recommended instead of pkcs-1.5. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- Kconfig | 8 +++ common/image-sig.c | 6 ++ include/image.h | 1 + include/u-boot/rsa.h

[U-Boot] [PATCH V4 6/7] test: vboot: add padding pss for rsa signature

2018-11-14 Thread Philippe Reynes
The padding pss is now supported for rsa signature. This add test with padding pss on vboot test. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- test/py/tests/test_vboot.py | 12 --- test/py/tests/vboot/sign-configs-sha1-pss.its | 46

[U-Boot] [PATCH V4 1/7] rsa: use new openssl API to create signature

2018-11-14 Thread Philippe Reynes
Previous implementation of the rsa signature was using the openssl API EVP_Sign*, but the new openssl API EVP_DigestSign* is more flexible. So we move to this new API. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- lib/rsa/rsa-sign.c | 17 +++-- 1 file changed, 11

[U-Boot] [PATCH V4 2/7] rsa: add a structure for the padding

2018-11-14 Thread Philippe Reynes
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framework to manage several padding algorithm. The choice of the padding is done in the file .its. Signed-off-by: Philippe Reynes Reviewed-by: Simon

[U-Boot] [PATCH V3 3/7] rsa: add support of padding pss

2018-11-13 Thread Philippe Reynes
We add the support of the padding pss for rsa signature. This new padding is often recommended instead of pkcs-1.5. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- Kconfig | 8 +++ common/image-sig.c | 6 ++ include/image.h | 1

[U-Boot] [PATCH V3 5/7] configs: sandbox: enable padding pss for rsa signature

2018-11-13 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) Changelog: v3: - no change v2: - new patch in the serie diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 2ce336f

[U-Boot] [PATCH V3 4/7] doc: uImage.FIT: signature.txt: add option padding

2018-11-13 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- doc/uImage.FIT/signature.txt | 3 +++ 1 file changed, 3 insertions(+) Changelog: v3: - no change v2: - no change diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index a765722

[U-Boot] [PATCH V3 7/7] test: vboot: clean its file

2018-11-13 Thread Philippe Reynes
This update the its file used in vboot test to respect the new node style name defined in doc/uImage.FIT (for example: replace kernel@1 by kernel and fdt@1 by fdt-1) Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- test/py/tests/test_vboot.py

[U-Boot] [PATCH V3 6/7] test: vboot: add padding pss for rsa signature

2018-11-13 Thread Philippe Reynes
The padding pss is now supported for rsa signature. This add test with padding pss on vboot test. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- test/py/tests/test_vboot.py | 12 --- test/py/tests/vboot/sign-configs-sha1-pss.its

[U-Boot] [PATCH V3 1/7] rsa: use new openssl API to create signature

2018-11-13 Thread Philippe Reynes
Previous implementation of the rsa signature was using the openssl API EVP_Sign*, but the new openssl API EVP_DigestSign* is more flexible. So we move to this new API. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass Reviewed-by: Clément Péron --- lib/rsa/rsa-sign.c | 17

[U-Boot] [PATCH V3 2/7] rsa: add a structure for the padding

2018-11-13 Thread Philippe Reynes
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framework to manage several padding algorithm. The choice of the padding is done in the file .its. Signed-off-by: Philippe Reynes Reviewed-by: Simon

Re: [U-Boot] [PATCH V2 6/6] test: vboot: add padding pss for rsa signature

2018-11-12 Thread Philippe REYNES
Hi Clément, You're right, those its are in an old-format style. I can add a patch in this serie or send a separate patch to clean the style. What solution do you prefer ? Regards, Philippe - Mail original - De: "Clément Péron" À: s...@chromium.org Cc: "philippe re

[U-Boot] [PATCH V2 4/6] doc: uImage.FIT: signature.txt: add option padding

2018-10-25 Thread Philippe Reynes
Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- doc/uImage.FIT/signature.txt | 3 +++ 1 file changed, 3 insertions(+) Changelog: v2: - no change diff --git a/doc/uImage.FIT/signature.txt b/doc/uImage.FIT/signature.txt index a765722..bfff6fd 100644 --- a/doc/uImage.FIT

[U-Boot] [PATCH V2 6/6] test: vboot: add padding pss for rsa signature

2018-10-25 Thread Philippe Reynes
The padding pss is now supported for rsa signature. This add test with padding pss on vboot test. Signed-off-by: Philippe Reynes --- test/py/tests/test_vboot.py | 10 +++--- test/py/tests/vboot/sign-configs-sha1-pss.its | 46 + test/py/tests/vboot

[U-Boot] [PATCH V2 5/6] configs: sandbox: enable padding pss for rsa signature

2018-10-25 Thread Philippe Reynes
Signed-off-by: Philippe Reynes --- configs/sandbox_defconfig | 1 + 1 file changed, 1 insertion(+) Changelog: v2: - new patch in the serie diff --git a/configs/sandbox_defconfig b/configs/sandbox_defconfig index 2ce336f..b2565e1 100644 --- a/configs/sandbox_defconfig +++ b/configs

[U-Boot] [PATCH V2 2/6] rsa: add a structure for the padding

2018-10-25 Thread Philippe Reynes
The rsa signature use a padding algorithm. By default, we use the padding pkcs-1.5. In order to add some new padding algorithm, we add a padding framework to manage several padding algorithm. The choice of the padding is done in the file .its. Signed-off-by: Philippe Reynes Reviewed-by: Simon

[U-Boot] [PATCH V2 3/6] rsa: add support of padding pss

2018-10-25 Thread Philippe Reynes
We add the support of the padding pss for rsa signature. This new padding is often recommended instead of pkcs-1.5. Signed-off-by: Philippe Reynes --- Kconfig | 8 +++ common/image-sig.c | 6 ++ include/image.h | 1 + include/u-boot/rsa.h | 15 lib/rsa/rsa-sign.c

[U-Boot] [PATCH V2 1/6] rsa: use new openssl API to create signature

2018-10-25 Thread Philippe Reynes
Previous implementation of the rsa signature was using the openssl API EVP_Sign*, but the new openssl API EVP_DigestSign* is more flexible. So we move to this new API. Signed-off-by: Philippe Reynes Reviewed-by: Simon Glass --- lib/rsa/rsa-sign.c | 17 +++-- 1 file changed, 11

[U-Boot] [PATCH 2/3] bcm6858: add initial support

2018-10-11 Thread Philippe Reynes
This add the initial support of the broadcom bcm6858 SoC family, only the cpu, dram and uart are supported. Signed-off-by: Philippe Reynes --- arch/arm/Kconfig | 7 arch/arm/dts/bcm6858.dtsi | 85 +++ 2 files changed, 92 insertions

[U-Boot] [PATCH 3/3] bcm968580xref: add initial support

2018-10-11 Thread Philippe Reynes
This add the initial support of the broadcom reference board bcm968580xref with a bcm6858 SoC. This board has 512 MB of ram, 256 MB of flash (nand), 2 usb port, 1 uart, 4 ethernet ports (LAN), 1 ethernet port (WAN). Signed-off-by: Philippe Reynes --- arch/arm/dts/bcm968580xref.dts

[U-Boot] [PATCH 1/3] serial: bcm6858: add serial support

2018-10-11 Thread Philippe Reynes
This driver add the support of serial on bcm6858. It's based on serial for bcm6345. Signed-off-by: Philippe Reynes --- drivers/serial/Kconfig | 6 + drivers/serial/Makefile | 1 + drivers/serial/serial_bcm6858.c | 300 3 files

<    1   2   3   4   5   6   >