Skip to content

Commit

Permalink
Even more fan settings!
Browse files Browse the repository at this point in the history
  • Loading branch information
datspike committed May 11, 2017
1 parent 1faead7 commit e48d375
Show file tree
Hide file tree
Showing 3 changed files with 95 additions and 1 deletion.
62 changes: 61 additions & 1 deletion MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,6 +596,46 @@ private void OpenFileDialog_Click(object sender, RoutedEventArgs e)
NAME = "Acoustic Limit (MHz)",
VALUE = atom_fan_table.ulMinFanSCLKAcousticLimit / 100
});
tableFAN.Items.Add(new {
NAME = "ucRevId",
VALUE = atom_fan_table.ucRevId
});
tableFAN.Items.Add(new {
NAME = "ucFanControlMode",
VALUE = atom_fan_table.ucFanControlMode
});
tableFAN.Items.Add(new {
NAME = "ucMinimumPWMLimit",
VALUE = atom_fan_table.ucMinimumPWMLimit
});
tableFAN.Items.Add(new {
NAME = "usFanGainEdge",
VALUE = atom_fan_table.usFanGainEdge
});
tableFAN.Items.Add(new {
NAME = "usFanGainHotspot",
VALUE = atom_fan_table.usFanGainHotspot
});
tableFAN.Items.Add(new {
NAME = "usFanGainLiquid",
VALUE = atom_fan_table.usFanGainLiquid
});
tableFAN.Items.Add(new {
NAME = "usFanGainVrVddc",
VALUE = atom_fan_table.usFanGainVrVddc
});
tableFAN.Items.Add(new {
NAME = "usFanGainVrMvdd",
VALUE = atom_fan_table.usFanGainVrMvdd
});
tableFAN.Items.Add(new {
NAME = "usFanGainPlx",
VALUE = atom_fan_table.usFanGainPlx
});
tableFAN.Items.Add(new {
NAME = "usFanGainHbm",
VALUE = atom_fan_table.usFanGainHbm
});

tableGPU.Items.Clear();
for (var i = 0; i < atom_sclk_table.ucNumEntries; i++) {
Expand Down Expand Up @@ -808,7 +848,27 @@ private void SaveFileDialog_Click(object sender, RoutedEventArgs e)
atom_fan_table.usFanOutputSensitivity = (UInt16)num;
} else if (name == "Acoustic Limit (MHz)") {
atom_fan_table.ulMinFanSCLKAcousticLimit = (UInt32)(num * 100);
}
} else if (name == "ucRevId") {
atom_fan_table.ucRevId = (Byte)num;
} else if (name == "ucFanControlMode") {
atom_fan_table.ucFanControlMode = (Byte)num;
} else if (name == "ucMinimumPWMLimit") {
atom_fan_table.ucMinimumPWMLimit = (Byte)num;
} else if (name == "usFanGainEdge") {
atom_fan_table.usFanGainEdge = (UInt16)(num);
} else if (name == "usFanGainHotspot") {
atom_fan_table.usFanGainHotspot = (UInt16)(num);
} else if (name == "usFanGainLiquid") {
atom_fan_table.usFanGainLiquid = (UInt16)(num);
} else if (name == "usFanGainVrVddc") {
atom_fan_table.usFanGainVrVddc = (UInt16)(num);
} else if (name == "usFanGainVrMvdd") {
atom_fan_table.usFanGainVrMvdd = (UInt16)(num);
} else if (name == "usFanGainPlx") {
atom_fan_table.usFanGainPlx = (UInt16)(num);
} else if (name == "usFanGainHbm") {
atom_fan_table.usFanGainHbm = (UInt16)(num);
}
}

for (var i = 0; i < tableGPU.Items.Count; i++) {
Expand Down
Binary file modified PolarisBiosEditor.exe
Binary file not shown.
34 changes: 34 additions & 0 deletions PolarisBiosEditor.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25123.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PolarisBiosEditor", "PolarisBiosEditor.csproj", "{61C0C546-8985-4328-B35A-97A979E654E4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|x64.ActiveCfg = Debug|x64
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|x64.Build.0 = Debug|x64
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|x86.ActiveCfg = Debug|x86
{61C0C546-8985-4328-B35A-97A979E654E4}.Debug|x86.Build.0 = Debug|x86
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|Any CPU.Build.0 = Release|Any CPU
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|x64.ActiveCfg = Release|x64
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|x64.Build.0 = Release|x64
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|x86.ActiveCfg = Release|x86
{61C0C546-8985-4328-B35A-97A979E654E4}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

0 comments on commit e48d375

Please sign in to comment.