Commit 86769f03 authored by Siyuan Cheng's avatar Siyuan Cheng Committed by Fabio Baltieri
Browse files

sample: driver: spi_flash: Add em_starterkit support



Add em_starterkit support in spi_flash driver sample
output log:
JEDEC QSPI-NOR SPI flash testing
==========================

Test 1: Flash erase
Flash erase succeeded!

Test 2: Flash write
Attempting to write 4 bytes
Data read matches data written. Good!

Signed-off-by: default avatarSiyuan Cheng <siyuanc@synopsys.com>
parent ef9d5bbd
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
#
# Copyright (c) 2023 Synopsys.
#
# SPDX-License-Identifier: Apache-2.0
#

CONFIG_SPI_NOR=y
+9 −0
Original line number Diff line number Diff line
/*
 * Copyright (c) 2023 Synopsys.
 *
 * SPDX-License-Identifier: Apache-2.0
 */

&spi0 {
	cs-gpios = <&creg_gpio 5 GPIO_ACTIVE_HIGH>;
};