1 /*  RetroArch - A frontend for libretro.
2  *  Copyright (C) 2018-2018 - Natinusala
3  *  Copyright (C) 2018-2018 - M4xw
4  *
5  *  RetroArch is free software: you can redistribute it and/or modify it under the terms
6  *  of the GNU General Public License as published by the Free Software Found-
7  *  ation, either version 3 of the License, or (at your option) any later version.
8  *
9  *  RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
10  *  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  *  PURPOSE.  See the GNU General Public License for more details.
12  *
13  *  You should have received a copy of the GNU General Public License along with RetroArch.
14  *  If not, see <http://www.gnu.org/licenses/>.
15  */
16 
17 #ifndef __SWITCH_PERFORMANCE_PROFILES_H
18 #define __SWITCH_PERFORMANCE_PROFILES_H
19 
20 #if defined(HAVE_LAKKA_SWITCH) || defined(HAVE_LIBNX)
21 #ifdef HAVE_LAKKA_SWITCH
22 static char *SWITCH_GPU_PROFILES[] = {
23     "Docked Stock +2",
24     "Docked Stock +1",
25     "Docked Stock Mode",
26     "Handheld Boost +3",
27     "Handheld Boost +2",
28     "Handheld Boost +1",
29     "Handheld Boost Mode",
30     "Handheld Stock +1",
31     "Handheld Stock Mode",
32     "Powersaving +2",
33     "Powersaving +1",
34     "Powersaving Mode",
35 };
36 
37 static char *SWITCH_GPU_SPEEDS[] = {
38     "921 Mhz",
39     "844 Mhz",
40     "768 Mhz",
41     "691 Mhz",
42     "614 Mhz",
43     "537 Mhz",
44     "460 Mhz",
45     "384 Mhz",
46     "307 Mhz",
47     "230 Mhz",
48     "153 Mhz",
49     "76 Mhz"
50 };
51 #endif
52 
53 static char *SWITCH_CPU_PROFILES[] = {
54 #ifndef HAVE_LIBNX
55     "Max Overdrive +3",
56     "Max Overdrive +2",
57     "Max Overdrive +1",
58     "Maximum Performance",
59     "High Performance",
60     "Boost Performance",
61     "Stock Performance",
62     "Powersaving Mode 1",
63     "Powersaving Mode 2",
64     "Powersaving Mode 3",
65 #else
66     "Maximum Performance",
67     "High Performance",
68     "Boost Performance",
69     "Stock Performance",
70     "Powersaving Mode 1",
71     "Powersaving Mode 2",
72     "Powersaving Mode 3",
73 #endif
74 };
75 
76 #define SWITCH_DEFAULT_CPU_PROFILE 3 /* Stock Performance */
77 #define LIBNX_MAX_CPU_PROFILE 0 /* Max Performance */
78 
79 static char *SWITCH_CPU_SPEEDS[] = {
80 #ifndef HAVE_LIBNX
81     " **UNSTABLE**  2091 MHz",
82     " **UNSTABLE**  1989 MHz",
83     " **UNSTABLE**  1887 MHz",
84     "1785 MHz",
85     "1581 MHz",
86     "1224 MHz",
87     "1020 MHz",
88     "918 MHz",
89     "816 MHz",
90     "714 MHz"
91 #else
92     "1785 MHz",
93     "1581 MHz",
94     "1224 MHz",
95     "1020 MHz",
96     "918 MHz",
97     "816 MHz",
98     "714 MHz"
99 #endif
100 };
101 
102 #ifdef HAVE_LIBNX
103 // not used in switch-lakka
104 static unsigned SWITCH_CPU_SPEEDS_VALUES[] = {
105     1785000000,
106     1581000000,
107     1224000000,
108     1020000000,
109     918000000,
110     816000000,
111     714000000
112 };
113 #endif
114 
115 #endif
116 
117 #endif
118