|
|
@ -167,6 +167,12 @@ class Chip: |
|
|
|
# pylint: disable=too-many-return-statements |
|
|
|
"""Attempt to detect the CPU on a computer running the Linux kernel.""" |
|
|
|
|
|
|
|
if self.detector.check_dt_compatible_value("sun4i-a10"): |
|
|
|
return chips.A10 |
|
|
|
|
|
|
|
if self.detector.check_dt_compatible_value("sun7i-a20"): |
|
|
|
return chips.A20 |
|
|
|
|
|
|
|
if self.detector.check_dt_compatible_value("sun8i-h3"): |
|
|
|
return chips.H3 |
|
|
|
|
|
|
@ -313,6 +319,10 @@ class Chip: |
|
|
|
linux_id = chips.AM33XX |
|
|
|
elif "DRA74X" in hardware: |
|
|
|
linux_id = chips.DRA74X |
|
|
|
elif "sun4i" in hardware: |
|
|
|
linux_id = chips.A10 |
|
|
|
elif "sun7i" in hardware: |
|
|
|
linux_id = chips.A20 |
|
|
|
elif "sun8i" in hardware: |
|
|
|
linux_id = chips.SUN8I |
|
|
|
elif "ODROIDC" in hardware: |
|
|
|