Skip to content
Permalink
Browse files
mtd: spi-nor: Add support for ZB25VQ128
Add support for the ZBIT ZB25VQ128 128MBit SPI NOR
flash.

Link: http://www.cipatelje.eu/pdf/ZB25VQ128.pdf
Signed-off-by: Daniel Palmer <daniel@0x0f.com>
  • Loading branch information
fifteenhex committed Jan 12, 2022
1 parent 40e14e9 commit 9994994d1139138f2b0ce3ffbaec1c3d1471c7e2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
@@ -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 += zbit.o
obj-$(CONFIG_MTD_SPI_NOR) += spi-nor.o

obj-$(CONFIG_MTD_SPI_NOR) += controllers/
@@ -1846,6 +1846,7 @@ static const struct spi_nor_manufacturer *manufacturers[] = {
&spi_nor_winbond,
&spi_nor_xilinx,
&spi_nor_xmc,
&spi_nor_zbit,
};

static const struct flash_info *
@@ -536,6 +536,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_zbit;

extern const struct attribute_group *spi_nor_sysfs_groups[];

@@ -0,0 +1,21 @@
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (C) 2021, Daniel Palmer<daniel@thingy.jp>
*/

#include <linux/mtd/spi-nor.h>

#include "core.h"

static const struct flash_info zbit_parts[] = {
/* zbit */
{ "zb25vq128", INFO(0x5e4018, 0, 64 * 1024, 256,
SECT_4K | SPI_NOR_DUAL_READ | SPI_NOR_QUAD_READ |
SPI_NOR_HAS_LOCK | SPI_NOR_HAS_TB) },
};

const struct spi_nor_manufacturer spi_nor_zbit = {
.name = "zbit",
.parts = zbit_parts,
.nparts = ARRAY_SIZE(zbit_parts),
};

0 comments on commit 9994994

Please sign in to comment.