Skip to content

Commit dafdef8

Browse files
albertofloydfabiobaltieri
authored andcommitted
samples: drivers: espi: Re-enable eSPI SAF for MEC152x board
Add missing device tree entry for SAF HW block. Re-enable driver for MEC152x board. Signed-off-by: Jose Alberto Meza <jose.a.meza.arellano@intel.com>
1 parent 48c21fa commit dafdef8

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

samples/drivers/espi/boards/mec15xxevb_assy6853.overlay

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@
1414
};
1515
};
1616

17+
&espi_saf0 {
18+
status = "okay";
19+
};
20+
1721
&spi0 {
1822
status = "okay";
1923
port_sel = <0>;

samples/drivers/espi/prj_mec15xxevb_assy6853.conf

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
88
# Sample code doesn't handle ACPI host communication
99
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
1010
# Test SAF flash portal read/erase/write on EVB
11-
# disabled CONFIG_ESPI_SAF since devicetree node for ESPI_SAF is
12-
# not currently enabled so this will fail to build
13-
#CONFIG_ESPI_SAF=y
11+
CONFIG_ESPI_SAF=y
1412
CONFIG_SPI=y
1513
CONFIG_SPI_XEC_QMSPI=y

samples/drivers/espi/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ static uint8_t flash_read_buf[MAX_TEST_BUF_SIZE];
6262
#endif
6363

6464
#ifdef CONFIG_ESPI_SAF
65-
#define SAF_BASE_ADDR DT_REG_ADDR(ESPI_SAF_NODE)
65+
#define SAF_BASE_ADDR DT_REG_ADDR(DT_NODELABEL(espi_saf0))
6666

6767
#define SAF_TEST_FREQ_HZ 24000000U
6868
#define SAF_TEST_BUF_SIZE 4096U

0 commit comments

Comments
 (0)