From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?=C3=81lvaro=20Fern=C3=A1ndez=20Rojas?= Date: Wed, 21 Feb 2018 17:10:25 +0100 Subject: [U-Boot] [RFC v3 00/15] bmips: add bcm6348-enet support In-Reply-To: <20180212163858.25601-1-noltari@gmail.com> References: <20180212163858.25601-1-noltari@gmail.com> Message-ID: <20180221161040.22246-1-noltari@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: u-boot@lists.denx.de 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. v3: Introduce changes reported by Simon Glass: - Improve dma-uclass.h documentation. - Switch to live tree API. v2: Introduce changes reported by Vignesh: - Respect current dma implementation. - Let dma_memcpy find a compatible dma device. Other changes: - Fix bcm6348-iudma rx burst config. Álvaro Fernández Rojas (15): dma: move dma_ops to dma-uclass.h dma: add channels support dma: add bcm6348-iudma support bmips: bcm6338: add bcm6348-iudma support bmips: bcm6348: add bcm6348-iudma support bmips: bcm6358: add bcm6348-iudma support phy: add support for internal phys net: add support for bcm6348-enet bmips: bcm6338: add support for bcm6348-enet bmips: enable f at st1704 enet support bmips: bcm6348: add support for bcm6348-enet bmips: enable ct-5361 enet support bmips: bcm6358: add support for bcm6348-enet bmips: enable hg556a enet support bmips: enable nb4-ser enet support arch/mips/dts/brcm,bcm6338.dtsi | 29 ++ arch/mips/dts/brcm,bcm6348.dtsi | 42 +++ arch/mips/dts/brcm,bcm6358.dtsi | 46 +++ arch/mips/dts/comtrend,ct-5361.dts | 12 + arch/mips/dts/huawei,hg556a.dts | 12 + arch/mips/dts/sagem,f at st1704.dts | 12 + arch/mips/dts/sfr,nb4-ser.dts | 24 ++ configs/comtrend_ct5361_ram_defconfig | 8 +- configs/huawei_hg556a_ram_defconfig | 8 +- configs/sagem_f at st1704_ram_defconfig | 9 +- configs/sfr_nb4-ser_ram_defconfig | 8 +- drivers/dma/Kconfig | 16 ++ drivers/dma/Makefile | 1 + drivers/dma/bcm6348-iudma.c | 505 +++++++++++++++++++++++++++++++++ drivers/dma/dma-uclass.c | 191 ++++++++++++- drivers/net/Kconfig | 10 + drivers/net/Makefile | 1 + drivers/net/bcm6348-eth.c | 517 ++++++++++++++++++++++++++++++++++ include/configs/bmips_common.h | 5 +- include/dma-uclass.h | 117 ++++++++ include/dma.h | 196 +++++++++++-- include/dt-bindings/dma/bcm6338-dma.h | 15 + include/dt-bindings/dma/bcm6348-dma.h | 17 ++ include/dt-bindings/dma/bcm6358-dma.h | 17 ++ include/phy.h | 2 + 25 files changed, 1784 insertions(+), 36 deletions(-) create mode 100644 drivers/dma/bcm6348-iudma.c create mode 100644 drivers/net/bcm6348-eth.c create mode 100644 include/dma-uclass.h create mode 100644 include/dt-bindings/dma/bcm6338-dma.h create mode 100644 include/dt-bindings/dma/bcm6348-dma.h create mode 100644 include/dt-bindings/dma/bcm6358-dma.h -- 2.11.0