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:
Jose Alberto Meza 2020-04-08 17:38:19 -07:00 committed by Anas Nashif
commit aad8ad915d

View file

@ -162,7 +162,8 @@ int espi_init(void)
*/
struct espi_cfg cfg = {
ESPI_IO_MODE_SINGLE_LINE,
ESPI_CHANNEL_VWIRE | ESPI_CHANNEL_PERIPHERAL,
ESPI_CHANNEL_VWIRE | ESPI_CHANNEL_PERIPHERAL |
ESPI_CHANNEL_OOB,
MIN_ESPI_FREQ,
};
@ -355,6 +356,11 @@ int espi_test(void)
{
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
gpio_dev0 = device_get_binding(CONFIG_ESPI_GPIO_DEV0);
if (!gpio_dev0) {