96boards: Cleanup the board support
This commit cleans up the 96boards board support by sorting the boards in alphabetical manner and also executing clang-format for 96boards.c Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
This commit is contained in:
committed by
Manivannan Sadhasivam
parent
9a44283a93
commit
71b87904a0
@@ -85,7 +85,9 @@ mraa_arm_platform()
|
||||
/* Get compatible string from Device tree for boards that dont have enough info in /proc/cpuinfo
|
||||
*/
|
||||
if (platform_type == MRAA_UNKNOWN_PLATFORM) {
|
||||
if (mraa_file_contains("/proc/device-tree/compatible", "qcom,apq8016-sbc"))
|
||||
if (mraa_file_contains("/proc/device-tree/model", "s900"))
|
||||
platform_type = MRAA_96BOARDS;
|
||||
else if (mraa_file_contains("/proc/device-tree/compatible", "qcom,apq8016-sbc"))
|
||||
platform_type = MRAA_96BOARDS;
|
||||
else if (mraa_file_contains("/proc/device-tree/compatible", "arrow,apq8096-db820c"))
|
||||
platform_type = MRAA_96BOARDS;
|
||||
@@ -96,8 +98,6 @@ mraa_arm_platform()
|
||||
platform_type = MRAA_96BOARDS;
|
||||
else if (mraa_file_contains("/proc/device-tree/model", "ROCK960"))
|
||||
platform_type = MRAA_96BOARDS;
|
||||
else if (mraa_file_contains("/proc/device-tree/model", "s900"))
|
||||
platform_type = MRAA_96BOARDS;
|
||||
else if (mraa_file_contains("/proc/device-tree/compatible", "raspberrypi,"))
|
||||
platform_type = MRAA_RASPBERRY_PI;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user