diff options
author | Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com> | 2019-10-18 13:11:25 +0200 |
---|---|---|
committer | Vineet Gupta <vgupta@synopsys.com> | 2019-10-22 18:58:29 +0200 |
commit | 8ca8fa7f22dcb0a3265490a690b0c3e27de681f9 (patch) | |
tree | 1ce66f927f9f7a9881c7cc175f5069b748345ed2 | |
parent | Linux 5.4-rc4 (diff) | |
download | linux-8ca8fa7f22dcb0a3265490a690b0c3e27de681f9.tar.xz linux-8ca8fa7f22dcb0a3265490a690b0c3e27de681f9.zip |
ARC: [plat-hsdk]: Enable on-board SPI NOR flash IC
HSDK board has sst26wf016b SPI NOR flash IC installed, enable it.
Acked-by: Alexey Brodkin <abrodkin@synopsys.com>
Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
-rw-r--r-- | arch/arc/boot/dts/hsdk.dts | 8 | ||||
-rw-r--r-- | arch/arc/configs/hsdk_defconfig | 2 |
2 files changed, 10 insertions, 0 deletions
diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts index bfc7f5f5d6f2..9bea5daadd23 100644 --- a/arch/arc/boot/dts/hsdk.dts +++ b/arch/arc/boot/dts/hsdk.dts @@ -264,6 +264,14 @@ clocks = <&input_clk>; cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>, <&creg_gpio 1 GPIO_ACTIVE_LOW>; + + spi-flash@0 { + compatible = "sst26wf016b", "jedec,spi-nor"; + reg = <0>; + #address-cells = <1>; + #size-cells = <1>; + spi-max-frequency = <4000000>; + }; }; creg_gpio: gpio@14b0 { diff --git a/arch/arc/configs/hsdk_defconfig b/arch/arc/configs/hsdk_defconfig index 9b9a74444ce2..22fc70396a3b 100644 --- a/arch/arc/configs/hsdk_defconfig +++ b/arch/arc/configs/hsdk_defconfig @@ -32,6 +32,8 @@ CONFIG_INET=y CONFIG_DEVTMPFS=y # CONFIG_STANDALONE is not set # CONFIG_PREVENT_FIRMWARE_BUILD is not set +CONFIG_MTD=y +CONFIG_MTD_SPI_NOR=y CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_NETDEVICES=y |