[Skiboot] [RFC,PATCH 1/3] core/flash: Add flash API

Joel Stanley joel at jms.id.au
Mon Feb 9 12:01:14 AEDT 2015


On Fri, Feb 6, 2015 at 9:39 PM, Jeremy Kerr <jk at ozlabs.org> wrote:
> We'd like to enable access to the system PNOR, on platforms where its
> present. This change introduces an API for global flash operations:
>
>  opal_flash_read
>  opal_flash_erase
>  opal_flash_write

Looks good.

>
> - plus device-tree bindings to expose the flash details.
>
> Since there are other components of the system that use the PNOR (NVRAM
> and pnor_load_resource), upcoming changes will port this these over to
> use the new interface.
>
> Signed-off-by: Jeremy Kerr <jk at ozlabs.org>

Reviewed-by: Joel Stanley <joel at jms.id.au>

>
> ---
>  core/Makefile.inc                  |    2
>  core/flash.c                       |  220 +++++++++++++++++++++++++++++
>  doc/device-tree/ibm,opal/flash.txt |   35 ++++
>  include/opal.h                     |    5
>  include/skiboot.h                  |    6
>  5 files changed, 265 insertions(+), 3 deletions(-)


More information about the Skiboot mailing list