mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-31 14:23:53 -06:00

The nand.c device (TYPE_NAND) is an emulation of a NAND flash memory chip which was used by the old OMAP boards. No current QEMU board uses it, and although techically "-device nand,chip-id=0x6b" doesn't error out, it's not possible to usefully use it from the command line because the only interface it has is via calling C functions like nand_setpins() and nand_setio(). The "config OMAP" stanza (used only by the SX1 board) is the only thing that does "select NAND" to compile in this code, but the SX1 board doesn't actually use the NAND device. Remove the NAND device code entirely; this is effectively leftover cleanup from when we dropped the PXA boards and the OMAP boards other than the sx1. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20250522142859.3122389-1-peter.maydell@linaro.org
53 lines
1.7 KiB
C
53 lines
1.7 KiB
C
#ifndef HW_FLASH_H
|
|
#define HW_FLASH_H
|
|
|
|
/* NOR flash devices */
|
|
|
|
#include "exec/hwaddr.h"
|
|
#include "qom/object.h"
|
|
|
|
/* pflash_cfi01.c */
|
|
|
|
#define TYPE_PFLASH_CFI01 "cfi.pflash01"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI01, PFLASH_CFI01)
|
|
|
|
|
|
PFlashCFI01 *pflash_cfi01_register(hwaddr base,
|
|
const char *name,
|
|
hwaddr size,
|
|
BlockBackend *blk,
|
|
uint32_t sector_len,
|
|
int width,
|
|
uint16_t id0, uint16_t id1,
|
|
uint16_t id2, uint16_t id3,
|
|
int be);
|
|
BlockBackend *pflash_cfi01_get_blk(PFlashCFI01 *fl);
|
|
MemoryRegion *pflash_cfi01_get_memory(PFlashCFI01 *fl);
|
|
void pflash_cfi01_legacy_drive(PFlashCFI01 *dev, DriveInfo *dinfo);
|
|
|
|
/* pflash_cfi02.c */
|
|
|
|
#define TYPE_PFLASH_CFI02 "cfi.pflash02"
|
|
OBJECT_DECLARE_SIMPLE_TYPE(PFlashCFI02, PFLASH_CFI02)
|
|
|
|
|
|
PFlashCFI02 *pflash_cfi02_register(hwaddr base,
|
|
const char *name,
|
|
hwaddr size,
|
|
BlockBackend *blk,
|
|
uint32_t sector_len,
|
|
int nb_mappings,
|
|
int width,
|
|
uint16_t id0, uint16_t id1,
|
|
uint16_t id2, uint16_t id3,
|
|
uint16_t unlock_addr0,
|
|
uint16_t unlock_addr1,
|
|
int be);
|
|
|
|
/* m25p80.c */
|
|
|
|
#define TYPE_M25P80 "m25p80-generic"
|
|
|
|
BlockBackend *m25p80_get_blk(DeviceState *dev);
|
|
|
|
#endif
|