From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kevin Hilman Date: Fri, 18 Sep 2020 10:59:15 -0700 Subject: [PATCH 4/4] board: amlogic: vim3: add support for dynamic PCIe enable In-Reply-To: <20200918092902.28028-5-narmstrong@baylibre.com> References: <20200918092902.28028-1-narmstrong@baylibre.com> <20200918092902.28028-5-narmstrong@baylibre.com> Message-ID: <7h4knvdkzw.fsf@baylibre.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Neil Armstrong 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 > --- > 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 > #include > #include > +#include > +#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