]> git.kernelconcepts.de Git - karo-tx-redboot.git/blob - packages/devs/flash/arm/mxc/v2_0/include/tx37_nand_bbt.h
unified MX27, MX25, MX37 trees
[karo-tx-redboot.git] / packages / devs / flash / arm / mxc / v2_0 / include / tx37_nand_bbt.h
1 static cyg_int8 bbt_pattern[] = {'B', 'b', 't', '0' };
2 static cyg_int8 mirror_pattern[] = {'1', 't', 'b', 'B' };
3
4 static struct nand_bbt_descr tx37_bbt_main_descr = {
5         .options = (NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE |
6                     NAND_BBT_2BIT | NAND_BBT_VERSION),
7         .offs = 0,
8         .len = 4,
9         .veroffs = 4,
10         .maxblocks = 4,
11         .pattern = bbt_pattern,
12 };
13
14 static struct nand_bbt_descr tx37_bbt_mirror_descr = {
15         .options = (NAND_BBT_LASTBLOCK | NAND_BBT_CREATE | NAND_BBT_WRITE |
16                     NAND_BBT_2BIT | NAND_BBT_VERSION),
17         .offs = 0,
18         .len = 4,
19         .veroffs = 4,
20         .maxblocks = 4,
21         .pattern = mirror_pattern,
22 };
23
24 static struct nand_bbt_descr *g_mxc_nfc_bbt_main_descr = &tx37_bbt_main_descr;
25 static struct nand_bbt_descr *g_mxc_nfc_bbt_mirror_descr = &tx37_bbt_mirror_descr;