Re: [U-Boot] Tools build failure when libfdt-devel is installed

2018-03-03 Thread Masahiro Yamada
2018-03-03 6:19 GMT+09:00 Thomas Petazzoni : > Hello, > > I'm running a Fedora 27 system. When the libfdt-devel package is not > installed in the distro, U-Boot builds fine. When libfdt-devel is > installed, the build of U-Boot tools breaks badly, because it includes > headers from /usr/include/ fo

[U-Boot] [PATCH v2] sunxi: move CONFIG_SYS_TEXT_BASE out of defconfigs

2018-03-03 Thread Andre Przywara
Commit 278b90ce786f ("configs: Migrate CONFIG_SYS_TEXT_BASE") made CONFIG_SYS_TEXT_BASE a proper Kconfig variable, with the consequence of moving the common definition shared by almost every sunxi board into 123 individual defconfig files. But the U-Boot start address for Allwinner boards is a plat

Re: [U-Boot] [PATCH] scripts: use CROSS_COMPILE environment variable

2018-03-03 Thread Lukasz Majewski
Hi Stefan, > On 02.03.2018 17:33, Lukasz Majewski wrote: > > Hi Stefan, > > > >> From: Stefan Agner > >> > >> Make sure we use objcopy from the cross compiler toolchain. > >> > >> Signed-off-by: Stefan Agner > >> --- > >> scripts/get_default_envs.sh | 3 ++- > >> 1 file changed, 2 insertions

Re: [U-Boot] [PATCH] scripts: use CROSS_COMPILE environment variable

2018-03-03 Thread Stefan Agner
On 02.03.2018 17:33, Lukasz Majewski wrote: > Hi Stefan, > >> From: Stefan Agner >> >> Make sure we use objcopy from the cross compiler toolchain. >> >> Signed-off-by: Stefan Agner >> --- >> scripts/get_default_envs.sh | 3 ++- >> 1 file changed, 2 insertions(+), 1 deletion(-) >> >> diff --git

[U-Boot] [PATCH v3 13/13] configs: ls1012a: add pfe configuration for LS1012A

2018-03-03 Thread Calvin Johnson
Add configurations for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi --- Changes in v3: -Move PFE macros to Kconfig -Remove unused UTIL_PE_DISABLED config Changes in v2: -Moved SYS_LS_PFE_FW_ADDR from pfe Kconfig to board Kconfigs -Add "pfe stop" to ls1012a rdb, frdm

[U-Boot] [PATCH v3 10/13] armv8: fsl-lsch2: add pfe macros and update ccsr_scfg structure

2018-03-03 Thread Calvin Johnson
SoC specific PFE macros are defined and structure ccsr_scfg is updated with members defined for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi --- Changes in v3: -Use BIT macro wherever applicable Changes in v2: None .../include/asm/arch-fsl-layerscape/immap_lsch2.h

[U-Boot] [PATCH v3 12/13] armv8: layerscape: csu: enable ns access to PFE registers

2018-03-03 Thread Calvin Johnson
Enable all types of non-secure access to PFE block registers. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v3: None Changes in v2: -Improved commit message to provide more description arch/arm/include/asm/arch-fsl-layerscape/ns_

[U-Boot] [PATCH v3 06/13] board: freescale: ls1012aqds: enable network support on ls1012aqds

2018-03-03 Thread Calvin Johnson
This patch enables ethernet support for ls1012aqds. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi --- Changes in v3: -Update Kconfig -Update header file location to include/net/pfe_eth -Cosmetic changes Changes in v2: -split from original patch "board: freescale: ls1012a:

[U-Boot] [PATCH v3 11/13] armv8: fsl-lsch2: configure pfe's DDR and HDBUS interfaces and ECC

2018-03-03 Thread Calvin Johnson
1. Set AWCACHE0 attribute of PFE DDR and HDBUS master interfaces to bufferable. 2. Set RD/WR QoS for PFE DDR and HDBUS AXI master interfaces. 3. Disable ECC detection for PFE. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v3: -Cosm

[U-Boot] [PATCH v3 09/13] board: freescale: ls1012a2g5rdb: enable network support on ls1012a2g5rdb

2018-03-03 Thread Calvin Johnson
This patch enables ethernet support for ls1012a2g5rdb. Signed-off-by: Calvin Johnson Signed-off-by: Bhaskar Upadhaya --- Changes in v3: -Update Kconfig -Update header file location to include/net/pfe_eth -Prefix CONFIG_PFE_ to appropriate macros -Indent properly Changes in v2: -New patch adde

[U-Boot] [PATCH v3 07/13] board: freescale: ls1012afrdm: enable network support on ls1012afrdm

2018-03-03 Thread Calvin Johnson
This patch enables ethernet support for ls1012afrdm. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v3: -Update Kconfig -Update header file location to include/net/pfe_eth -Prefix CONFIG_PFE_ to appropriate macros Changes in v2: -s

[U-Boot] [PATCH v3 08/13] board: freescale: ls1012ardb: enable network support on ls1012ardb

2018-03-03 Thread Calvin Johnson
This patch enables ethernet support for ls1012ardb. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Hershberger --- Changes in v3: -Update Kconfig -Update header file location to include/net/pfe_eth Changes in v2: -split from original patch "board: freescale:

[U-Boot] [PATCH v3 05/13] drivers: net: pfe_eth: LS1012A PFE headers

2018-03-03 Thread Calvin Johnson
Contains all the pfe header files. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi --- Changes in v3: -Move pfe_eth header files to include/net/pfe_eth -Use BIT macro wherever applicable Changes in v2: -Add pfe_rx_done to clear bd after packet processing -remove unused code

[U-Boot] [PATCH v3 04/13] drivers: net: pfe_eth: provide pfe commands

2018-03-03 Thread Calvin Johnson
pfe_command provides command line support for several features that support pfe, like starting or stopping the pfe, checking the health of the processor engines and checking status of different units inside pfe. Signed-off-by: Calvin Johnson Signed-off-by: Anjaneyulu Jagarlmudi Acked-by: Joe Her

[U-Boot] [PATCH v3 02/13] armv8: fsl-layerscape: Add support of GPIO structure

2018-03-03 Thread Calvin Johnson
From: Prabhakar Kushwaha Layerscape Gen2 SoC supports GPIO registers to control GPIO signals. Adding support of GPIO structure to access GPIO registers. Signed-off-by: Pratiyush Srivastava Signed-off-by: Prabhakar Kushwaha Signed-off-by: Calvin Johnson Acked-by: Joe Hershberger --- Changes

[U-Boot] [PATCH v3 03/13] drivers: net: pfe_eth: LS1012A PFE driver introduction

2018-03-03 Thread Calvin Johnson
This patch adds PFE driver to U-Boot Following are the main driver files:- pfe_hw.c: provides low level helper functions to initialize PFE internal processor engines and other hardware blocks pfe_driver.c: provides initialization functions and packet send and receive functions pfe_eth.c: provides

[U-Boot] [PATCH v3 01/13] drivers: net: phy: Fix aquantia compilation with DM

2018-03-03 Thread Calvin Johnson
With CONFIG_DM_ETH enabled, aquantia driver compilation fails with below error. This patch fixes the issue by including dm.h. drivers/net/phy/aquantia.c: In function ‘aquantia_startup’: drivers/net/phy/aquantia.c:73:21: error: dereferencing pointer to incomplete type ‘struct udevice’ phy

[U-Boot] [PATCH v3 00/13] LS1012A PFE driver patch series

2018-03-03 Thread Calvin Johnson
This patch series introduces U-Boot support for NXP's LS1012A Packet Forwarding Engine (pfe_eth). LS1012A uses hardware packet forwarding engine to provide high performance Ethernet interfaces. The device includes two Ethernet ports. Changes in v3: -Update header location to include/net/pfe_eth

Re: [U-Boot] Question related to flash organisation

2018-03-03 Thread Wolfgang Denk
Dear Christophe, In message <20180303165059.a03cf240...@gemini.denx.de> I wrote: > > That used to be standard at the beginning of time, i. e. even when > this was still called PPCBoot... Check out any old version, and > look for example at the configuration of the TQM8xx boards; they all > used

Re: [U-Boot] Question related to flash organisation

2018-03-03 Thread Wolfgang Denk
Dear Christophe, In message <31268795-2370-e5b2-5326-a5e5c41ce...@c-s.fr> you wrote: > On my powerpc 8xx board, I have an AM29LV160DB boot flash which is > organised as follows: > - One 16kb block > - Two 8kb block > - One 32kb block > - Thirty one 64kb blocks > > At the time being, u-boot is a

Re: [U-Boot] [PATCH v2 07/10] powerpc: mpc8xx: get rid of get_immr()

2018-03-03 Thread Wolfgang Denk
Dear Christophe, In message <622b8aec162cc43e774bde5da990a61fc961b4d9.1519976944.git.christophe.le...@c-s.fr> you wrote: > Function get_immr() is almost not used and doesn't bring much > added value. Just replace it with mfspr(SPRN_IMMR) at the two > needed places. ... > static int check_CPU(lo

Re: [U-Boot] [PATCH 1/3] test/py: README: fix typo

2018-03-03 Thread Liam Beguin
On 1 March 2018 at 16:23, Stephen Warren wrote: > On 02/26/2018 09:17 PM, Liam Beguin wrote: >> >> fix a minor typo causing vim (and possibly other) to get confused with >> coloring. > > > Nit: s/fix/Fix/. Will fix > > Reviewed-by: Stephen Warren ___

Re: [U-Boot] [PATCH 3/3] test/py: add spi_flash tests

2018-03-03 Thread Liam Beguin
On 1 March 2018 at 16:56, Stephen Warren wrote: > On 02/26/2018 09:17 PM, Liam Beguin wrote: >> >> Add basic tests for the spi_flash subsystem. > > >> diff --git a/test/py/tests/test_sf.py b/test/py/tests/test_sf.py > > >> +import re >> +import pytest >> +import u_boot_utils >> + >> + > > > Nit: D

[U-Boot] [PATCH 1/1] efi_loader: Initial EFI_DEVICE_PATH_UTILITIES_PROTOCOL

2018-03-03 Thread Heinrich Schuchardt
From: Leif Lindholm Not complete, but enough for Shell.efi and SCT.efi. We'll implement the rest as needed or once we have SCT running properly so there is a way to validate the interface against the conformance test suite. Initial skeleton written by Leif, and then implementation by Rob. Reba

[U-Boot] [PATCH 1/1] efi_loader: efi_allocate_pages is too restrictive

2018-03-03 Thread Heinrich Schuchardt
When running on the sandbox the stack is not necessarily at a higher memory address than the highest free memory. There is no reason why the checking of the highest memory address should be more restrictive for EFI_ALLOCATE_ANY_PAGES than for EFI_ALLOCATE_MAX_ADDRESS. Signed-off-by: Heinrich Schu

[U-Boot] [PATCH 1/1] efi_loader: remove deprecated ConsoleControlProtocol

2018-03-03 Thread Heinrich Schuchardt
The console control protocol is not defined in the UEFI standard. It exists in EDK2's EdkCompatiblityPkg package. But this package is deprecated according to https://github.com/tianocore/tianocore.github.io/wiki/Differences-between-EDK-and-EDK-II Signed-off-by: Heinrich Schuchardt --- include/e

[U-Boot] [PATCH 1/1] efi_selftest: unit test for EFI_SIMPLE_TEXT_INPUT_PROTOCOL

2018-03-03 Thread Heinrich Schuchardt
Provide a unit test for the EFI_SIMPLE_TEXT_INPUT_PROTOCOL. The unicode character and the scan code are printed for text input. To run the test: setenv efi_selftest text input bootefi selftest Signed-off-by: Heinrich Schuchardt --- lib/efi_selftest/Makefile |

[U-Boot] [PATCH v3 01/11] efi_loader: efi_smbios_register should have a return value

2018-03-03 Thread Heinrich Schuchardt
Errors may occur inside efi_smbios_register(). - Return a status code. - Remove unused variables. - Use constants where applicable. Suggested-by: Simon Glass Signed-off-by: Heinrich Schuchardt --- v3 no change v2 remove a change in unrelated code resent with this patch s

[U-Boot] [PATCH v3 00/11] efi_loader: error handling cmd/bootefi.c

2018-03-03 Thread Heinrich Schuchardt
This patch series is focused on providing error checking during the initialization of the EFI subsystem. If any of the registrations routines fails bootefi is not executed. As currently the registration attempt cannot be unroled any further bootefi call will fail. Passing a devicetree to bootefi

[U-Boot] [PATCH v3 11/11] efi_selftest: check installation of the device tree

2018-03-03 Thread Heinrich Schuchardt
The unit test checks if a device tree is installed. It requires that the 'compatible' property of the root node exists. If available it prints the 'serial-number' property. The serial-number property is derived from the environment variable 'serial#'. This can be used to check if the image_setup_l

[U-Boot] [PATCH v3 09/11] efi_loader: check initialization of EFI subsystem is successful

2018-03-03 Thread Heinrich Schuchardt
Up to now errors in the initialization of the EFI subsystems was not checked. If any initialization fails, leave the bootefi command. We do not retry initialization because this would require to undo all prior initalization steps. Suggested-by: Simon Glass Signed-off-by: Heinrich Schuchardt --

[U-Boot] [PATCH v3 10/11] efi_loader: support device tree for bootefi selftest

2018-03-03 Thread Heinrich Schuchardt
The second argument of the bootefi command should always be usable to specify a device tree. This was missing for bootefi selftest and bootefi hello. Proper error handling is added. Signed-off-by: Heinrich Schuchardt --- v3 Mention fdt address as argument in online help of bootefi selfte

[U-Boot] [PATCH v3 02/11] efi_loader: return efi_status_t from efi_gop_register

2018-03-03 Thread Heinrich Schuchardt
All initialization routines should return a status code instead of a boolean. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 new patch --- include/efi_loader.h | 2 +- lib/efi_loader/efi_gop.c | 34 ++ 2 files changed, 23 insertions(+)

[U-Boot] [PATCH v3 04/11] efi_loader: consistently return efi_status_t efi_watchdog_register

2018-03-03 Thread Heinrich Schuchardt
efi_watchdog_register() should always return a status code and not a boolean value. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 new patch --- include/efi_loader.h | 2 +- lib/efi_loader/efi_watchdog.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-)

[U-Boot] [PATCH v3 08/11] efi_loader: do_bootefi_exec should always return an EFI status code

2018-03-03 Thread Heinrich Schuchardt
The return type of do_bootefi_exec() is efi_status_t. So in case of an error we should always return an EFI status code. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 no change, patch resent --- cmd/bootefi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) dif

[U-Boot] [PATCH v3 03/11] efi_loader: return efi_status_t from efi_net_register

2018-03-03 Thread Heinrich Schuchardt
Consistently return status codes form efi_net_register(). Signed-off-by: Heinrich Schuchardt --- v3 no change v2 new patch --- include/efi_loader.h | 2 +- lib/efi_loader/efi_net.c | 24 +--- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git

[U-Boot] [PATCH v3 07/11] efi_loader: efi_get_time_init should return status code

2018-03-03 Thread Heinrich Schuchardt
All EFI initialization functions should return a status code. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 new patch --- include/efi_loader.h | 2 +- lib/efi_loader/efi_runtime.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/include/efi

[U-Boot] [PATCH v3 05/11] efi_loader: simplify calling efi_init_obj_list

2018-03-03 Thread Heinrich Schuchardt
efi_init_obj_list() should be executed only once. Rather than having the caller check this variable and the callee set it, move all access to the variable inside the function. This reduces the logic needed to call efi_init_obj_list(). Suggested-by: Simon Glass Signed-off-by: Heinrich Schuchardt

[U-Boot] [PATCH v3 06/11] efi_loader: exit status for efi_reset_system_init

2018-03-03 Thread Heinrich Schuchardt
efi_reset_system_init provides the architecture or board specific initialization of the EFI subsystem. Errors should be caught and signalled by a return code. Signed-off-by: Heinrich Schuchardt --- v3 no change v2 new patch --- arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 4 ++-- a

Re: [U-Boot] Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown-block (1, 0)

2018-03-03 Thread Zoran S
Hello Stefano, This, what you wrote here is very correct assumption. CONFIG_BLK_DEV_INITRD=y <<= To have Block device initramfs/rootfs CONFIG_RD_GZIP=y <<= To have initramfs/rootfs in .gz format CONFIG_RD_BZIP2=y <<= To have initramfs/rootfs in .bz2 format CONFIG_RD_LZMA=y <<==

[U-Boot] Tools build failure when libfdt-devel is installed

2018-03-03 Thread Thomas Petazzoni
Hello, I'm running a Fedora 27 system. When the libfdt-devel package is not installed in the distro, U-Boot builds fine. When libfdt-devel is installed, the build of U-Boot tools breaks badly, because it includes headers from /usr/include/ for libfdt, instead of using only its own internal headers

Re: [U-Boot] [PATCH v2 05/10] video: add MIPI DSI host controller bridge

2018-03-03 Thread Brian Norris
On Fri, Mar 02, 2018 at 10:57:59AM -0800, Brian Norris wrote: > Hi, > > On Fri, Mar 02, 2018 at 04:44:06PM +0100, yannick fertre wrote: > > Add a Synopsys Designware MIPI DSI host bridge driver, based on the > > Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. > > How many tim

Re: [U-Boot] [PATCH v2 05/10] video: add MIPI DSI host controller bridge

2018-03-03 Thread Brian Norris
Hi, On Fri, Mar 02, 2018 at 04:44:06PM +0100, yannick fertre wrote: > Add a Synopsys Designware MIPI DSI host bridge driver, based on the > Rockchip version from rockchip/dw-mipi-dsi.c with phy & bridge APIs. How many times are we going to allow copy-and-pasting the same driver? Last time we want

Re: [U-Boot] Kernel panic - not syncing: VFS: Unable to mount rootfs on unknown-block (1, 0)

2018-03-03 Thread Stefano Babic
Hi Zoran, On 03/03/2018 08:18, Zoran S wrote: > Hello Stefano, > > This, what you wrote here is very correct assumption. > > CONFIG_BLK_DEV_INITRD=y <<= To have Block device initramfs/rootfs > CONFIG_RD_GZIP=y <<= To have initramfs/rootfs in .gz format > CONFIG_RD_BZIP2=y <<= To hav

[U-Boot] [PATCH 1/1] sunxi: video: mark framebuffer as EFI reserved memory

2018-03-03 Thread Heinrich Schuchardt
Inform the EFI subsystem that the framebuffer memory is reserved. Without the patch the AllocatePool boot service allocates memory from the framebuffer which will will be overwritten by screen output. Signed-off-by: Heinrich Schuchardt --- drivers/video/sunxi/sunxi_display.c | 8 1 fil

Re: [U-Boot] [RFC v3 03/15] dma: add bcm6348-iudma support

2018-03-03 Thread Álvaro Fernández Rojas
Hi Grygorii, El 23/02/2018 a las 17:57, Grygorii Strashko escribió: Hi thanks for your comments. On 02/22/2018 02:48 PM, Álvaro Fernández Rojas wrote: El 22/02/2018 a las 20:50, Grygorii Strashko escribió: On 02/21/2018 10:10 AM, Álvaro Fernández Rojas wrote: BCM6348 IUDMA controller is pre

[U-Boot] [RFC v4 05/15] bmips: bcm6348: add bcm6348-iudma support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6348.dtsi | 16 include/dt-bindings/dma/bcm6348-dma.h | 17 + 2 files changed, 33 insertions(+) create mode 100644 include/dt-bindings/dma/bcm63

[U-Boot] [RFC v4 13/15] bmips: bcm6358: add support for bcm6348-enet

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6358.dtsi | 28 1 file changed, 28 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6358.dtsi b/arch/mips/dts/brcm,bcm6358.dtsi index 1468e4f63a..04329864

[U-Boot] [RFC v4 06/15] bmips: bcm6358: add bcm6348-iudma support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6358.dtsi | 18 ++ include/dt-bindings/dma/bcm6358-dma.h | 17 + 2 files changed, 35 insertions(+) create mode 100644 include/dt-bindings/dma/bcm

[U-Boot] [RFC v4 09/15] bmips: bcm6338: add support for bcm6348-enet

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6338.dtsi | 15 +++ 1 file changed, 15 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6338.dtsi b/arch/mips/dts/brcm,bcm6338.dtsi index 4125f71d9f..621278c9d1 100644 ---

[U-Boot] [RFC v4 10/15] bmips: enable f@st1704 enet support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/sagem,f...@st1704.dts | 12 configs/sagem_f@st1704_ram_defconfig | 9 - 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/sagem,f...@st1704

[U-Boot] [RFC v4 15/15] bmips: enable nb4-ser enet support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/sfr,nb4-ser.dts | 24 configs/sfr_nb4-ser_ram_defconfig | 8 +++- 2 files changed, 31 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/sfr,nb4-ser.dts

[U-Boot] [RFC v4 12/15] bmips: enable ct-5361 enet support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/comtrend,ct-5361.dts| 12 configs/comtrend_ct5361_ram_defconfig | 8 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/comtrend,ct-5361.dt

[U-Boot] [RFC v4 08/15] net: add support for bcm6348-enet

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: Fix issues reported by Grygorii Strashko and other fixes: - Copy received dma buffer to net_rx_packets in order to avoid possible dma overwrites. - Reset dma rx channel when sending a new packet to prevent flow control issues. - Fix packet c

[U-Boot] [RFC v4 14/15] bmips: enable hg556a enet support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/huawei,hg556a.dts | 12 configs/huawei_hg556a_ram_defconfig | 8 +++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/arch/mips/dts/huawei,hg556a.dts b/arc

[U-Boot] [RFC v4 11/15] bmips: bcm6348: add support for bcm6348-enet

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6348.dtsi | 26 ++ 1 file changed, 26 insertions(+) diff --git a/arch/mips/dts/brcm,bcm6348.dtsi b/arch/mips/dts/brcm,bcm6348.dtsi index d774c59665..e540865019

[U-Boot] [RFC v4 03/15] dma: add bcm6348-iudma support

2018-03-03 Thread Álvaro Fernández Rojas
BCM6348 IUDMA controller is present on multiple BMIPS (BCM63xx) SoCs. Signed-off-by: Álvaro Fernández Rojas --- v4: Fix issues reported by Grygorii Strashko and other fixes: - Remove usage of net_rx_packets as buffer. - Allocate dynamic rx buffer. - Check dma errors and discard invalid pac

[U-Boot] [RFC v4 07/15] phy: add support for internal phys

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes include/phy.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/phy.h b/include/phy.h index 0543ec10c2..8f3e53db01 100644 --- a/include/phy.h +++ b/include/phy.h @@ -50,6 +50,7 @@ typedef e

[U-Boot] [RFC v4 02/15] dma: add channels support

2018-03-03 Thread Álvaro Fernández Rojas
This adds channels support for dma controllers that have multiple channels which can transfer data to/from different devices (enet, usb...). Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: no changes v3: Introduce changes reported by Simon Glass: - Improve dma-uclass.h

[U-Boot] [RFC v4 04/15] bmips: bcm6338: add bcm6348-iudma support

2018-03-03 Thread Álvaro Fernández Rojas
Signed-off-by: Álvaro Fernández Rojas --- v4: no changes v3: no changes v2: no changes arch/mips/dts/brcm,bcm6338.dtsi | 14 ++ include/dt-bindings/dma/bcm6338-dma.h | 15 +++ 2 files changed, 29 insertions(+) create mode 100644 include/dt-bindings/dma/bcm6338-d

[U-Boot] [RFC v4 01/15] dma: move dma_ops to dma-uclass.h

2018-03-03 Thread Álvaro Fernández Rojas
Move dma_ops to a separate header file, following other uclass implementations. While doing so, this patch also improves dma_ops documentation. Signed-off-by: Álvaro Fernández Rojas Reviewed-by: Simon Glass --- v4: no changes v3: Introduce changes reported by Simon Glass: - Improve dma-uclas

[U-Boot] [RFC v4 00/15] bmips: add bcm6348-enet support

2018-03-03 Thread Álvaro Fernández Rojas
In order to add bcm6348-enet support, dma-uclass must be extended to support dma channels and reworked to operate like the other dm uclass (clk, reset...). This is a RFC, so please give you feedback on the things that I should fix or rework. v4: Fix issues reported by Grygorii Strashko and other