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