-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: - Support IPMB handler. Test plan: - Build code: Pass - Check IPMB is workable: Pass LOG: ``` root@bmc-oob:~# bic-util slot1 0x18 0x1 00 80 FF FF 02 BF 15 A0 00 00 00 00 00 00 00 ```
- Loading branch information
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,6 +20,7 @@ | |
#define I2C_BUS13 12 | ||
#define I2C_BUS14 13 | ||
|
||
#define IPMB_I2C_BMC I2C_BUS7 | ||
#define I2C_BUS_MAX_NUM 14 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#include <stdio.h> | ||
#include <string.h> | ||
#include "plat_ipmb.h" | ||
|
||
IPMB_config pal_IPMB_config_table[] = { | ||
// index, interface, channel, bus, channel_target_address, enable_status, self_address, | ||
// rx_thread_name, tx_thread_name | ||
{ BMC_IPMB_IDX, I2C_IF, BMC_IPMB, IPMB_I2C_BMC, BMC_I2C_ADDRESS, ENABLE, SELF_I2C_ADDRESS, | ||
"RX_BMC_IPMB_TASK", "TX_BMC_IPMB_TASK" }, | ||
{ EXP1_IPMB_IDX, I2C_IF, EXP1_IPMB, IPMB_EXP1_BUS, BIC1_I2C_ADDRESS, DISABLE, | ||
SELF_I2C_ADDRESS, "RX_EPX1_IPMB_TASK", "TX_EXP1_IPMB_TASK" }, | ||
{ EXP2_IPMB_IDX, I2C_IF, EXP2_IPMB, IPMB_EXP2_BUS, BIC2_I2C_ADDRESS, DISABLE, | ||
SELF_I2C_ADDRESS, "RX_EPX2_IPMB_TASK", "TX_EXP2_IPMB_TASK" }, | ||
{ RESERVED_IDX, RESERVED_IF, RESERVED, RESERVED_BUS, RESERVED_ADDRESS, DISABLE, | ||
RESERVED_ADDRESS, "RESERVED_ATTR", "RESERVED_ATTR" }, | ||
}; | ||
|
||
bool pal_load_ipmb_config(void) | ||
{ | ||
memcpy(IPMB_config_table, pal_IPMB_config_table, sizeof(pal_IPMB_config_table)); | ||
return true; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters