coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
adesto.c File Reference
#include <commonlib/helpers.h>
#include <spi_flash.h>
#include <spi-generic.h>
#include "spi_flash_internal.h"
Include dependency graph for adesto.c:

Go to the source code of this file.

Macros

#define CMD_AT25DF_WREN   0x06 /* Write Enable */
 
#define CMD_AT25DF_WRDI   0x04 /* Write Disable */
 
#define CMD_AT25DF_RDSR   0x05 /* Read Status Register */
 
#define CMD_AT25DF_WRSR   0x01 /* Write Status Register */
 
#define CMD_AT25DF_READ   0x03 /* Read Data Bytes */
 
#define CMD_AT25DF_FAST_READ   0x0b /* Read Data Bytes at Higher Speed */
 
#define CMD_AT25DF_PP   0x02 /* Page Program */
 
#define CMD_AT25DF_SE   0x20 /* Sector (4K) Erase */
 
#define CMD_AT25DF_BE   0xd8 /* Block (64K) Erase */
 
#define CMD_AT25DF_CE   0xc7 /* Chip Erase */
 
#define CMD_AT25DF_DP   0xb9 /* Deep Power-down */
 
#define CMD_AT25DF_RES   0xab /* Release from DP, and Read Signature */
 

Variables

static const struct spi_flash_part_id flash_table []
 
const struct spi_flash_vendor_info spi_flash_adesto_vi
 

Macro Definition Documentation

◆ CMD_AT25DF_BE

#define CMD_AT25DF_BE   0xd8 /* Block (64K) Erase */

Definition at line 23 of file adesto.c.

◆ CMD_AT25DF_CE

#define CMD_AT25DF_CE   0xc7 /* Chip Erase */

Definition at line 24 of file adesto.c.

◆ CMD_AT25DF_DP

#define CMD_AT25DF_DP   0xb9 /* Deep Power-down */

Definition at line 25 of file adesto.c.

◆ CMD_AT25DF_FAST_READ

#define CMD_AT25DF_FAST_READ   0x0b /* Read Data Bytes at Higher Speed */

Definition at line 20 of file adesto.c.

◆ CMD_AT25DF_PP

#define CMD_AT25DF_PP   0x02 /* Page Program */

Definition at line 21 of file adesto.c.

◆ CMD_AT25DF_RDSR

#define CMD_AT25DF_RDSR   0x05 /* Read Status Register */

Definition at line 17 of file adesto.c.

◆ CMD_AT25DF_READ

#define CMD_AT25DF_READ   0x03 /* Read Data Bytes */

Definition at line 19 of file adesto.c.

◆ CMD_AT25DF_RES

#define CMD_AT25DF_RES   0xab /* Release from DP, and Read Signature */

Definition at line 26 of file adesto.c.

◆ CMD_AT25DF_SE

#define CMD_AT25DF_SE   0x20 /* Sector (4K) Erase */

Definition at line 22 of file adesto.c.

◆ CMD_AT25DF_WRDI

#define CMD_AT25DF_WRDI   0x04 /* Write Disable */

Definition at line 16 of file adesto.c.

◆ CMD_AT25DF_WREN

#define CMD_AT25DF_WREN   0x06 /* Write Enable */

Definition at line 15 of file adesto.c.

◆ CMD_AT25DF_WRSR

#define CMD_AT25DF_WRSR   0x01 /* Write Status Register */

Definition at line 18 of file adesto.c.

Variable Documentation

◆ flash_table

const struct spi_flash_part_id flash_table[]
static

Definition at line 1 of file adesto.c.

◆ spi_flash_adesto_vi

const struct spi_flash_vendor_info spi_flash_adesto_vi
Initial value:
= {
.page_size_shift = 8,
.sector_size_kib_shift = 2,
.match_id_mask[0] = 0xffff,
.ids = flash_table,
.nr_part_ids = ARRAY_SIZE(flash_table),
}
static const struct spi_flash_part_id flash_table[]
Definition: adesto.c:28
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define VENDOR_ID_ADESTO
Definition: spi-generic.h:18
const struct spi_flash_ops_descriptor spi_flash_pp_0x20_sector_desc
Definition: spi_flash.c:793

Definition at line 1 of file adesto.c.