diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-25 20:50:28 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-25 20:50:28 -0400 |
commit | a61f9d1fbbca3c5e59b907ad3071db70ef174872 (patch) | |
tree | 2f48de9b45de0b4343a5150381dbe5b132ad86b9 /drivers/mtd/spi/sf_internal.h | |
parent | 5512f5ccf1dc5cec068f8efa1d8ce81f51a988d3 (diff) | |
parent | 9b14ac5cc2294ac3eaae92421abff27ed3e6caae (diff) |
Merge git://git.denx.de/u-boot-spi
Diffstat (limited to 'drivers/mtd/spi/sf_internal.h')
-rw-r--r-- | drivers/mtd/spi/sf_internal.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/drivers/mtd/spi/sf_internal.h b/drivers/mtd/spi/sf_internal.h index 839cdbe1b0..614a293234 100644 --- a/drivers/mtd/spi/sf_internal.h +++ b/drivers/mtd/spi/sf_internal.h @@ -87,6 +87,19 @@ enum spi_nor_option_flags { /* SST specific */ #ifdef CONFIG_SPI_FLASH_SST +#define SST26_CMD_READ_BPR 0x72 +#define SST26_CMD_WRITE_BPR 0x42 + +#define SST26_BPR_8K_NUM 4 +#define SST26_MAX_BPR_REG_LEN (18 + 1) +#define SST26_BOUND_REG_SIZE ((32 + SST26_BPR_8K_NUM * 8) * SZ_1K) + +enum lock_ctl { + SST26_CTL_LOCK, + SST26_CTL_UNLOCK, + SST26_CTL_CHECK +}; + # define CMD_SST_BP 0x02 /* Byte Program */ # define CMD_SST_AAI_WP 0xAD /* Auto Address Incr Word Program */ |