]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
powerpc/powernv: Add OPAL flash device driver
authorjhibbits <jhibbits@FreeBSD.org>
Fri, 1 Mar 2019 04:36:55 +0000 (04:36 +0000)
committerjhibbits <jhibbits@FreeBSD.org>
Fri, 1 Mar 2019 04:36:55 +0000 (04:36 +0000)
commitcc6e8de07ed691b1fa19efe7f8d4d6f939451f27
tree78fb554a8eb92c34cc2240b4aec4724a3def0de8
parentadcb46df81b77045d83d9d7e304ac1435e3c3fcc
powerpc/powernv: Add OPAL flash device driver

Firmware needed by petitboot, for example, GPU firmware, can be installed to
a partition in the flash filesystem.  This driver exposes the full flash
given by the device tree, letting the user manage firmware, etc, from
FreeBSD.

To use the partitions provided by the flash module, the fdt_slicer module is
needed, but the module isn't needed for raw access, so there's no direct
dependency link in here.

MFC after: 2 weeks
sys/conf/files.powerpc
sys/powerpc/powernv/opal.h
sys/powerpc/powernv/opal_flash.c [new file with mode: 0644]