mtd: spi-nor: fmsh: Add code
Change-Id: I8d95f3535c841a9829228eed1d213afda19ef0e6 Signed-off-by: Jon Lin <jon.lin@rock-chips.com>
This commit is contained in:
@@ -6,6 +6,7 @@ spi-nor-objs += catalyst.o
|
||||
spi-nor-objs += eon.o
|
||||
spi-nor-objs += esmt.o
|
||||
spi-nor-objs += everspin.o
|
||||
spi-nor-objs += fmsh.o
|
||||
spi-nor-objs += fujitsu.o
|
||||
spi-nor-objs += gigadevice.o
|
||||
spi-nor-objs += intel.o
|
||||
|
||||
@@ -2014,6 +2014,7 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
|
||||
&spi_nor_eon,
|
||||
&spi_nor_esmt,
|
||||
&spi_nor_everspin,
|
||||
&spi_nor_fmsh,
|
||||
&spi_nor_fujitsu,
|
||||
&spi_nor_gigadevice,
|
||||
&spi_nor_intel,
|
||||
|
||||
@@ -386,6 +386,7 @@ extern const struct spi_nor_manufacturer spi_nor_catalyst;
|
||||
extern const struct spi_nor_manufacturer spi_nor_eon;
|
||||
extern const struct spi_nor_manufacturer spi_nor_esmt;
|
||||
extern const struct spi_nor_manufacturer spi_nor_everspin;
|
||||
extern const struct spi_nor_manufacturer spi_nor_fmsh;
|
||||
extern const struct spi_nor_manufacturer spi_nor_fujitsu;
|
||||
extern const struct spi_nor_manufacturer spi_nor_gigadevice;
|
||||
extern const struct spi_nor_manufacturer spi_nor_intel;
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
// SPDX-License-Identifier: GPL-2.0
|
||||
/*
|
||||
* Copyright (c) 2022 Rockchip Electronics Co., Ltd.
|
||||
*/
|
||||
|
||||
#include <linux/mtd/spi-nor.h>
|
||||
|
||||
#include "core.h"
|
||||
|
||||
static const struct flash_info fmsh_parts[] = {
|
||||
{ "FM25Q64A", INFO(0xA14017, 0, 64 * 1024, 128,
|
||||
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
||||
{ "FM25Q128A", INFO(0xA14018, 0, 64 * 1024, 256,
|
||||
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ) },
|
||||
};
|
||||
|
||||
const struct spi_nor_manufacturer spi_nor_fmsh = {
|
||||
.name = "fmsh",
|
||||
.parts = fmsh_parts,
|
||||
.nparts = ARRAY_SIZE(fmsh_parts),
|
||||
};
|
||||
Reference in New Issue
Block a user