blob: 45fe5a130de9a896eb19397e391edc116399d6ad [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>
8#include <lib.h>
9
10#include "spi_flash_internal.h"
11
12static const struct spi_flash_part_id flash_table[] = {
13 {
14 /* IS25WP256D */
15 .id[0] = 0x7019,
16 .nr_sectors_shift = 13,
17 },
18};
19
20const struct spi_flash_vendor_info spi_flash_issi_vi = {
21 .id = VENDOR_ID_ISSI,
22 .page_size_shift = 8, // 256 byte page size
23 .sector_size_kib_shift = 2, // 4 Kbyte sector size
24 .match_id_mask[0] = 0xffff,
25 .ids = flash_table,
26 .nr_part_ids = ARRAY_SIZE(flash_table),
27 .desc = &spi_flash_pp_0x20_sector_desc,
28 .prot_ops = NULL,
29};