Neil Armstrong <narmstr...@baylibre.com> writes: > The VIM3 on-board MCU can mux the PCIe/USB3.0 shared differential > lines using a FUSB340TMX USB 3.1 SuperSpeed Data Switch between > an USB3.0 Type A connector and a M.2 Key M slot. > The PHY driving these differential lines is shared between > the USB3.0 controller and the PCIe Controller, thus only > a single controller can use it. > > This adds this dynamic switching right before booting Linux. > > Signed-off-by: Neil Armstrong <narmstr...@baylibre.com> > --- > board/amlogic/vim3/vim3.c | 116 +++++++++++++++++++++++++++++++++ > configs/khadas-vim3_defconfig | 3 + > configs/khadas-vim3l_defconfig | 3 + > 3 files changed, 122 insertions(+) > > diff --git a/board/amlogic/vim3/vim3.c b/board/amlogic/vim3/vim3.c > index 02d8cd0ce0..cf730fa0d1 100644 > --- a/board/amlogic/vim3/vim3.c > +++ b/board/amlogic/vim3/vim3.c > @@ -11,6 +11,122 @@ > #include <net.h> > #include <asm/io.h> > #include <asm/arch/eth.h> > +#include <i2c.h> > +#include "khadas-mcu.h"
This file doesn't exist in this series, so it doesn't compile. Copying it from Linux, it compiles and works fine. Kevin