more debug feature

This commit is contained in:
souldbminersmwc committed 2026-08-13 20:03:53 -04:00
1 parent 539cd58464
commit 836e24c82e
12 files changed
+111 -23

No files matched your search

@@ -145,6 +145,7 @@ namespace kip {
CUST_WRITE_FIELD_BATCH(&table, t6_tRTW_fine_tune, config::GetConfigValue(KipConfigValue_t6_tRTW_fine_tune));
CUST_WRITE_FIELD_BATCH(&table, t7_tWTR_fine_tune, config::GetConfigValue(KipConfigValue_t7_tWTR_fine_tune));
CUST_WRITE_FIELD_BATCH(&table, pcvLogVerbosity, config::GetConfigValue(KipConfigValue_PcvDebugVerbosity));
if (!cust_write_table_f(fp, &table)) {
fclose(fp);
@@ -329,6 +330,8 @@ namespace kip {
configValues.values[KipConfigValue_t7_tWTR_fine_tune] = cust_get_tWTR_fine_tune(&table);
configValues.values[KipConfigValue_t6_tRTW_fine_tune] = cust_get_tRTW_fine_tune(&table);
configValues.values[KipConfigValue_PcvDebugVerbosity] = cust_get_log_verbosity(&table);
if (sizeof(HocClkConfigValueList) <= sizeof(configValues)) {
if (config::SetConfigValues(&configValues, true)) {
fileUtils::LogLine("[kip] KIP loaded. CRC32: %ld (Cust Rev %ld)", configValues.values[KipCrc32],
+7 -1
View File
@@ -99,8 +99,10 @@ namespace kip {
u32 t6_tRTW_fine_tune;
u32 t7_tWTR_fine_tune;
u32 pcvLogVerbosity;
u32 reserved[60];
u32 reserved[58];
} CustomizeTable;
#define CUST_MAGIC "CUST"
@@ -505,6 +507,10 @@ namespace kip {
return CUST_GET_FIELD(t, t7_tWTR_fine_tune);
}
static inline u32 cust_get_log_verbosity(const CustomizeTable *t) {
return CUST_GET_FIELD(t, pcvLogVerbosity);
}
static inline u32 cust_get_read_latency_1333(const CustomizeTable *t) {
return CUST_GET_FIELD(t, readLatency1333);
}