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>
12 files changed
tree: 0bfc94d40b0c93b71eb920b446a9f7d1321b1c94
  1. .clang-format
  2. bootstrap.sh
  3. configure.ac
  4. i2c.h
  5. LICENSE
  6. MAINTAINERS
  7. Makefile.am
  8. README.md
  9. smbus.cpp
  10. smbus.hpp
  11. wistronoem.cpp
  12. wistronoem.hpp
README.md

wistron-ipmi-oem

Supported Commands

  • Detect the presence of Riser-F

Command Documentation

Detect the presence of Riser-F

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.