On Thu, Apr 07, 2022 at 11:15:55AM +0200, Oleksij Rempel wrote: > Add DSA based port multiplexing functionality for barebox. With this > framework we will be able to use different ports of as switch > separately. > > Signed-off-by: Oleksij Rempel <o.rempel@xxxxxxxxxxxxxx> > --- > drivers/net/Kconfig | 4 + > drivers/net/Makefile | 1 + > drivers/net/dsa.c | 460 +++++++++++++++++++++++++++++++++++++++++++ > include/dsa.h | 90 +++++++++ > 4 files changed, 555 insertions(+) > create mode 100644 drivers/net/dsa.c > create mode 100644 include/dsa.h > > diff --git a/drivers/net/Kconfig b/drivers/net/Kconfig > index 65c93bbe84..8d76fe66f2 100644 > --- a/drivers/net/Kconfig > +++ b/drivers/net/Kconfig > @@ -17,6 +17,10 @@ config HAS_MACB > config PHYLIB > bool > > +config DSA > + bool > + select PHYLIB Hm, DSA will likely depend on NET in one way or the other. This means DSA depends on other options and thus can't be selected by DSA client drivers. DSA should be actively selected by the user and the client drivers should depend on DSA rather than selecting it. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox