15 op_name =
"Write Status";
18 op_name =
"Page Program";
21 op_name =
"Read Data";
24 op_name =
"Read Status";
27 op_name =
"Write Data Enable";
30 op_name =
"Fast Read";
33 op_name =
"Erase 4 KiB";
36 op_name =
"Write Status Enable";
42 op_name =
"Erase 64 KiB";
59 for (index = 0; index < 2; index++) {
60 prefix = ctrlr->
prefix[index];
68 for (index = 0; index < 8; index++) {
69 opcode = ctrlr->
opmenu[index];
70 type = (ctrlr->
type >> (index << 1)) & 3;
84 status = ctrlr->
pbr[index];
87 0xff000000 | (0x1000000 - CONFIG_ROM_SIZE)
89 0xff800fff | (0x1000000 - CONFIG_ROM_SIZE)
91 (status &
SPIPBR_WPE) ?
"Protected" :
"Unprotected");
97 (status &
SPISTS_CLD) ?
"Locked" :
"Unlocked");
#define printk(level,...)
#define BIOS_DEBUG
BIOS_DEBUG - Verbose output.
void spi_display(volatile struct flash_ctrlr *ctrlr)
const char * spi_opcode_name(int opcode)