mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-libstb-hal.git
synced 2025-08-26 15:02:43 +02:00
introduce can_cpufreq to control the cpu frequency
Origin commit data
------------------
Branch: master
Commit: 6866feb9f7
Author: vanhofen <vanhofen@gmx.de>
Date: 2020-08-30 (Sun, 30 Aug 2020)
Origin message was:
------------------
- introduce can_cpufreq to control the cpu frequency
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -29,6 +29,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 */
|
||||
|
@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 480;
|
||||
caps.display_yres = 320;
|
||||
@@ -52,6 +53,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 2;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 480;
|
||||
caps.display_yres = 320;
|
||||
@@ -71,6 +73,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 2;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 800;
|
||||
caps.display_yres = 480;
|
||||
@@ -90,6 +93,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LED_ONLY;
|
||||
caps.display_can_deepstandby = 0;
|
||||
@@ -107,6 +111,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 400;
|
||||
caps.display_yres = 240;
|
||||
@@ -126,6 +131,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LED_ONLY;
|
||||
caps.display_can_deepstandby = 0;
|
||||
@@ -143,6 +149,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 16;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
@@ -161,6 +168,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 4;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
@@ -179,6 +187,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 4;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
@@ -197,6 +206,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 1;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 4;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
@@ -215,6 +225,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 4;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
@@ -233,6 +244,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 5;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
|
@@ -26,6 +26,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
memset(&caps, 0, sizeof(hw_caps_t));
|
||||
|
||||
initialized = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
|
@@ -32,6 +32,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
caps.display_can_set_brightness = 0;
|
||||
caps.display_can_deepstandby = 0;
|
||||
caps.display_has_statusline = 0;
|
||||
caps.can_cpufreq = 1;
|
||||
if (fd != -1) {
|
||||
len = read(fd, buf, sizeof(buf) - 1);
|
||||
close(fd);
|
||||
|
@@ -28,6 +28,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
memset(&caps, 0, sizeof(hw_caps_t));
|
||||
|
||||
initialized = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1; /* for testing */
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
|
@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 2;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_xres = 16;
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
|
@@ -26,6 +26,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
memset(&caps, 0, sizeof(hw_caps_t));
|
||||
|
||||
initialized = 1;
|
||||
caps.can_cpufreq = 0;
|
||||
caps.can_shutdown = 1; /* for testing */
|
||||
caps.display_type = HW_DISPLAY_LINE_TEXT;
|
||||
caps.has_HDMI = 1;
|
||||
|
@@ -32,6 +32,7 @@ hw_caps_t *get_hwcaps(void)
|
||||
initialized = 1;
|
||||
caps.has_CI = 0;
|
||||
caps.can_cec = 1;
|
||||
caps.can_cpufreq = 1;
|
||||
caps.can_shutdown = 1;
|
||||
caps.display_type = HW_DISPLAY_LED_NUM;
|
||||
caps.display_can_set_brightness = 0;
|
||||
|
@@ -15,6 +15,7 @@ static hw_caps_t caps = {
|
||||
.has_SCART_input = 1,
|
||||
.has_HDMI = 0,
|
||||
.has_YUV_cinch = 0,
|
||||
.can_cpufreq = 1, /* see "elegant" hack in pwrmngr.cpp */
|
||||
.can_shutdown = 0,
|
||||
.can_cec = 0,
|
||||
.display_type = HW_DISPLAY_GFX,
|
||||
|
Reference in New Issue
Block a user