]> git.dujemihanovic.xyz Git - u-boot.git/commit
net, qe: add DM support for QE UEC ethernet
authorHeiko Schocher <hs@denx.de>
Thu, 6 Feb 2020 08:48:16 +0000 (09:48 +0100)
committerHeiko Schocher <hs@denx.de>
Thu, 17 Sep 2020 04:09:53 +0000 (06:09 +0200)
commit6e31c62a175ca24f74b89a684c82cbb4bf423f16
tree4f131f11de72bf8bc982c553a134c0b561614beb
parent5990b059516c233bf845ad510decd6a44ba9864b
net, qe: add DM support for QE UEC ethernet

add DM/DTS support for the UEC ethernet on QUICC Engine
Block.

Signed-off-by: Heiko Schocher <hs@denx.de>
Patch-cc: Mario Six <mario.six@gdsys.cc>
Patch-cc: Qiang Zhao <qiang.zhao@nxp.com>
Patch-cc: Holger Brunck <holger.brunck@hitachi-powergrids.com>
Patch-cc: Madalin Bucur <madalin.bucur@oss.nxp.com>

Series-changes: 3
- revert:
  commit "3374264df97b" ("drivers: net: qe: deselect QE when DM_ETH is enabled")
  as now qe works with DM and DM_ETH support.
- fix mailaddress from Holger

Series-changes: 2
- add comments from Qiang Zhao:
  - add device node documentation
  - I did not drop the dm_qe_uec_phy.c and use drivers/net/fsl_mdio.c
    because using drivers/net/fsl_mdio.c leads in none existent
    udevice mdio@3320
    instead boards with DM ETH support should use now this
    driver.
- remove RFC tag

Commit-notes:

- I let the old none DM based implementation in code
  so boards should work with old implementation.
  This Code should be removed if all boards are converted
  to DM/DTS.

- add the DM based qe uec driver under drivers/net/qe

- Therefore copied the files uccf.c uccf.h uec.h from
  drivers/qe. So there are a lot of Codingstyle problems
  currently. I fix them in next version if this RFC
  patch is OK or it needs some changes.

- The dm based driver code is now under drivers/net/qe/dm_qe_uec.c
  Used a lot of functions from drivers/qe/uec.c

- seperated the PHY specific code into seperate file
  drivers/net/qe/dm_qe_uec_phy.c

END
15 files changed:
doc/device-tree-bindings/soc/fsl/cpm_qe/qe/ucc.txt [new file with mode: 0644]
drivers/net/Kconfig
drivers/net/Makefile
drivers/net/qe/Kconfig [new file with mode: 0644]
drivers/net/qe/Makefile [new file with mode: 0644]
drivers/net/qe/dm_qe_uec.c [new file with mode: 0644]
drivers/net/qe/dm_qe_uec.h [new file with mode: 0644]
drivers/net/qe/dm_qe_uec_phy.c [new file with mode: 0644]
drivers/net/qe/uccf.c [new file with mode: 0644]
drivers/net/qe/uccf.h [new file with mode: 0644]
drivers/net/qe/uec.h [new file with mode: 0644]
drivers/qe/Kconfig
drivers/qe/uccf.c
drivers/qe/uec.c
drivers/qe/uec_phy.c