commit | 44cee319dd113335a7885a1ff63a287dc7706682 | [log] [tgz] |
---|---|---|
author | Ben Pai <Ben_Pai@wistron.com> | Mon Mar 16 15:24:46 2020 +0800 |
committer | Ben Pai <Ben_Pai@wistron.com> | Wed Mar 25 16:35:49 2020 +0800 |
tree | 0bfc94d40b0c93b71eb920b446a9f7d1321b1c94 | |
parent | 8a38a8417858850b6551de7564a483d051bdd60a [diff] |
Add wistron oem command to detect riser-f PNOR needs to know whether riser-f is present when poweron, so we add an oem command to detect whether riser-f is present. The result will return two bytes of data, the first byte is bus9 and the second byte is bus10. Return data will have 0x00 or 0x01. 0x00 means riser-f not present 0x01 means riser-f present Change-Id: I7d932b8e69b820b67466b83998d5bd3b8c472720 Signed-off-by: Ben Pai <Ben_Pai@wistron.com>
Netfun: 0x32 Command: 0x01
On the mihawk platform, different riser cards can be supported. In order to be able to distinguish the currently used riser cards, we design an ipmi-oem command to detect riser cards.
If the current riser-F is used, i2c command will get a data. If other riser cards are used, the i2c command will not get the data and will get a negative return value.