blob: fe5d816f9eea56036fb66e0fe841a1bb0604db03 [file] [log] [blame]
Jim Yuanf5da1de2019-03-25 09:49:24 -07001From a3283c6922dee8ebfb3ea9ac7d22047e6e7bca00 Mon Sep 17 00:00:00 2001
2From: Jim Yuan <jim.yuan@supermicro.com>
3Date: Tue, 9 May 2017 14:34:56 -0700
4Subject: [PATCH 14/14] add gain and offset for 1300w 48V DC power supply.
5
6Signed-off-by: Jim Yuan <jim.yuan@supermicro.com>
7---
8 src/usr/hwpf/hwp/start_payload/start_payload.C | 11 +++++++++++
9 1 file changed, 11 insertions(+)
10
11diff --git a/src/usr/hwpf/hwp/start_payload/start_payload.C b/src/usr/hwpf/hwp/start_payload/start_payload.C
12index 80e62a0b6..309122785 100644
13--- a/src/usr/hwpf/hwp/start_payload/start_payload.C
14+++ b/src/usr/hwpf/hwp/start_payload/start_payload.C
15@@ -287,6 +287,7 @@ enum
16 PWS_1600 = 0,
17 PWS_1000 = 1,
18 PWS_1200 = 2,
19+PWS_1300 = 3,
20 PWS_UNKNOWN = 0xFE,
21 };
22
23@@ -382,6 +383,7 @@ uint8_t getPSUFRUFromIPMICommands(void)
24 uint8_t pws1600[] = {'P','W','S','-','1','K','6','2','A','-','1','R'};
25 uint8_t pws1000[] = {'P','W','S','-','1','K','0','2','A','-','1','R'};
26 uint8_t pws1200[] = {'P','W','S','-','1','K','2','2','A','-','1','R'};
27+ uint8_t pws1300[] = {'P','W','S','-','1','K','3','0','D','-','1','R'};
28
29 //code to calculate product part number size and offset. should use structure. refer to FRU spec.
30 product_info_offset = frudata[4] * 8;
31@@ -407,6 +409,10 @@ uint8_t getPSUFRUFromIPMICommands(void)
32 for (uint8_t i = 0; pws1200[i] == frudata[fru_offset + i] ; i ++)
33 if (i == 11)
34 powerSupplyFru = PWS_1200;
35+
36+ for (uint8_t i = 0; pws1300[i] == frudata[fru_offset + i] ; i ++)
37+ if (i == 11)
38+ powerSupplyFru = PWS_1300;
39 }
40 else
41 powerSupplyFru = PWS_UNKNOWN;
42@@ -466,6 +472,11 @@ void setAPSSGainOffsetFromPWSInfo(void)
43 offset[TOTAL_SYSTEM_POWER] = 0;
44 break;
45
46+ case PWS_1300: //PWS-1K30D-1R (1300W 48V AC):
47+ gain[TOTAL_SYSTEM_POWER] = 51900;
48+ offset[TOTAL_SYSTEM_POWER] = 0;
49+ break;
50+
51 default:
52 //Do nothing, leave defaults
53 //Gen error for user attention?
54--
552.16.2.windows.1
56