forked from torvalds/linux
Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Showing
4 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -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), | ||
| }; |