| From a3283c6922dee8ebfb3ea9ac7d22047e6e7bca00 Mon Sep 17 00:00:00 2001 |
| From: Jim Yuan <jim.yuan@supermicro.com> |
| Date: Tue, 9 May 2017 14:34:56 -0700 |
| Subject: [PATCH 14/14] add gain and offset for 1300w 48V DC power supply. |
| |
| Signed-off-by: Jim Yuan <jim.yuan@supermicro.com> |
| --- |
| src/usr/hwpf/hwp/start_payload/start_payload.C | 11 +++++++++++ |
| 1 file changed, 11 insertions(+) |
| |
| diff --git a/src/usr/hwpf/hwp/start_payload/start_payload.C b/src/usr/hwpf/hwp/start_payload/start_payload.C |
| index 80e62a0b6..309122785 100644 |
| --- a/src/usr/hwpf/hwp/start_payload/start_payload.C |
| +++ b/src/usr/hwpf/hwp/start_payload/start_payload.C |
| @@ -287,6 +287,7 @@ enum |
| PWS_1600 = 0, |
| PWS_1000 = 1, |
| PWS_1200 = 2, |
| +PWS_1300 = 3, |
| PWS_UNKNOWN = 0xFE, |
| }; |
| |
| @@ -382,6 +383,7 @@ uint8_t getPSUFRUFromIPMICommands(void) |
| uint8_t pws1600[] = {'P','W','S','-','1','K','6','2','A','-','1','R'}; |
| uint8_t pws1000[] = {'P','W','S','-','1','K','0','2','A','-','1','R'}; |
| uint8_t pws1200[] = {'P','W','S','-','1','K','2','2','A','-','1','R'}; |
| + uint8_t pws1300[] = {'P','W','S','-','1','K','3','0','D','-','1','R'}; |
| |
| //code to calculate product part number size and offset. should use structure. refer to FRU spec. |
| product_info_offset = frudata[4] * 8; |
| @@ -407,6 +409,10 @@ uint8_t getPSUFRUFromIPMICommands(void) |
| for (uint8_t i = 0; pws1200[i] == frudata[fru_offset + i] ; i ++) |
| if (i == 11) |
| powerSupplyFru = PWS_1200; |
| + |
| + for (uint8_t i = 0; pws1300[i] == frudata[fru_offset + i] ; i ++) |
| + if (i == 11) |
| + powerSupplyFru = PWS_1300; |
| } |
| else |
| powerSupplyFru = PWS_UNKNOWN; |
| @@ -466,6 +472,11 @@ void setAPSSGainOffsetFromPWSInfo(void) |
| offset[TOTAL_SYSTEM_POWER] = 0; |
| break; |
| |
| + case PWS_1300: //PWS-1K30D-1R (1300W 48V AC): |
| + gain[TOTAL_SYSTEM_POWER] = 51900; |
| + offset[TOTAL_SYSTEM_POWER] = 0; |
| + break; |
| + |
| default: |
| //Do nothing, leave defaults |
| //Gen error for user attention? |
| -- |
| 2.16.2.windows.1 |
| |