From e4594292a5f9c2a62b7ff9daa343af1872e30a10 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 30 Aug 2020 22:49:37 +0200 Subject: [PATCH] lib/hardware: introduce can_cpufreq to control the cpu frequency Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/258aae865f78c42465d49a6fced95a95c312d256 Author: vanhofen Date: 2020-08-30 (Sun, 30 Aug 2020) Origin message was: ------------------ - lib/hardware: introduce can_cpufreq to control the cpu frequency --- lib/hardware/coolstream/hardware_caps.cpp | 1 + lib/hardware/coolstream/hardware_caps.h | 1 + 2 files changed, 2 insertions(+) diff --git a/lib/hardware/coolstream/hardware_caps.cpp b/lib/hardware/coolstream/hardware_caps.cpp index e802a8859..25bf62b0e 100644 --- a/lib/hardware/coolstream/hardware_caps.cpp +++ b/lib/hardware/coolstream/hardware_caps.cpp @@ -24,6 +24,7 @@ hw_caps_t *get_hwcaps(void) { caps.has_SCART = (rev != 10); caps.has_SCART_input = 0; caps.has_YUV_cinch = 1; + caps.can_cpufreq = (rev < 9); caps.can_shutdown = (rev > 7); caps.can_cec = 1; caps.display_type = HW_DISPLAY_LINE_TEXT; diff --git a/lib/hardware/coolstream/hardware_caps.h b/lib/hardware/coolstream/hardware_caps.h index 083197522..128dd68b5 100644 --- a/lib/hardware/coolstream/hardware_caps.h +++ b/lib/hardware/coolstream/hardware_caps.h @@ -26,6 +26,7 @@ typedef struct hw_caps int has_SCART; int has_SCART_input; int has_YUV_cinch; + int can_cpufreq; int can_shutdown; int can_cec; int can_ar_14_9; /* video drivers have 14:9 aspect ratio mode */