|
Lines 225-230
global string board_compatible () {
Link Here
|
| 225 |
// there is no standard for the board identification |
225 |
// there is no standard for the board identification |
| 226 |
// Cell and Maple based boards have no CHRP in /proc/cpuinfo |
226 |
// Cell and Maple based boards have no CHRP in /proc/cpuinfo |
| 227 |
// Pegasos and Cell do have CHRP in /proc/cpuinfo, but Pegasos2 should no be handled as CHRP |
227 |
// Pegasos and Cell do have CHRP in /proc/cpuinfo, but Pegasos2 should no be handled as CHRP |
|
|
228 |
// Efika is handled like Pegasos for the time being |
| 228 |
if (ppc () && (_board_compatible == nil || _board_compatible == "CHRP")) |
229 |
if (ppc () && (_board_compatible == nil || _board_compatible == "CHRP")) |
| 229 |
{ |
230 |
{ |
| 230 |
map device_type = (map) SCR::Execute (.target.bash_output, |
231 |
map device_type = (map) SCR::Execute (.target.bash_output, |
|
Lines 250-255
global string board_compatible () {
Link Here
|
| 250 |
{ |
251 |
{ |
| 251 |
_board_compatible = "Pegasos"; |
252 |
_board_compatible = "Pegasos"; |
| 252 |
} |
253 |
} |
|
|
254 |
// Efika has CHRP in /proc/cpuinfo and 'efika' in /proc/device-tree/device_type |
| 255 |
if (board == "efika") |
| 256 |
{ |
| 257 |
_board_compatible = "Pegasos"; |
| 258 |
} |
| 253 |
} |
259 |
} |
| 254 |
// avoid future re-probing if probing failed |
260 |
// avoid future re-probing if probing failed |
| 255 |
// also avoid passing nil outside the module |
261 |
// also avoid passing nil outside the module |
|
Lines 308-314
global boolean board_prep () {
Link Here
|
| 308 |
} |
314 |
} |
| 309 |
|
315 |
|
| 310 |
/** |
316 |
/** |
| 311 |
* true for all "Pegasos" ppc boards |
317 |
* true for all "Pegasos" and "Efika" ppc boards |
| 312 |
*/ |
318 |
*/ |
| 313 |
global boolean board_pegasos () { |
319 |
global boolean board_pegasos () { |
| 314 |
return ppc () && board_compatible () == "Pegasos"; |
320 |
return ppc () && board_compatible () == "Pegasos"; |