x1000: add bad block marker position to nand_chip info

Change-Id: I6f466d87f6f11bc3e23463c469f318ecb7049ba7
This commit is contained in:
Aidan MacDonald 2022-03-19 19:02:24 +00:00
parent 9bbe08f3ec
commit 5b011c8dca
2 changed files with 4 additions and 0 deletions

View file

@ -69,6 +69,7 @@ const nand_chip supported_nand_chips[] = {
.page_size = 2048,
.oob_size = 64,
.nr_blocks = 1024,
.bbm_pos = 2048,
.clock_freq = 150000000,
.dev_conf = jz_orf(SFC_DEV_CONF,
CE_DL(1), HOLD_DL(1), WP_DL(1),

View file

@ -78,6 +78,9 @@ typedef struct nand_chip {
/* Total number of blocks in the chip */
unsigned nr_blocks;
/* Bad block marker offset within the 1st page of a bad block */
unsigned bbm_pos;
/* Clock frequency to use */
uint32_t clock_freq;