[RFC PATCH] net, qe: add DM support for QE UEC ethernet

Qiang Zhao qiang.zhao at nxp.com
Thu Apr 9 10:00:45 CEST 2020


On 2020/4/9 13:20, Heiko Schocher <hs at denx.de> wrote:


> -----Original Message-----
> From: Heiko Schocher <hs at denx.de>
> Sent: 2020年4月9日 13:19
> To: Priyanka Jain <priyanka.jain at nxp.com>
> Cc: U-Boot Mailing List <u-boot at lists.denx.de>; Holger Brunck
> <holger.brunck at ch.abb.com>; Joe Hershberger <joe.hershberger at ni.com>;
> Mario Six <mario.six at gdsys.cc>; Qiang Zhao <qiang.zhao at nxp.com>
> Subject: Re: [RFC PATCH] net, qe: add DM support for QE UEC ethernet
> 
> Hello Priyanka,
> 
> Am 18.02.2020 um 10:05 schrieb Heiko Schocher:
> > add DM/DTS suppor for the UEC ethernet on QUICC Engine Block.
> >
> > Signed-off-by: Heiko Schocher <hs at denx.de>
> > ---
> > Travis build:
> >
> > https://eur01.safelinks.protection.outlook.com/?url=https%3A%2F%2Ftrav
> >
> is-ci.org%2Fhsdenx%2Fu-boot-test%2Fbuilds%2F651400509&data=02%7C
> 01
> > %7Cqiang.zhao%40nxp.com%7C51477945d03e4b72383708d7dc458e7e%7C
> 686ea1d3b
> >
> c2b4c6fa92cd99c5c301635%7C0%7C0%7C637220063612830833&sdata
> =MALxWjN
> > kO0lgq1b0gmk646eEI8HWZUXRqTHt6zaOQPk%3D&reserved=0
> >
> > - 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

There are so much duplicated codes.
And what the dts node looks like?
Could you please give an example?

> >
> >
> >   drivers/net/Kconfig            |    2 +
> >   drivers/net/Makefile           |    1 +
> >   drivers/net/qe/Kconfig         |    9 +
> >   drivers/net/qe/Makefile        |    5 +
> >   drivers/net/qe/dm_qe_uec.c     | 1161
> ++++++++++++++++++++++++++++++++
> >   drivers/net/qe/dm_qe_uec.h     |   22 +
> >   drivers/net/qe/dm_qe_uec_phy.c |  161 +++++
> >   drivers/net/qe/uccf.c          |  388 +++++++++++
> >   drivers/net/qe/uccf.h          |  117 ++++
> >   drivers/net/qe/uec.h           |  742 ++++++++++++++++++++
> >   drivers/qe/uccf.c              |    2 +
> >   drivers/qe/uec.c               |    2 +
> >   drivers/qe/uec_phy.c           |    3 +
> >   13 files changed, 2615 insertions(+)
> >   create mode 100644 drivers/net/qe/Kconfig
> >   create mode 100644 drivers/net/qe/Makefile
> >   create mode 100644 drivers/net/qe/dm_qe_uec.c
> >   create mode 100644 drivers/net/qe/dm_qe_uec.h
> >   create mode 100644 drivers/net/qe/dm_qe_uec_phy.c
> >   create mode 100644 drivers/net/qe/uccf.c
> >   create mode 100644 drivers/net/qe/uccf.h
> >   create mode 100644 drivers/net/qe/uec.h
> 
> Any comments?
> 
> Thanks!
> 
> bye,
> Heiko
> --
> DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de
Best Regards
Qiang Zhao


More information about the U-Boot mailing list