Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Eugeniy Paltsev and committed by
Vineet Gupta
8ca8fa7f 7d194c21

+10
+8
arch/arc/boot/dts/hsdk.dts
··· 264 264 clocks = <&input_clk>; 265 265 cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>, 266 266 <&creg_gpio 1 GPIO_ACTIVE_LOW>; 267 + 268 + spi-flash@0 { 269 + compatible = "sst26wf016b", "jedec,spi-nor"; 270 + reg = <0>; 271 + #address-cells = <1>; 272 + #size-cells = <1>; 273 + spi-max-frequency = <4000000>; 274 + }; 267 275 }; 268 276 269 277 creg_gpio: gpio@14b0 {
+2
arch/arc/configs/hsdk_defconfig
··· 32 32 CONFIG_DEVTMPFS=y 33 33 # CONFIG_STANDALONE is not set 34 34 # CONFIG_PREVENT_FIRMWARE_BUILD is not set 35 + CONFIG_MTD=y 36 + CONFIG_MTD_SPI_NOR=y 35 37 CONFIG_SCSI=y 36 38 CONFIG_BLK_DEV_SD=y 37 39 CONFIG_NETDEVICES=y