[U-Boot] [PATCH 2/8] sysreset: add syscon-reboot driver

2017-04-13 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- drivers/sysreset/Kconfig | 8 + d

[U-Boot] [PATCH 3/8] mips: allow using generic sysreset drivers

2017-04-13 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- arch/mips/cpu/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c index 1b919ed..55e6498 100644 --- a/arc

[U-Boot] [PATCH 1/8] cmd: cpu: fix NULL cpu feature prints

2017-04-13 Thread Álvaro Fernández Rojas
cache, MMU Device ID 0x2a010 -1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- cmd/cpu.c | 3 ++- 1 file changed, 2 insertions(+), 1 de

[U-Boot] [PATCH 0/8] Add support for Broadcom MIPS SoCs

2017-04-13 Thread Álvaro Fernández Rojas
This adds support for some of the xDSL Broadcom MIPS SoCs: - BCM6358 - BCM6328 - BCM63268 However, support for other SoCs could be added in the future: - Other BCM63xx - BCM33xx - BCM71xx Álvaro Fernández Rojas (8): cmd: cpu: fix NULL cpu feature prints sysreset: add syscon-reboot

[U-Boot] [PATCH 7/8] mips: bmips: fix ioremap for BCM6358

2017-04-13 Thread Álvaro Fernández Rojas
BCM6358 has its internal registers mapped to 0xfffe, which is changed to 0x1ffe when ioremap is called. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- arch/mips/include/asm/mach-generic/ioremap.h | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-)

[U-Boot] [PATCH 8/8] mips: bmips: add support for raw .elf images

2017-04-13 Thread Álvaro Fernández Rojas
CFE supports loading .elf images instead of raw binaries. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- Makefile | 22 ++ arch/mips/cpu/u-boot-elf.lds | 10 ++ 2 files changed, 32 insertions(+) create mode 100644 arch/mips

[U-Boot] [PATCH 5/8] mips: add support for Broadcom MIPS

2017-04-13 Thread Álvaro Fernández Rojas
This target supports some of the xDSL Broadcom MIPS SoCs for now. However, support for other SoCs could be added in the future. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- arch/mips/Kconfig | 10 ++ arch/mips/Makefile | 1 +

[U-Boot] [PATCH 4/8] serial: add serial driver for BCM6345

2017-04-13 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- drivers/serial/Kconfig | 14 ++ drivers/serial/Makefile | 1 + drivers/serial/serial_bcm6345.c | 341 3 files c

[U-Boot] [PATCH 6/8] mips: bmips: fix first CPU check

2017-04-13 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- arch/mips

[U-Boot] [PATCH v4 00/14] Add support for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
for sysreset. v3: Introduce changes suggested by Simon Glass. v2: Introduce changes suggested by Daniel Schwierzeck. Álvaro Fernández Rojas (14): cmd: cpu: fix NULL cpu feature prints sysreset: add syscon-reboot driver MIPS: allow using generic sysreset drivers serial: add serial driver

[U-Boot] [PATCH v4 03/14] MIPS: allow using generic sysreset drivers

2017-04-20 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v4: No changes. v3: No changes. v2: No changes. arch/mips/cpu/cpu.c | 2 ++ 1 file changed, 2 inserti

[U-Boot] [PATCH v4 14/14] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtr

[U-Boot] [PATCH v4 12/14] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtr

[U-Boot] [PATCH v4 08/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No

[U-Boot] [PATCH v4 04/14] serial: add serial driver for BCM6345

2017-04-20 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: Add more missing register configurations based on CFE. v3: Several improvements: - Add missing register configurations based on CFE. - Replace tabs with white

[U-Boot] [PATCH v4 07/14] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v4: No changes. v3: Rename of_match to ids. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. drivers/ram/Makefile| 2 +

[U-Boot] [PATCH v4 01/14] cmd: cpu: fix NULL cpu feature prints

2017-04-20 Thread Álvaro Fernández Rojas
-1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v3: No changes. v2: Introduce changes suggest

[U-Boot] [PATCH v4 02/14] sysreset: add syscon-reboot driver

2017-04-20 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> ---

[U-Boot] [PATCH v4 06/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v4: No changes. v3: Several improvements: - Probe driver correctly. - Allocate size for priv struct. - Cosmetic fixes. v2: Introduce changes suggested by Daniel

[U-Boot] [PATCH v4 05/14] cmd: cpu: refactor to ensure devices are probed and improve code style

2017-04-20 Thread Álvaro Fernández Rojas
Use uclass_first_device and uclass_next_device in order to avoid exceptions for drivers that aren't probed when cpu ops are requested. Improve code style and fix indentations. Fix incorrect line break when cpu info is not available. Remove unneeded brackets. Signed-off-by: Álvaro Fernández Rojas

[U-Boot] [PATCH v4 10/14] MIPS: add BMIPS Huawei HG556a board

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: Add cfi-flash support. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mi

[U-Boot] [PATCH v4 13/14] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm63268.dtsi | 88

[U-Boot] [PATCH v4 09/14] MIPS: add support for Broadcom MIPS BCM6358 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: Add cfi-flash defines. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. - Merge with "fix ioremap for BCM6358" patch. - Add a

[U-Boot] [PATCH v4 11/14] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-20 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm6328.dtsi | 88 +

[U-Boot] [PATCH v4 0/4] u-boot.elf: support other archs

2017-04-20 Thread Álvaro Fernández Rojas
Provide an u-boot.elf binary for Broadcom MIPS platforms by re-using the already existing Makefile target for aarch64. This u-boot.elf binary should be used as a stage 2 loader until U-Boot can be replace the original Broadcom boot loader. Split patches from main BMIPS support. Álvaro Fernández

[U-Boot] [PATCH v4 1/4] u-boot.elf: remove hard-coded arm64 flags

2017-04-20 Thread Álvaro Fernández Rojas
This is needed in order to allow building it for other archs. Move relocation comment to a better place. Remove no longer needed dts FIXME. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Tom Rini <tr...@konsulko.com> --- v4: no changes v3: Introduce chang

[U-Boot] [PATCH v4 3/4] MIPS: add support for generating u-boot.elf

2017-04-20 Thread Álvaro Fernández Rojas
Define PLATFORM_ELFFLAGS for MIPS in order to be able to generate u-boot.elf Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: Introduce changes suggested by Tom Rini: - __start is the standard for MIPS, not ARM. v3: Introduce changes suggested by Daniel Schwierzeck:

[U-Boot] [PATCH v4 4/4] u-boot.elf: add quiet_cmd_u-boot-elf and cmd_u-boot-elf

2017-04-20 Thread Álvaro Fernández Rojas
This way we can see output about u-boot.elf being built or not. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: Introduce changes suggested by Tom Rini: - Add new patch to output u-boot.elf build. Makefile | 10 ++ 1 file changed, 6 insertions(+), 4 del

[U-Boot] [PATCH v4 2/4] u-boot.elf: allow overriding entry symbol

2017-04-20 Thread Álvaro Fernández Rojas
=ed47513ccc1d23d23d32ee640053d2f351f3990b;hb=HEAD#l258 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: Introduce changes suggested by Tom Rini: - __start is the standard for MIPS, not ARM. v3: Introduce changes suggested by Daniel Schwierzeck: - Split patches. v2: Int

Re: [U-Boot] [PATCH v2 1/1] core/uclass: iterate over all devices of a uclass

2017-04-19 Thread Álvaro Fernández Rojas
In case you decide to apply this version (I see you're yet deciding which is the best way to go), I tested it and it solves my problem with sysreset not bein probed correctly. So, Tested-by: Álvaro Fernández Rojas <nolt...@gmail.com> El 19/04/2017 a las 13:26, Heinrich Schuchardt es

Re: [U-Boot] [PATCH v2 1/1] core/uclass: iterate over all devices of a uclass

2017-04-19 Thread Álvaro Fernández Rojas
Hi Andreas, El 19/04/2017 a las 18:25, Andreas Färber escribió: > Am 19.04.2017 um 18:22 schrieb Álvaro Fernández Rojas: >> In case you decide to apply this version (I see you're yet deciding which is >> the best way to go), I tested it and it solves my problem with sysreset not

[U-Boot] [PATCH v2 01/14] cmd: cpu: fix NULL cpu feature prints

2017-04-15 Thread Álvaro Fernández Rojas
-1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Add the missing name instead of checking fo

[U-Boot] [PATCH v2 00/14] Add support for Broadcom MIPS SoCs

2017-04-15 Thread Álvaro Fernández Rojas
This adds support for some of the xDSL Broadcom MIPS SoCs: - BCM6358 - BCM6328 - BCM63268 However, support for other SoCs could be added in the future: - Other BCM63xx - BCM33xx - BCM71xx v2: Introduce changes suggested by Daniel Schwierzeck Álvaro Fernández Rojas (14): cmd: cpu: fix

[U-Boot] [PATCH v2 13/14] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,vr-3032u.dts

[U-Boot] [PATCH v2 12/14] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm63268.dtsi | 88 arch/mips/mach-bmips/Kconfig

[U-Boot] [PATCH v2 04/14] serial: add serial driver for BCM6345

2017-04-15 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Remove unneeded defines. - Fix incorrect multi-line comment. drivers/serial/Kconfig | 14 +++ d

[U-Boot] [PATCH v2 11/14] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,ar-5387un.dts

[U-Boot] [PATCH v2 06/14] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. drivers/ram/Makefile| 2 + drivers/ram/bmips_ram.c | 126 2 files changed, 128 inse

[U-Boot] [PATCH v2 09/14] MIPS: add BMIPS Huawei HG556a board

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/huawei,hg556a.dts

[U-Boot] [PATCH v2 14/14] u-boot.elf: build it for every arch

2017-04-15 Thread Álvaro Fernández Rojas
ARM64 isn't the only arch that needs it, since BMIPS CFE supports loading .elf images instead of raw binaries. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Avoid using a linker script. - Reuse aarch64 u-bo

Re: [U-Boot] [PATCH 4/8] serial: add serial driver for BCM6345

2017-04-15 Thread Álvaro Fernández Rojas
Hi Daniel, El 14/04/2017 a las 20:19, Daniel Schwierzeck escribió: > > > Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >> It is based on linux/drivers/tty/serial/bcm63xx_uart.c >> >> Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com>

Re: [U-Boot] [PATCH 1/8] cmd: cpu: fix NULL cpu feature prints

2017-04-15 Thread Álvaro Fernández Rojas
Hi Daniel, El 14/04/2017 a las 19:43, Daniel Schwierzeck escribió: > +cc Simon > > Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >> Commit 740d5d3 added two new features but only one feature name, >> which results in NULL prints when device_id featur

Re: [U-Boot] [PATCH 8/8] mips: bmips: add support for raw .elf images

2017-04-15 Thread Álvaro Fernández Rojas
Hi, El 15/04/2017 a las 19:19, Álvaro Fernández Rojas escribió: > > > El 14/04/2017 a las 21:05, Daniel Schwierzeck escribió: >> >> >> Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >>> CFE supports loading .elf images instead of raw binaries. >

Re: [U-Boot] [PATCH 7/8] mips: bmips: fix ioremap for BCM6358

2017-04-15 Thread Álvaro Fernández Rojas
Hi again, El 15/04/2017 a las 19:18, Álvaro Fernández Rojas escribió: > Hi Daniel, > > El 14/04/2017 a las 20:26, Daniel Schwierzeck escribió: >> >> >> Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >>> BCM6358 has its internal registers ma

Re: [U-Boot] [PATCH 8/8] mips: bmips: add support for raw .elf images

2017-04-15 Thread Álvaro Fernández Rojas
Hi, El 15/04/2017 a las 21:14, Álvaro Fernández Rojas escribió: > Hi, > > El 15/04/2017 a las 20:54, Daniel Schwierzeck escribió: >> >> >> Am 15.04.2017 um 20:10 schrieb Álvaro Fernández Rojas: >>> Hi, >>> >>> El 15/04/2017 a las 19:19, Ál

[U-Boot] [PATCH v2 03/14] MIPS: allow using generic sysreset drivers

2017-04-15 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: no changes arch/mips/cpu/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/mips/cpu/cpu.c b/arch/mips/cpu/cpu.c index 1b919ed..55e6498

[U-Boot] [PATCH v2 02/14] sysreset: add syscon-reboot driver

2017-04-15 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: no changes drivers/sysreset/Kconfig

[U-Boot] [PATCH v2 07/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-15 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Intro

[U-Boot] [PATCH v2 05/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Get register base from DT. drivers/cpu/Makefile| 2 + drivers/cpu/bmips_cpu.c

[U-Boot] [PATCH v2 10/14] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm6328.dtsi | 88 + arch/mips/mach-bmips/Kconfig

[U-Boot] [PATCH v2 08/14] MIPS: add support for Broadcom MIPS BCM6358 SoC family

2017-04-15 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. - Merge with "fix ioremap for BCM6358" patch. - Add a custom ioremap.h instead of modifying the gen

Re: [U-Boot] [PATCH 8/8] mips: bmips: add support for raw .elf images

2017-04-15 Thread Álvaro Fernández Rojas
El 14/04/2017 a las 21:05, Daniel Schwierzeck escribió: > > > Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >> CFE supports loading .elf images instead of raw binaries. >> >> Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> >> --

Re: [U-Boot] [PATCH 7/8] mips: bmips: fix ioremap for BCM6358

2017-04-15 Thread Álvaro Fernández Rojas
Hi Daniel, El 14/04/2017 a las 20:26, Daniel Schwierzeck escribió: > > > Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >> BCM6358 has its internal registers mapped to 0xfffe, which is changed to >> 0x1ffe when ioremap is called. >> >> Signed-off

Re: [U-Boot] [PATCH 5/8] mips: add support for Broadcom MIPS

2017-04-15 Thread Álvaro Fernández Rojas
Hi Daniel, El 14/04/2017 a las 21:23, Daniel Schwierzeck escribió: > > > Am 13.04.2017 um 17:52 schrieb Álvaro Fernández Rojas: >> This target supports some of the xDSL Broadcom MIPS SoCs for now. >> However, support for other SoCs could be added in the future. >&g

Re: [U-Boot] [PATCH 7/8] mips: bmips: fix ioremap for BCM6358

2017-04-15 Thread Álvaro Fernández Rojas
Hi, El 15/04/2017 a las 20:48, Daniel Schwierzeck escribió: > > > Am 15.04.2017 um 20:08 schrieb Álvaro Fernández Rojas: >> Hi again, >> >> El 15/04/2017 a las 19:18, Álvaro Fernández Rojas escribió: >>> Hi Daniel, >>> >>>

Re: [U-Boot] [PATCH 8/8] mips: bmips: add support for raw .elf images

2017-04-15 Thread Álvaro Fernández Rojas
Hi, El 15/04/2017 a las 20:54, Daniel Schwierzeck escribió: > > > Am 15.04.2017 um 20:10 schrieb Álvaro Fernández Rojas: >> Hi, >> >> El 15/04/2017 a las 19:19, Álvaro Fernández Rojas escribió: >>> >>> >>> El 14/04/2017 a las 21:05, Daniel

Re: [U-Boot] [PATCH v2 05/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-18 Thread Álvaro Fernández Rojas
...) On Sun, Apr 16, 2017 at 9:34 PM +0200, "Simon Glass" <s...@chromium.org> wrote: On 15 April 2017 at 16:03, Álvaro Fernández Rojas wrote: > Signed-off-by: Álvaro Fernández Rojas > --- > v2: Introduce ch

Re: [U-Boot] [PATCH v2 02/14] sysreset: add syscon-reboot driver

2017-04-17 Thread Álvaro Fernández Rojas
Hi Simon, El 16/04/2017 a las 21:34, Simon Glass escribió: > Hi Alvaro, > > On 15 April 2017 at 16:03, Álvaro Fernández Rojas <nolt...@gmail.com> wrote: >> Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, >> which provides a generic dri

[U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f

2017-04-23 Thread Álvaro Fernández Rojas
g uart is enabled. Signed-off-by: Daniel Schwierzeck <daniel.schwierz...@gmail.com> Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- arch/mips/cpu/start.S | 6 ++ 1 file changed, 6 insertions(+) diff --git a/arch/mips/cpu/start.S b/arch/mips/cpu/start.S index 6740f

[U-Boot] [PATCH 2/4] MIPS: QCA AP143: remove debug_uart_init call

2017-04-23 Thread Álvaro Fernández Rojas
In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- board/qca/ap143/ap143.c | 3 --- 1 file changed, 3 del

[U-Boot] [PATCH 3/4] MIPS: tl-wdr4300: remove debug_uart_init call

2017-04-23 Thread Álvaro Fernández Rojas
of what's the needed uart pinmux config, I copied the whole pinmux config to a new function that is called from board_early_init_f if CONFIG_DEBUG_UART_BOARD_INIT is not enabled. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- board/tplink/wdr4300/wdr4300.c | 18 ++

Re: [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f

2017-04-23 Thread Álvaro Fernández Rojas
Hi Marek, El 23/04/2017 a las 13:44, Marek Vasut escribió: > On 04/23/2017 01:31 PM, Álvaro Fernández Rojas wrote: >> Hi Marek, >> >> El 23/04/2017 a las 13:09, Marek Vasut escribió: >>> On 04/23/2017 12:50 PM, Álvaro Fernández Rojas wrote: >>>>

[U-Boot] [PATCH 0/4] MIPS: call debug_uart_init right before board_init_f

2017-04-23 Thread Álvaro Fernández Rojas
debug_uart_init right before board_init_f Álvaro Fernández Rojas (3): MIPS: QCA AP121: remove debug_uart_init call MIPS: QCA AP143: remove debug_uart_init call MIPS: tl-wdr4300: remove debug_uart_init call arch/mips/cpu/start.S | 6 ++ board/qca/ap121/ap121.c| 3 --- board/qca

[U-Boot] [PATCH 1/4] MIPS: QCA AP121: remove debug_uart_init call

2017-04-23 Thread Álvaro Fernández Rojas
In order to add a generic MIPS debug_uart_init call right before the call to board_early_init_f, we need to remove all calls to debug_uart_init from every MIPS boards. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- board/qca/ap121/ap121.c | 3 --- 1 file changed, 3 del

Re: [U-Boot] [PATCH 4/4] MIPS: call debug_uart_init right before board_init_f

2017-04-23 Thread Álvaro Fernández Rojas
Hi Marek, El 23/04/2017 a las 13:09, Marek Vasut escribió: > On 04/23/2017 12:50 PM, Álvaro Fernández Rojas wrote: >> From: Daniel Schwierzeck <daniel.schwierz...@gmail.com> >> >> All MIPS boards that support debug uart are calling debug_uart_init right at >> th

[U-Boot] [PATCH v5 01/14] cmd: cpu: fix NULL cpu feature prints

2017-04-23 Thread Álvaro Fernández Rojas
-1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> Reviewed-by: Tom Rini <tr...@konsulko.com> --- v

[U-Boot] [PATCH v5 00/14] Add support for Broadcom MIPS SoCs

2017-04-23 Thread Álvaro Fernández Rojas
. - Remove device_probe patch for sysreset. v3: Introduce changes suggested by Simon Glass. v2: Introduce changes suggested by Daniel Schwierzeck. Álvaro Fernández Rojas (14): cmd: cpu: fix NULL cpu feature prints sysreset: add syscon-reboot driver MIPS: allow using generic sysreset drivers

[U-Boot] [PATCH v5 03/14] MIPS: allow using generic sysreset drivers

2017-04-23 Thread Álvaro Fernández Rojas
Avoid duplicating do_reset definition if SYSRESET is enabled for MIPS Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v5: No changes. v4: No changes. v3: No changes. v2: No changes. arch/mips/cpu/cpu.c | 2 ++ 1 fil

[U-Boot] [PATCH v5 04/14] serial: add serial driver for BCM6345

2017-04-23 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: Add more missing register configurations based on CFE. v3: Several improvements: - Add missing register configurations based on CFE. - Replac

[U-Boot] [PATCH v5 09/14] MIPS: add support for Broadcom MIPS BCM6358 SoC family

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: Add cfi-flash defines. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. - Merge with "fix ioremap for BCM6358"

[U-Boot] [PATCH v5 07/14] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v5: No changes. v4: No changes. v3: Rename of_match to ids. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. drivers/ram/Makef

[U-Boot] [PATCH v5 06/14] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: Add specific desc functions. v4: No changes. v3: Several improvements: - Probe driver correctly. - Allocate size for priv struct. - Cosmetic fixes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split

[U-Boot] [PATCH v5 13/14] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm63268.dts

[U-Boot] [PATCH v5 11/14] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm6328.dts

[U-Boot] [PATCH v5 05/14] cmd: cpu: refactor to ensure devices are probed and improve code style

2017-04-23 Thread Álvaro Fernández Rojas
Use uclass_first_device and uclass_next_device in order to avoid exceptions for drivers that aren't probed when cpu ops are requested. Improve code style and fix indentations. Fix incorrect line break when cpu info is not available. Remove unneeded brackets. Signed-off-by: Álvaro Fernández Rojas

[U-Boot] [PATCH v5 08/14] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-23 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v4: No

[U-Boot] [PATCH v5 02/14] sysreset: add syscon-reboot driver

2017-04-23 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org

[U-Boot] [PATCH v5 10/14] MIPS: add BMIPS Huawei HG556a board

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: Add cfi-flash support. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile

[U-Boot] [PATCH v5 14/14] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arc

[U-Boot] [PATCH v5 12/14] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-23 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v5: No changes. v4: No changes. v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 +

Re: [U-Boot] [PATCH v2 02/14] sysreset: add syscon-reboot driver

2017-04-18 Thread Álvaro Fernández Rojas
,Álvaro. On Mon, Apr 17, 2017 at 7:46 PM +0200, "Simon Glass" <s...@chromium.org> wrote: Hi Alvaro, On 17 April 2017 at 11:38, Álvaro Fernández Rojas wrote: > > Hi Simon, > > El 16/04/2017 a las 21:34, Simon Glass escribió:

[U-Boot] [PATCH v3 2/3] u-boot.elf: fix entry symbol not found warning

2017-04-18 Thread Álvaro Fernández Rojas
LD gives the following warning when trying to process u-boot-elf.o warning: cannot find entry symbol __start; defaulting to 8001 Fix this by renaming _start to __start Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Introduce changes suggested by Daniel Schwi

[U-Boot] [PATCH v3 1/3] u-boot.elf: remove hard-coded arm64 flags

2017-04-18 Thread Álvaro Fernández Rojas
This is needed in order to allow building it for other archs. Move relocation comment to a better place. Remove no longer needed dts FIXME. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Introduce changes suggested by Daniel Schwierzeck: - Split patches. - Avoid bu

[U-Boot] [PATCH v3 0/3] u-boot.elf: support other archs

2017-04-18 Thread Álvaro Fernández Rojas
Provide an u-boot.elf binary for Broadcom MIPS platforms by re-using the already existing Makefile target for aarch64. This u-boot.elf binary should be used as a stage 2 loader until U-Boot can be replace the original Broadcom boot loader. Split patches from main BMIPS support. Álvaro Fernández

[U-Boot] [PATCH v3 3/3] MIPS: add support for generating u-boot.elf

2017-04-18 Thread Álvaro Fernández Rojas
Define PLATFORM_ELFFLAGS for MIPS in order to be able to generate u-boot.elf Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Introduce changes suggested by Daniel Schwierzeck: - Add new patch. arch/mips/config.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/arc

[U-Boot] [PATCH v3 05/15] serial: add serial driver for BCM6345

2017-04-18 Thread Álvaro Fernández Rojas
It is based on linux/drivers/tty/serial/bcm63xx_uart.c Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Several improvements: - Add missing register configurations based on CFE. - Replace tabs with whitespaces. - Cosmetic fixes. v2: Introduce changes suggested by

[U-Boot] [PATCH v3 07/15] cpu: add CPU driver for Broadcom MIPS SoCs

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Several improvements: - Probe driver correctly. - Allocate size for priv struct. - Cosmetic fixes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Get register base f

[U-Boot] [PATCH v3 08/15] ram: add RAM driver for Broadcom MIPS SoCs

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v3: Rename of_match to ids. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. drivers/ram/Makefile| 2 + drivers/ram/bmips

[U-Boot] [PATCH v3 11/15] MIPS: add BMIPS Huawei HG556a board

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Add cfi-flash support. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/huawei,hg55

[U-Boot] [PATCH v3 02/15] sysreset-uclass: ensure udevice is probed before requesting reset

2017-04-18 Thread Álvaro Fernández Rojas
This causes exceptions for drivers that aren't probed when reboot is requested. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: add new patch to ensure that the device is probed drivers/sysreset/sysreset-uclass.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/d

[U-Boot] [PATCH v3 01/15] cmd: cpu: fix NULL cpu feature prints

2017-04-18 Thread Álvaro Fernández Rojas
-1: cpu@1 BCM6358A1 ID = 1, freq = 300 MHz: L1 cache, MMU, Device ID Device ID 0x2a010 Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> Reviewed-by: Simon Glass <s...@chromium.org> --- v3: No changes. v2: Introduce changes suggest

[U-Boot] [PATCH v3 00/15] Add support for Broadcom MIPS SoCs

2017-04-18 Thread Álvaro Fernández Rojas
. Álvaro Fernández Rojas (15): cmd: cpu: fix NULL cpu feature prints sysreset-uclass: ensure udevice is probed before requesting reset sysreset: add syscon-reboot driver MIPS: allow using generic sysreset drivers serial: add serial driver for BCM6345 cmd: cpu: ensure udevice is probed

[U-Boot] [PATCH v3 03/15] sysreset: add syscon-reboot driver

2017-04-18 Thread Álvaro Fernández Rojas
Add a new sysreset driver based on linux/drivers/power/reset/syscon-reboot.c, which provides a generic driver for platforms that only require writing a mask to a regmap offset. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: Introduce changes suggested by Simon Glass:

[U-Boot] [PATCH v3 06/15] cmd: cpu: ensure udevice is probed before calling cpu ops

2017-04-18 Thread Álvaro Fernández Rojas
This causes exceptions for drivers that aren't probed when cpu ops are requested. Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: add new patch to ensure that device is probed. cmd/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/cmd/cpu.c b/cmd/cpu.c

[U-Boot] [PATCH v3 15/15] MIPS: add BMIPS Comtrend VR-3032u board

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,vr-3032u.dts

[U-Boot] [PATCH v3 14/15] MIPS: add support for Broadcom MIPS BCM63268 SoC family

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm63268.dtsi | 88 arch/mips/mach

[U-Boot] [PATCH v3 13/15] MIPS: add BMIPS Comtrend AR-5387un board

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: No changes. v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Remove DEBUG_UART from defconfig. arch/mips/dts/Makefile | 1 + arch/mips/dts/comtrend,ar-5387

Re: [U-Boot] [PATCH v3 02/15] sysreset-uclass: ensure udevice is probed before requesting reset

2017-04-18 Thread Álvaro Fernández Rojas
Hi Simon, El 19/04/2017 a las 2:13, Simon Glass escribió: > Hi Alvaro, > > On 18 April 2017 at 14:38, Álvaro Fernández Rojas <nolt...@gmail.com> wrote: >> This causes exceptions for drivers that aren't probed when reboot is >> requested. >> >> Sign

[U-Boot] [PATCH v3 09/15] MIPS: add initial infrastructure for Broadcom MIPS SoCs

2017-04-18 Thread Álvaro Fernández Rojas
CFE checks CPU Thread in a different way (using register $22): mfc0t1, C0_BCM_CONFIG, 3 # $22 li t2, CP0_CMT_TPID # (1 << 31) and t1, t2 bnezt1, 2f # if we are running on thread 1, skip init nop Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> ---

[U-Boot] [PATCH v3 12/15] MIPS: add support for Broadcom MIPS BCM6328 SoC family

2017-04-18 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas <nolt...@gmail.com> --- v3: no changes v2: Introduce changes suggested by Daniel Schwierzeck: - Split BMIPS support patches. - Add PERF_BASE to cpus. arch/mips/dts/brcm,bcm6328.dtsi | 88 + arch/mips/mach

  1   2   3   4   5   6   7   8   >