Actions
Feature #1068
closedAdd support for PinePhone Pro to piboxGetPlatform()
Start date:
05 Nov 2023
Due date:
% Done:
100%
Estimated time:
Severity:
01 - Critical
Description
The first test is to check that
/sys/firmware/devicetree/base/model
exists. If it does, read the first word of its contents and test against the following:
- Raspberry
- Pine64
Choose an appropriate subroutine to call based on that.
If that file does not exist, call the subroutine for Raspberry Pi, which would be the old way of doing things anyway.
Note that the existing code that tests the hardware type from /proc/cpuinfo needs to be moved into a RaspberryPi specific subroutine.
Actions