samples: drivers: espi: Enable OOB channel explicitly
Sample showcase OOB transaction, enable OOB channel explicitly. Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
This commit is contained in:
parent
f93c1926e6
commit
aad8ad915d
1 changed files with 7 additions and 1 deletions
|
@ -162,7 +162,8 @@ int espi_init(void)
|
||||||
*/
|
*/
|
||||||
struct espi_cfg cfg = {
|
struct espi_cfg cfg = {
|
||||||
ESPI_IO_MODE_SINGLE_LINE,
|
ESPI_IO_MODE_SINGLE_LINE,
|
||||||
ESPI_CHANNEL_VWIRE | ESPI_CHANNEL_PERIPHERAL,
|
ESPI_CHANNEL_VWIRE | ESPI_CHANNEL_PERIPHERAL |
|
||||||
|
ESPI_CHANNEL_OOB,
|
||||||
MIN_ESPI_FREQ,
|
MIN_ESPI_FREQ,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -355,6 +356,11 @@ int espi_test(void)
|
||||||
{
|
{
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
|
/* Account for the time serial port is detected so log messages can
|
||||||
|
* be seen
|
||||||
|
*/
|
||||||
|
k_sleep(K_SECONDS(1));
|
||||||
|
|
||||||
#ifdef CONFIG_ESPI_GPIO_DEV_NEEDED
|
#ifdef CONFIG_ESPI_GPIO_DEV_NEEDED
|
||||||
gpio_dev0 = device_get_binding(CONFIG_ESPI_GPIO_DEV0);
|
gpio_dev0 = device_get_binding(CONFIG_ESPI_GPIO_DEV0);
|
||||||
if (!gpio_dev0) {
|
if (!gpio_dev0) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue