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:
vanhofen
2020-08-30 22:46:26 +02:00
parent a2c6323728
commit 89efe1a366
9 changed files with 20 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ typedef struct hw_caps
int has_SCART; int has_SCART;
int has_SCART_input; int has_SCART_input;
int has_YUV_cinch; int has_YUV_cinch;
int can_cpufreq;
int can_shutdown; int can_shutdown;
int can_cec; int can_cec;
int can_ar_14_9; /* video drivers have 14:9 aspect ratio mode */ int can_ar_14_9; /* video drivers have 14:9 aspect ratio mode */

View File

@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 480; caps.display_xres = 480;
caps.display_yres = 320; caps.display_yres = 320;
@@ -52,6 +53,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 2; caps.has_CI = 2;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 480; caps.display_xres = 480;
caps.display_yres = 320; caps.display_yres = 320;
@@ -71,6 +73,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 2; caps.has_CI = 2;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 800; caps.display_xres = 800;
caps.display_yres = 480; caps.display_yres = 480;
@@ -90,6 +93,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_type = HW_DISPLAY_LED_ONLY; caps.display_type = HW_DISPLAY_LED_ONLY;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
@@ -107,6 +111,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 400; caps.display_xres = 400;
caps.display_yres = 240; caps.display_yres = 240;
@@ -126,6 +131,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_type = HW_DISPLAY_LED_ONLY; caps.display_type = HW_DISPLAY_LED_ONLY;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
@@ -143,6 +149,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 16; caps.display_xres = 16;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
@@ -161,6 +168,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 0; caps.has_CI = 0;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 4; caps.display_xres = 4;
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
@@ -179,6 +187,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 4; caps.display_xres = 4;
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
@@ -197,6 +206,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 1; caps.has_CI = 1;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 4; caps.display_xres = 4;
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
@@ -215,6 +225,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 0; caps.has_CI = 0;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 4; caps.display_xres = 4;
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
@@ -233,6 +244,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 0; caps.has_CI = 0;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 5; caps.display_xres = 5;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;

View File

@@ -26,6 +26,7 @@ hw_caps_t *get_hwcaps(void)
memset(&caps, 0, sizeof(hw_caps_t)); memset(&caps, 0, sizeof(hw_caps_t));
initialized = 1; initialized = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;

View File

@@ -32,6 +32,7 @@ hw_caps_t *get_hwcaps(void)
caps.display_can_set_brightness = 0; caps.display_can_set_brightness = 0;
caps.display_can_deepstandby = 0; caps.display_can_deepstandby = 0;
caps.display_has_statusline = 0; caps.display_has_statusline = 0;
caps.can_cpufreq = 1;
if (fd != -1) { if (fd != -1) {
len = read(fd, buf, sizeof(buf) - 1); len = read(fd, buf, sizeof(buf) - 1);
close(fd); close(fd);

View File

@@ -28,6 +28,7 @@ hw_caps_t *get_hwcaps(void)
memset(&caps, 0, sizeof(hw_caps_t)); memset(&caps, 0, sizeof(hw_caps_t));
initialized = 1; initialized = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; /* for testing */ caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;

View File

@@ -33,6 +33,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 2; caps.has_CI = 2;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_xres = 16; caps.display_xres = 16;
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;

View File

@@ -26,6 +26,7 @@ hw_caps_t *get_hwcaps(void)
memset(&caps, 0, sizeof(hw_caps_t)); memset(&caps, 0, sizeof(hw_caps_t));
initialized = 1; initialized = 1;
caps.can_cpufreq = 0;
caps.can_shutdown = 1; /* for testing */ caps.can_shutdown = 1; /* for testing */
caps.display_type = HW_DISPLAY_LINE_TEXT; caps.display_type = HW_DISPLAY_LINE_TEXT;
caps.has_HDMI = 1; caps.has_HDMI = 1;

View File

@@ -32,6 +32,7 @@ hw_caps_t *get_hwcaps(void)
initialized = 1; initialized = 1;
caps.has_CI = 0; caps.has_CI = 0;
caps.can_cec = 1; caps.can_cec = 1;
caps.can_cpufreq = 1;
caps.can_shutdown = 1; caps.can_shutdown = 1;
caps.display_type = HW_DISPLAY_LED_NUM; caps.display_type = HW_DISPLAY_LED_NUM;
caps.display_can_set_brightness = 0; caps.display_can_set_brightness = 0;

View File

@@ -15,6 +15,7 @@ static hw_caps_t caps = {
.has_SCART_input = 1, .has_SCART_input = 1,
.has_HDMI = 0, .has_HDMI = 0,
.has_YUV_cinch = 0, .has_YUV_cinch = 0,
.can_cpufreq = 1, /* see "elegant" hack in pwrmngr.cpp */
.can_shutdown = 0, .can_shutdown = 0,
.can_cec = 0, .can_cec = 0,
.display_type = HW_DISPLAY_GFX, .display_type = HW_DISPLAY_GFX,