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

Go to the source code of this file.

Macros

#define CMD_A25_WREN   0x06 /* Write Enable */
 
#define CMD_A25_WRDI   0x04 /* Write Disable */
 
#define CMD_A25_RDSR   0x05 /* Read Status Register */
 
#define CMD_A25_WRSR   0x01 /* Write Status Register */
 
#define CMD_A25_READ   0x03 /* Read Data Bytes */
 
#define CMD_A25_FAST_READ   0x0b /* Read Data Bytes at Higher Speed */
 
#define CMD_A25_PP   0x02 /* Page Program */
 
#define CMD_A25_SE   0x20 /* Sector (4K) Erase */
 
#define CMD_A25_BE   0xd8 /* Block (64K) Erase */
 
#define CMD_A25_CE   0xc7 /* Chip Erase */
 
#define CMD_A25_DP   0xb9 /* Deep Power-down */
 
#define CMD_A25_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_amic_vi
 

Macro Definition Documentation

◆ CMD_A25_BE

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

Definition at line 18 of file amic.c.

◆ CMD_A25_CE

#define CMD_A25_CE   0xc7 /* Chip Erase */

Definition at line 19 of file amic.c.

◆ CMD_A25_DP

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

Definition at line 20 of file amic.c.

◆ CMD_A25_FAST_READ

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

Definition at line 15 of file amic.c.

◆ CMD_A25_PP

#define CMD_A25_PP   0x02 /* Page Program */

Definition at line 16 of file amic.c.

◆ CMD_A25_RDSR

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

Definition at line 12 of file amic.c.

◆ CMD_A25_READ

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

Definition at line 14 of file amic.c.

◆ CMD_A25_RES

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

Definition at line 21 of file amic.c.

◆ CMD_A25_SE

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

Definition at line 17 of file amic.c.

◆ CMD_A25_WRDI

#define CMD_A25_WRDI   0x04 /* Write Disable */

Definition at line 11 of file amic.c.

◆ CMD_A25_WREN

#define CMD_A25_WREN   0x06 /* Write Enable */

Definition at line 10 of file amic.c.

◆ CMD_A25_WRSR

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

Definition at line 13 of file amic.c.

Variable Documentation

◆ flash_table

const struct spi_flash_part_id flash_table[]
static

Definition at line 1 of file amic.c.

◆ spi_flash_amic_vi

const struct spi_flash_vendor_info spi_flash_amic_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: amic.c:23
#define ARRAY_SIZE(a)
Definition: helpers.h:12
#define VENDOR_ID_AMIC
Definition: spi-generic.h:19
const struct spi_flash_ops_descriptor spi_flash_pp_0x20_sector_desc
Definition: spi_flash.c:793

Definition at line 1 of file amic.c.