GNU Linux-libre 5.10.215-gnu1
[releases.git] / drivers / mtd / spi-nor / catalyst.c
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * Copyright (C) 2005, Intec Automation Inc.
4  * Copyright (C) 2014, Freescale Semiconductor, Inc.
5  */
6
7 #include <linux/mtd/spi-nor.h>
8
9 #include "core.h"
10
11 static const struct flash_info catalyst_parts[] = {
12         /* Catalyst / On Semiconductor -- non-JEDEC */
13         { "cat25c11", CAT25_INFO(16, 8, 16, 1,
14                                  SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
15         { "cat25c03", CAT25_INFO(32, 8, 16, 2,
16                                  SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
17         { "cat25c09", CAT25_INFO(128, 8, 32, 2,
18                                  SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
19         { "cat25c17", CAT25_INFO(256, 8, 32, 2,
20                                  SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
21         { "cat25128", CAT25_INFO(2048, 8, 64, 2,
22                                  SPI_NOR_NO_ERASE | SPI_NOR_NO_FR) },
23 };
24
25 const struct spi_nor_manufacturer spi_nor_catalyst = {
26         .name = "catalyst",
27         .parts = catalyst_parts,
28         .nparts = ARRAY_SIZE(catalyst_parts),
29 };