mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 08:30:50 +09:00
fix: nand: pxa3xx: fix defined but not used warnings
bbt_mirror_descr and bbt_main_descr is defined but not used when compiling without CONFIG_SYS_NAND_USE_FLASH_BBT set. Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk> Signed-off-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
b06c46de63
commit
e13921a951
@ -233,6 +233,7 @@ static struct pxa3xx_nand_flash builtin_flash_types[] = {
|
|||||||
{ 0xba20, 16, 16, &timing[3] },
|
{ 0xba20, 16, 16, &timing[3] },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#ifdef CONFIG_SYS_NAND_USE_FLASH_BBT
|
||||||
static u8 bbt_pattern[] = {'M', 'V', 'B', 'b', 't', '0' };
|
static u8 bbt_pattern[] = {'M', 'V', 'B', 'b', 't', '0' };
|
||||||
static u8 bbt_mirror_pattern[] = {'1', 't', 'b', 'B', 'V', 'M' };
|
static u8 bbt_mirror_pattern[] = {'1', 't', 'b', 'B', 'V', 'M' };
|
||||||
|
|
||||||
@ -255,6 +256,7 @@ static struct nand_bbt_descr bbt_mirror_descr = {
|
|||||||
.maxblocks = 8, /* Last 8 blocks in each chip */
|
.maxblocks = 8, /* Last 8 blocks in each chip */
|
||||||
.pattern = bbt_mirror_pattern
|
.pattern = bbt_mirror_pattern
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct nand_ecclayout ecc_layout_2KB_bch4bit = {
|
static struct nand_ecclayout ecc_layout_2KB_bch4bit = {
|
||||||
.eccbytes = 32,
|
.eccbytes = 32,
|
||||||
|
Loading…
Reference in New Issue
Block a user