OSDN Git Service

hw/ssi: NPCM7xx Flash Interface Unit device model
authorHavard Skinnemoen <hskinnemoen@google.com>
Fri, 11 Sep 2020 05:20:57 +0000 (22:20 -0700)
committerPeter Maydell <peter.maydell@linaro.org>
Mon, 14 Sep 2020 13:24:59 +0000 (14:24 +0100)
commitb821242c7b3b174bbf7c01a19c93c4e52fedab5d
tree836833c9a3f007182c6896056517375fa2222ca0
parent1351f892467bd8d9655b43b8fbf10a8d08890612
hw/ssi: NPCM7xx Flash Interface Unit device model

This implements a device model for the NPCM7xx SPI flash controller.

Direct reads and writes, and user-mode transactions have been tested in
various modes. Protection features are not implemented yet.

All the FIU instances are available in the SoC's address space,
regardless of whether or not they're connected to actual flash chips.

Reviewed-by: Tyrone Ting <kfting@nuvoton.com>
Reviewed-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Tested-by: Alexander Bulekov <alxndr@bu.edu>
Signed-off-by: Havard Skinnemoen <hskinnemoen@google.com>
Message-id: 20200911052101.2602693-11-hskinnemoen@google.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/Kconfig
hw/arm/npcm7xx.c
hw/ssi/meson.build
hw/ssi/npcm7xx_fiu.c [new file with mode: 0644]
hw/ssi/trace-events
include/hw/arm/npcm7xx.h
include/hw/ssi/npcm7xx_fiu.h [new file with mode: 0644]