8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * NTT Docomo, Inc : BUG 1296 |
13 * NTT DOCOMO, INC : BUG 1296 |
|
14 * NTT DOCOMO, INC : BUG 3598 |
|
15 * NTT DOCOMO, INC - Fix for bug 1291 "E32test t_tock.exe failed to load Logical Device" |
14 * |
16 * |
15 * Description: |
17 * Description: |
16 * |
18 * |
17 */ |
19 */ |
18 |
20 |
51 const TUint KHwSVPSnapDevice = KHwBasePeripherals + 0x0b*KHwLinSeparation; |
53 const TUint KHwSVPSnapDevice = KHwBasePeripherals + 0x0b*KHwLinSeparation; |
52 const TUint KHwSVPNetDevice = KHwBasePeripherals + 0x0c*KHwLinSeparation; |
54 const TUint KHwSVPNetDevice = KHwBasePeripherals + 0x0c*KHwLinSeparation; |
53 const TUint KHwSVPNandDevice = KHwBasePeripherals + 0x0d*KHwLinSeparation; |
55 const TUint KHwSVPNandDevice = KHwBasePeripherals + 0x0d*KHwLinSeparation; |
54 const TUint KHwSVPAudioDevice = KHwBasePeripherals + 0x0e*KHwLinSeparation; |
56 const TUint KHwSVPAudioDevice = KHwBasePeripherals + 0x0e*KHwLinSeparation; |
55 const TUint KHwSVPWebcameraDevice = KHwBasePeripherals + 0x0f*KHwLinSeparation; |
57 const TUint KHwSVPWebcameraDevice = KHwBasePeripherals + 0x0f*KHwLinSeparation; |
56 const TUint KHwNVMemoryDevice = KHwBasePeripherals + 0x10*KHwLinSeparation; |
58 const TUint KHwNVMemoryDevice = KHwBasePeripherals + 0x10*KHwLinSeparation; |
57 const TUint KHwGraphicsRegBase = KHwBasePeripherals + 0x11*KHwLinSeparation; |
59 const TUint KHwGraphicsRegBase = KHwBasePeripherals + 0x11*KHwLinSeparation; |
58 const TUint KHwSVPPlatformDevice = KHwBasePeripherals + 0x12*KHwLinSeparation; |
60 const TUint KHwBaseCounterTimer2 = KHwBasePeripherals + 0x12*KHwLinSeparation; |
|
61 const TUint KHwSVPPlatformDevice = KHwBasePeripherals + 0x13*KHwLinSeparation; |
|
62 // NTT Docomo - Defect 1291 fix - E32test t_tock.exe failed to load Logical Device - end |
59 |
63 |
60 enum TSyborgInterruptId |
64 enum TSyborgInterruptId |
61 { |
65 { |
62 EIntTimer0 = 0, /* RTC -- not used */ |
66 EIntTimer0 = 0, /* RTC -- not used */ |
63 EIntTimer1 = 1, /* Interval Timer */ |
67 EIntTimer1 = 1, /* Interval Timer */ |
125 // Debug Port Specific |
131 // Debug Port Specific |
126 IMPORT_C static TUint32 DebugPortAddr(); |
132 IMPORT_C static TUint32 DebugPortAddr(); |
127 IMPORT_C static void MarkDebugPortOff(); |
133 IMPORT_C static void MarkDebugPortOff(); |
128 }; |
134 }; |
129 |
135 |
130 static inline TUint32 ReadReg(TUint32 base, TUint8 aReg) |
136 static inline TUint32 ReadReg(TUint32 base, TUint32 aReg) |
131 { |
137 { |
132 return *(volatile TUint32 *)(base + (aReg << 2)); |
138 return *(volatile TUint32 *)(base + (aReg << 2)); |
133 } |
139 } |
134 |
140 |
135 static inline void WriteReg(TUint32 base, TUint8 aReg, TUint32 aVal) |
141 static inline void WriteReg(TUint32 base, TUint32 aReg, TUint32 aVal) |
136 { |
142 { |
137 *(volatile TUint32*)(base + (aReg<<2)) = aVal; |
143 *(volatile TUint32*)(base + (aReg<<2)) = aVal; |
138 } |
144 } |
139 |
145 |
140 #endif // __SYBORG_H__ |
146 #endif // __SYBORG_H__ |