diff options
author | Vikas Manocha <vikas.manocha@st.com> | 2015-07-03 01:29:44 (GMT) |
---|---|---|
committer | Jagan Teki <jteki@openedev.com> | 2015-07-03 08:20:53 (GMT) |
commit | 90a2f7171182f3b96c28b2dcff67b02a3164cdb1 (patch) | |
tree | dfd0eb215dab5e1c4ea8c8d1a7eeb0d977013c84 /arch/arm | |
parent | c0535c0ef0b7e7a3e4c1011266bf26baf94fd4a3 (diff) | |
download | u-boot-90a2f7171182f3b96c28b2dcff67b02a3164cdb1.tar.xz |
spi: cadence_qspi: get sram size from device tree
sram size could be different on different socs, e.g. on stv0991 it is 256 while
on altera platform it is 128. It is better to receive it from device tree.
Signed-off-by: Vikas Manocha <vikas.manocha@st.com>
Tested-by: Stefan Roese <sr@denx.de>
Reviewed-by: Jagannadh Teki <jteki@openedev.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/dts/socfpga.dtsi | 1 | ||||
-rw-r--r-- | arch/arm/dts/stv0991.dts | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/dts/socfpga.dtsi b/arch/arm/dts/socfpga.dtsi index bf791c5..9b12420 100644 --- a/arch/arm/dts/socfpga.dtsi +++ b/arch/arm/dts/socfpga.dtsi @@ -639,6 +639,7 @@ ext-decoder = <0>; /* external decoder */ num-cs = <4>; fifo-depth = <128>; + sram-size = <128>; bus-num = <2>; status = "disabled"; }; diff --git a/arch/arm/dts/stv0991.dts b/arch/arm/dts/stv0991.dts index 3b1efca..556df82 100644 --- a/arch/arm/dts/stv0991.dts +++ b/arch/arm/dts/stv0991.dts @@ -35,6 +35,7 @@ ext-decoder = <0>; /* external decoder */ num-cs = <4>; fifo-depth = <256>; + sram-size = <256>; bus-num = <0>; status = "okay"; |