Files
Horizon-OC/Source/sys-clk-OC/common/src/clock_table.c
KazushiM 139c7dfcad - oc_loader: pcv_erista: use 1963.5 MHz instead of 1989
- sys-clk-OC: update safe/unsafe frequencies (Erista CPU 1785/2091, Mariko CPU 1963/2397, Mariko GPU 998/1305); add 408/510 MHz CPU clocks; add unsafe toggle for Erista
2022-12-30 20:58:33 +08:00

91 lines
1.9 KiB
C

/*
* --------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <p-sam@d3vs.net>, <natinusala@gmail.com>, <m4x@m4xw.net>
* wrote this file. As long as you retain this notice you can do whatever you
* want with this stuff. If you meet any of us some day, and you think this
* stuff is worth it, you can buy us a beer in return. - The sys-clk authors
* --------------------------------------------------------------------------
*/
#include <stdint.h>
#include <sysclk/clocks.h>
uint32_t g_freq_table_mem_hz[] = {
// From Hekate Minerva module
665600000,
800000000,
1065600000,
1331200000,
1600000000,
// 1728000000,
// 1795200000,
1862400000, // Max Hz
// 1894400000,
// 1932800000,
// 1996800000,
// 2064000000,
// 2099200000,
// 2131200000,
0,
};
uint32_t g_freq_table_cpu_hz[] = {
408000000,
510000000,
612000000,
714000000,
816000000,
918000000,
1020000000,
1122000000,
1224000000,
1326000000,
1428000000,
1581000000,
1683000000,
1785000000,
1887000000,
1963500000,
2091000000,
2193000000,
2295000000,
2397000000,
0,
};
uint32_t g_freq_table_gpu_hz[] = {
76800000,
153600000,
230400000,
307200000,
384000000,
460800000,
537600000,
614400000,
691200000,
768000000,
844800000,
921600000,
998400000,
1075200000,
1152000000,
1228800000,
1267200000,
1305600000,
0,
};
uint32_t* GetTable(SysClkModule module) {
switch (module) {
case SysClkModule_CPU:
return &g_freq_table_cpu_hz[0];
case SysClkModule_GPU:
return &g_freq_table_gpu_hz[0];
case SysClkModule_MEM:
return &g_freq_table_mem_hz[0];
default:
return NULL;
}
}