blob: d2000b91bf8104ec69b31144c46101d8496eb2bd [file] [log] [blame]
Maximilian Brune7bcf4ae2023-08-28 13:57:20 +02001/* SPDX-License-Identifier: GPL-2.0-or-later */
2
3#include <console/console.h>
4#include <commonlib/helpers.h>
5#include <spi_flash.h>
6#include <spi-generic.h>
7#include <delay.h>
Maximilian Brune7bcf4ae2023-08-28 13:57:20 +02008
9#include "spi_flash_internal.h"
10
11static const struct spi_flash_part_id flash_table[] = {
12 {
13 /* IS25WP256D */
14 .id[0] = 0x7019,
15 .nr_sectors_shift = 13,
16 },
17};
18
19const struct spi_flash_vendor_info spi_flash_issi_vi = {
20 .id = VENDOR_ID_ISSI,
21 .page_size_shift = 8, // 256 byte page size
22 .sector_size_kib_shift = 2, // 4 Kbyte sector size
23 .match_id_mask[0] = 0xffff,
24 .ids = flash_table,
25 .nr_part_ids = ARRAY_SIZE(flash_table),
26 .desc = &spi_flash_pp_0x20_sector_desc,
27 .prot_ops = NULL,
28};