xref: /openbmc/linux/drivers/mtd/spi-nor/catalyst.c (revision 4f2c0a4acffbec01079c28f839422e64ddeff004)
1d8259257SBoris Brezillon // SPDX-License-Identifier: GPL-2.0
2d8259257SBoris Brezillon /*
3d8259257SBoris Brezillon  * Copyright (C) 2005, Intec Automation Inc.
4d8259257SBoris Brezillon  * Copyright (C) 2014, Freescale Semiconductor, Inc.
5d8259257SBoris Brezillon  */
6d8259257SBoris Brezillon 
7d8259257SBoris Brezillon #include <linux/mtd/spi-nor.h>
8d8259257SBoris Brezillon 
9d8259257SBoris Brezillon #include "core.h"
10d8259257SBoris Brezillon 
11*9eb916e2SMichael Walle static const struct flash_info catalyst_nor_parts[] = {
12d8259257SBoris Brezillon 	/* Catalyst / On Semiconductor -- non-JEDEC */
13ec1c0e99STudor Ambarus 	{ "cat25c11", CAT25_INFO(16, 8, 16, 1) },
14ec1c0e99STudor Ambarus 	{ "cat25c03", CAT25_INFO(32, 8, 16, 2) },
15ec1c0e99STudor Ambarus 	{ "cat25c09", CAT25_INFO(128, 8, 32, 2) },
16ec1c0e99STudor Ambarus 	{ "cat25c17", CAT25_INFO(256, 8, 32, 2) },
17ec1c0e99STudor Ambarus 	{ "cat25128", CAT25_INFO(2048, 8, 64, 2) },
18d8259257SBoris Brezillon };
19d8259257SBoris Brezillon 
20d8259257SBoris Brezillon const struct spi_nor_manufacturer spi_nor_catalyst = {
21d8259257SBoris Brezillon 	.name = "catalyst",
22*9eb916e2SMichael Walle 	.parts = catalyst_nor_parts,
23*9eb916e2SMichael Walle 	.nparts = ARRAY_SIZE(catalyst_nor_parts),
24d8259257SBoris Brezillon };
25