spiFlashdb: fix bp_offset list
This commit is contained in:
parent
9cd2555820
commit
02e93ffec6
|
|
@ -12,9 +12,10 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
typedef enum {
|
typedef enum {
|
||||||
STATR = 0, /* status register */
|
STATR = 0, /* status register */
|
||||||
FUNCR = 1, /* function register */
|
FUNCR = 1, /* function register */
|
||||||
CONFR = 2 /* configuration register */
|
CONFR = 2, /* configuration register */
|
||||||
|
NONER = 99, /* configuration register */
|
||||||
} tb_loc_t;
|
} tb_loc_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
|
|
@ -131,11 +132,11 @@ static std::map <uint32_t, flash_t> flash_list = {
|
||||||
.sector_erase = true,
|
.sector_erase = true,
|
||||||
.subsector_erase = false,
|
.subsector_erase = false,
|
||||||
.has_extended = false,
|
.has_extended = false,
|
||||||
.tb_otp = true,
|
.tb_otp = false,
|
||||||
.tb_offset = 0,
|
.tb_offset = 0,
|
||||||
.tb_register = 0,
|
.tb_register = NONER,
|
||||||
.bp_len = 0,
|
.bp_len = 0,
|
||||||
.bp_offset = {}}
|
.bp_offset = {0, 0, 0, 0}}
|
||||||
},
|
},
|
||||||
{0x9d6016, {
|
{0x9d6016, {
|
||||||
.manufacturer = "ISSI",
|
.manufacturer = "ISSI",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue