03.09.2015 Views

Marvell ARMADA 16x Applications Processor Family

7 Marvell ® ARMADA 16x Applications Processor Family ...

7 Marvell ® ARMADA 16x Applications Processor Family ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Marvell</strong> ® <strong>ARMADA</strong> <strong>16x</strong> <strong>Applications</strong> <strong>Processor</strong> <strong>Family</strong><br />

Version 3.2.x Boot ROM Reference Manual<br />

USHORT Header;<br />

USHORT NumReloc;<br />

Rel_T Relo[NAND_RELOC_MAX];<br />

}Reloc_T;<br />

The header is a fixed value of 0x524E to identify the presence of a bad-block table; that is, if the<br />

header is valid as defined above, the initial block scan has been completed. Otherwise, the block<br />

scan has not been completed. The NumReloc parameter identifies the number of blocks that has<br />

currently been relocated and is followed by up to 127 relocation pairs.<br />

Typedef struct S_Rel<br />

{<br />

USHORT From;<br />

USHORT To;<br />

}Rel_T;<br />

Const ULONG NAND_RELOC_MAX = 127;<br />

Each “From” entry identifies the block that has been relocated and the entry “To” identifies the<br />

relocated block number.<br />

6.6.1.3 Bad Block Relocation Area<br />

The last two percent of the blocks of the device are reserved for bad-block relocations. The first<br />

block that is relocated goes to the very last block of the device; the second block relocated goes to<br />

the second to the last block of the device, and so forth. This process effectively allows relocated<br />

blocks to grow from the highest address down. A block in the relocation pool itself may be relocated,<br />

so use caution when relocating to skip over these blocks. Figure 6 presents a typical Flash part<br />

layout and a relocation table layout to tie the concepts together.<br />

Figure 6: Example of Bad Block Table NAND Flash Mapping in Use —<br />

Small Block NAND Flash Type: Samsung K9K1216Q0C* (Device ID =<br />

0x46)<br />

1<br />

2<br />

3<br />

4<br />

5<br />

6<br />

7<br />

8<br />

9<br />

10<br />

11<br />

12<br />

13<br />

14<br />

15<br />

16<br />

17<br />

18<br />

19<br />

20<br />

21<br />

22<br />

23<br />

24<br />

25<br />

26<br />

27<br />

28<br />

29<br />

30<br />

31<br />

32<br />

33<br />

34<br />

35<br />

36<br />

37<br />

38<br />

39<br />

40<br />

41<br />

42<br />

43<br />

44<br />

45<br />

46<br />

47<br />

48<br />

49<br />

50<br />

51<br />

52<br />

53<br />

54<br />

55<br />

56<br />

57<br />

58<br />

Doc. No. MV-S301208-00 Rev. - Copyright © 11/15/10 <strong>Marvell</strong><br />

Page 48<br />

November 2010 PUBLIC RELEASE

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!