spi-nor: supporting FM25Q64AI3 spi nor flash

Change-Id: Ie3190b3bc897af26bfa9e0948b528f4d65bc6b70
This commit is contained in:
huzhen
2024-07-09 20:52:24 +08:00
committed by zhangmeng
parent 8da24c383c
commit 64ddeaabeb
4 changed files with 23 additions and 0 deletions

View File

@@ -17,6 +17,7 @@ spi-nor-objs += sst.o
spi-nor-objs += winbond.o
spi-nor-objs += xilinx.o
spi-nor-objs += xmc.o
spi-nor-objs += fmsh.o
spi-nor-$(CONFIG_DEBUG_FS) += debugfs.o
obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o

View File

@@ -2015,6 +2015,7 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
&spi_nor_winbond,
&spi_nor_xilinx,
&spi_nor_xmc,
&spi_nor_fmsh,
};
static const struct flash_info spi_nor_generic_flash = {

View File

@@ -647,6 +647,7 @@ extern const struct spi_nor_manufacturer spi_nor_sst;
extern const struct spi_nor_manufacturer spi_nor_winbond;
extern const struct spi_nor_manufacturer spi_nor_xilinx;
extern const struct spi_nor_manufacturer spi_nor_xmc;
extern const struct spi_nor_manufacturer spi_nor_fmsh;
extern const struct attribute_group *spi_nor_sysfs_groups[];

View File

@@ -0,0 +1,20 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2023, spacemit Corporation.
*/
#include <linux/mtd/spi-nor.h>
#include "core.h"
static const struct flash_info fmsh_nor_parts[] = {
{ "FM25Q64AI3", INFO(0xa14017, 0, 4 * 1024, 2048)
NO_SFDP_FLAGS(SECT_4K | SPI_NOR_QUAD_READ |
SPI_NOR_DUAL_READ) },
};
const struct spi_nor_manufacturer spi_nor_fmsh = {
.name = "fmsh",
.parts = fmsh_nor_parts,
.nparts = ARRAY_SIZE(fmsh_nor_parts),
};