Skip to content

Commit 8ca8fa7

Browse files
Eugeniy Paltsevvineetgarc
authored andcommitted
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>
1 parent 7d194c2 commit 8ca8fa7

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

‎arch/arc/boot/dts/hsdk.dts‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,14 @@
264264
clocks = <&input_clk>;
265265
cs-gpios = <&creg_gpio 0 GPIO_ACTIVE_LOW>,
266266
<&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+
};
267275
};
268276

269277
creg_gpio: gpio@14b0 {

‎arch/arc/configs/hsdk_defconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ CONFIG_INET=y
3232
CONFIG_DEVTMPFS=y
3333
# CONFIG_STANDALONE is not set
3434
# CONFIG_PREVENT_FIRMWARE_BUILD is not set
35+
CONFIG_MTD=y
36+
CONFIG_MTD_SPI_NOR=y
3537
CONFIG_SCSI=y
3638
CONFIG_BLK_DEV_SD=y
3739
CONFIG_NETDEVICES=y

0 commit comments

Comments
 (0)