[PATCH v6 7/7] platform: generic: eswin: Add shutdown/reboot support for Hifive Premier P550
Bo Gan
ganboing at gmail.com
Sat Dec 20 22:49:28 PST 2025
I just found I made a typo.
On 12/18/25 02:42, Bo Gan wrote:
> Hifive Premier P550[1] is a Mini-DTX form factor board with EIC7700X.
> It has a STM32F407VET6 onboard MCU acting as the BMC, controlling
> ATX power on/off while providing remote management features. The
> EIC7700X SoC/SoM communicates with the BMC via UART2, using ESWIN's
> protocol. The messages transmitted are fixed sizes (267 bytes), and
> depending on the type, can be directional or bi-directional. The
> shutdown and cold reboot requests are directional messages from SoC
> to BMC (NOTIFY type) with CMD_POWER_OFF or CMD_RESTART. The payload
> of shutdown/cold reboot requests should be empty and are ignored by
> the BMC at the moment. A HFP (Hifive Premier) specific reset device
> is registered in addition to the SoC reset device. For shutdown and
> cold reboot, the board-level reset takes precedence.
>
> The definitions of the SoC <-> BMC message protocol is taken from
> ESWIN's repo [2]. The only file used from that repo is `hf_common.h`
> It's disjunctively dual licensed as (GPL-2.0-only OR BSD-2-Clause),
> hence, compatible with the license of OpenSBI. It's heavily modified
> and renamed as platform/generic/include/eswin/hfp.h. The author and
> copyright in the original file are retained.
>
> Validated shutdown/core reboot working on Hifive Premier P550.
core reboot -> cold reboot.
@Anup Would you mind help me fix it when merging? Or I'll fix it in v7
and later if there's any comment I need to address. Thanks!
Bo
More information about the opensbi
mailing list