|
1 /* |
|
2 * Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #ifndef __VARIANT_NAND_PLAT_H__ |
|
21 #define __VARIANT_NAND_PLAT_H__ |
|
22 |
|
23 #include <nand_fbr_offset.h> |
|
24 #include <nanddevice.h> |
|
25 |
|
26 |
|
27 // |
|
28 // Const declarations |
|
29 // |
|
30 const TNandDeviceInfo gDeviceTable[] = { |
|
31 /********************************************************************************************************/ |
|
32 // iManufacturerCode; |
|
33 // | iDeviceCode; |
|
34 // | | iNumBlocks; |
|
35 // | | | iNumSectorsPerBlock; |
|
36 // | | | | iNumBytesMain; |
|
37 // | | | | | iNumBytesSpare; |
|
38 // | | | | | | iSectorShift; |
|
39 // | | | | | | | iBlockShift; |
|
40 // | | | | | | | | iBlksInRsv; |
|
41 // | | | | | | | | | iBadPos; |
|
42 // | | | | | | | | | | iLsnPos; |
|
43 // | | | | | | | | | | | iECCPos; |
|
44 // | | | | | | | | | | | | iFlags; |
|
45 // | | | | | | | | | | | | | |
|
46 // V V V V V V V V V V V V V |
|
47 /********************************************************************************************************/ |
|
48 { ESamsungId, 0xDAu, 2048, 256, 512, 16, 9, 14, 40, 0, 2, 6, TDeviceFlags(ELargeBlock|EDataIoWidth16)}, // 64 MB (512 MBit) |
|
49 // Last entry |
|
50 { TManufacturerId(0), 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, TDeviceFlags(0) } |
|
51 }; |
|
52 |
|
53 |
|
54 |
|
55 /** |
|
56 @internalTechnology |
|
57 */ |
|
58 const TUint32 KCoreldrStackAddr = 0x8C0003FCu; // Top of coreloader stack |
|
59 |
|
60 /** |
|
61 * The following constants support relocation of the NAND FBR for this platform |
|
62 * KNandFbrSectorOffset is the third of three constants required - it is defined |
|
63 * in nand_fbr_offset.h |
|
64 */ |
|
65 #ifndef MINIBOOT |
|
66 const TBool KNandMinibootUsed = EFalse; |
|
67 const TBool KNandCoreldrRelocatable = ETrue; |
|
68 #else |
|
69 const TBool KNandMinibootUsed = ETrue; |
|
70 const TBool KNandCoreldrRelocatable = EFalse; |
|
71 #endif /* MINIBOOT */ |
|
72 |
|
73 #endif // __VARIANT_NAND_PLAT_H__ |
|
74 |
|
75 |