How to switch pcie/ocp Nics for ncsi

John Wang wangzq.jn at gmail.com
Tue Jul 23 16:49:29 AEST 2019


Hi,all

FP5280G2 BMC MAC0 is for NCSI, and there is a
separated GPIO to select the NCSI to connect to PCIe or OCP

                                        -->PCIE
mac0-->mux(TS3L501)
                      ^                 -->OCP
                      |
               GPIOH7

I want to switch pcie/ocp NICs and preserve the state bewteen
BMC reboots and AC cycles.

My solutions is:

use gpio-hog, and dynamically modify the dts file in userspace.
But maybe it is a bad choice.

are there any good suggestions?

Thanks.


John


More information about the openbmc mailing list