Skip to content

Commit 4bf9db6

Browse files
scottwcpgnashif
authored andcommitted
samples: drivers: espi: Add simple SAF tests
Update sample espi driver test to exercise some SAF functionality based on the limited hardware available. Note the SAF test will erase a section of the flash. SAF tests are enabled for the EVB only. Signed-off-by: Scott Worley <[email protected]>
1 parent 2b926db commit 4bf9db6

File tree

5 files changed

+784
-1
lines changed

5 files changed

+784
-1
lines changed

samples/drivers/espi/boards/mec1501modular_assy6885.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@
1313
rsm-gpios = <&gpio_040_076 12 GPIO_ACTIVE_HIGH>;
1414
};
1515
};
16+
17+
&spi0 {
18+
status = "okay";
19+
port_sel = <0>;
20+
chip_select = <0>;
21+
lines = <4>;
22+
};

samples/drivers/espi/boards/mec15xxevb_assy6853.overlay

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,10 @@
1313
rsm-gpios = <&gpio_040_076 12 GPIO_ACTIVE_HIGH>;
1414
};
1515
};
16+
17+
&spi0 {
18+
status = "okay";
19+
port_sel = <0>;
20+
chip_select = <0>;
21+
lines = <4>;
22+
};

samples/drivers/espi/prj.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
CONFIG_ESPI=y
22
CONFIG_STDOUT_CONSOLE=y
33
CONFIG_PRINTK=y
4-
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# eSPI + mec15xxevb_assy6853
2+
CONFIG_ESPI=y
3+
CONFIG_LOG=y
4+
CONFIG_LOG_BUFFER_SIZE=4096
5+
CONFIG_LOG_PROCESS_THREAD_SLEEP_MS=100
6+
# Disable only for this board to check notifications
7+
CONFIG_ESPI_AUTOMATIC_WARNING_ACKNOWLEDGE=n
8+
# Sample code doesn't handle ACPI host communication
9+
CONFIG_ESPI_PERIPHERAL_HOST_IO=n
10+
# Test SAF flash portal read/erase/write on EVB
11+
CONFIG_ESPI_SAF=y
12+
CONFIG_SPI=y
13+
CONFIG_SPI_XEC_QMSPI=y

0 commit comments

Comments
 (0)