;creator=ppkantorski, MestreYodaRossi, B3711
;show_version=true


[@Presets]
[RAM Table package Info]
;mode=table
;background=false
;spacing=4
;gap=20
;header_indent=true
;info_text_color=header
;section_text_color=header
json_file './json/ram_model.json'
'RAM' = '{json_file(0,{ram_model})}'


[RAM Table]
;mode=table
;spacing=4
;gap=0
hex_file '/atmosphere/kips/loader.kip'
json_file './json/numbers.json'
'Timings' = '({json_file(0,{hex_file(CUST,88,1)})}-{json_file(0,{hex_file(CUST,92,1)})}-{json_file(0,{hex_file(CUST,96,1)})}) {json_file(0,{hex_file(CUST,100,1)})}-{json_file(0,{hex_file(CUST,104,1)})}-{json_file(0,{hex_file(CUST,108,1)})}-{json_file(0,{hex_file(CUST,112,1)})}-{json_file(0,{hex_file(CUST,116,1)})}'

hex_file '/atmosphere/kips/loader.kip'
json_file './json/dram.json'
'DRAM'= {json_file(0,{hex_file(CUST,64,1)})}
mariko:
json_file './json/max_clocks.json'
'Max Clock' = {json_file(0,{hex_file(CUST,80,3)})}
json_file './json/vddq.json'
'Vddq' = {json_file(0,{hex_file(CUST,72,3)})}
json_file './json/vdd2.json'
'Vdd2' = {json_file(0,{hex_file(CUST,68,3)})}
json_file './json/ram_dvb.json'
'EMC DVB' = {json_file(0,{hex_file(CUST,84,1)})}
erista:
json_file './json/max_clocks.json'
'Max Clock' = {json_file(0,{hex_file(CUST,76,3)})}
json_file './json/vdd2.json'
'Vdd2' = {json_file(0,{hex_file(CUST,68,3)})}
json_file './json/ram_dvb.json'
'EMC DVB' = {json_file(0,{hex_file(CUST,84,1)})}

[gap]
;mode=table
;background=false
;gap=25

[CPU Table package Info]
;mode=table
;background=false
;spacing=4
;gap=20
;header_indent=true
;info_text_color=header
;section_text_color=header
'CPU' = '{cpu_speedo}'

[CPU Table]
;mode=table
;spacing=4
;gap=0
hex_file '/atmosphere/kips/loader.kip'
json_file './json/numbers.json'
'UV Level' = {json_file(0,{hex_file(CUST,12,1)})}
mariko:
json_file './json/high_freq_uv.json'
'High Freq UV Level' = {json_file(0,{hex_file(CUST,252,1)})}
json_file './json/cpu_table.json'
'Table Config' = {json_file(0,{hex_file(CUST,272,1)})}
json_file './json/mv.json'
'Low Freq Vmin' = {json_file(0,{hex_file(CUST,24,2)})}
'High Freq Vmin' = {json_file(0,{hex_file(CUST,28,2)})}
json_file './json/voltage_limit.json'
'Volt Limit' = {json_file(0,{hex_file(CUST,32,2)})}
json_file './json/max_clocks.json'
'Boost Clock' = {json_file(0,{hex_file(CUST,8,3)})}
json_file './json/cpu_max_clock_m.json'
'Max Clock' = {json_file(0,{hex_file(CUST,264,1)})}
erista:
json_file './json/mv.json'
'Vmin' = {json_file(0,{hex_file(CUST,16,2)})}
json_file './json/voltage_limit.json'
'Volt Limit' = {json_file(0,{hex_file(CUST,20,2)})}
json_file './json/max_clocks.json'
'Boost Clock' = {json_file(0,{hex_file(CUST,8,3)})}

[gap]
;mode=table
;background=false
;gap=25

[GPU Table package Info]
;mode=table
;background=false
;spacing=4
;gap=20
;header_indent=true
;info_text_color=header
;section_text_color=header
'GPU' = '{gpu_speedo}'

[GPU Table]
;mode=table
;spacing=4
;gap=0
hex_file '/atmosphere/kips/loader.kip'
mariko:
json_file './json/gpu_uv_m.json'
'UV Level' = {json_file(0,{hex_file(CUST,40,1)})}
ini_file '/config/sys-clk/config.ini'
json_file './json/gpu_dvfs_offset_info.json'
'Auto Vmin Offset' = {json_file(0,{ini_file(values,gpu_vmin_offset)})}
json_file './json/vmin.json'
'Vmin' = {json_file(0,{hex_file(CUST,56,2)})}
'Vmax' = {json_file(0,{hex_file(CUST,60,2)})}
json_file './json/voltage_offset.json'
'Volt Offset' = {json_file(0,{hex_file(CUST,44,1)})}
erista:
json_file './json/gpu_uv_e.json'
'UV Level' = {json_file(0,{hex_file(CUST,36,1)})}
json_file './json/mv.json'
'Vmin' = {json_file(0,{hex_file(CUST,48,2)})}
json_file './json/voltage_offset.json'
'Volt Offset' = {json_file(0,{hex_file(CUST,44,1)})}
;gap=100

[@Custom Table]
[Custom Table]
;mode=table
;background=false
;spacing=4
;gap=20
;header_indent=true
;info_text_color=header
;section_text_color=header
hex_file '/atmosphere/kips/loader.kip'
json_file './json/version.json'
'Custom Table' = '{json_file(0,{hex_file(CUST,260,1)})} kip'

[Custom Table]
;mode=table
;spacing=5
;gap=35
hex_file '/atmosphere/kips/loader.kip'
json_file './json/vmin.json'
'76 - 230 MHz' = {json_file(0,{hex_file(CUST,132,2)})}
'307 MHz' = {json_file(0,{hex_file(CUST,136,2)})}
'384 MHz' = {json_file(0,{hex_file(CUST,140,2)})}
'460 MHz' = {json_file(0,{hex_file(CUST,144,2)})}
'537 MHz' = {json_file(0,{hex_file(CUST,148,2)})}
'614 MHz' = {json_file(0,{hex_file(CUST,152,2)})}
'691 MHz' = {json_file(0,{hex_file(CUST,156,2)})}
'768 MHz' = {json_file(0,{hex_file(CUST,160,2)})}
'844 MHz' = {json_file(0,{hex_file(CUST,164,2)})}
'921 MHz' = {json_file(0,{hex_file(CUST,168,2)})}
'998 MHz' = {json_file(0,{hex_file(CUST,172,2)})}
'1075 MHz' = {json_file(0,{hex_file(CUST,176,2)})}
'1152 MHz' = {json_file(0,{hex_file(CUST,180,2)})}
mariko:
'1228 MHz' = {json_file(0,{hex_file(CUST,184,2)})}
'1267 MHz' = {json_file(0,{hex_file(CUST,188,2)})}
'1305 MHz' = {json_file(0,{hex_file(CUST,192,2)})}
'1344 MHz' = {json_file(0,{hex_file(CUST,196,2)})}
'1382 MHz' = {json_file(0,{hex_file(CUST,200,2)})}
'1420 MHz' = {json_file(0,{hex_file(CUST,204,2)})}
'1459 MHz' = {json_file(0,{hex_file(CUST,208,2)})}
'1497 MHz' = {json_file(0,{hex_file(CUST,212,2)})}
'1536 MHz' = {json_file(0,{hex_file(CUST,216,2)})}

[Speedos1]
;mode=table
;background=false
;spacing=4
;gap=15
;header_indent=true
;info_text_color=header
;section_text_color=header
'Device Info' = ' CPU   GPU    SOC'

[Speedos2]
;mode=table
;spacing=4
;gap=25
'Speedo' = '{cpu_speedo} | {gpu_speedo} | {soc_speedo}'
mariko:
'IDDQ' = '   {cpu_iddq} |     {gpu_iddq} |     {soc_iddq}'
erista:
'IDDQ' = ' {cpu_iddq} |   {gpu_iddq} |   {soc_iddq}'

[Device Info Table]
;mode=table
;spacing=4
;gap=15
'Firmware' = 'HOS {hos_version} | AMS {ams_version}'
'RAM' = '{ram_model}'