diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-06-06 09:43:49 +0200 |
---|---|---|
committer | Florian Fainelli <f.fainelli@gmail.com> | 2016-07-06 19:42:26 -0700 |
commit | 8ab5f1fbd39c29125403678a0caf0a71046da361 (patch) | |
tree | 560c56811585d6c0c5ad85b1666e00db45854a23 /arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi | |
parent | 9b31970c3b12d1d340023849987355f3f863252e (diff) | |
download | talos-obmc-linux-8ab5f1fbd39c29125403678a0caf0a71046da361.tar.gz talos-obmc-linux-8ab5f1fbd39c29125403678a0caf0a71046da361.zip |
ARM: BCM5301X: Specify NAND chip select and ECC in separated files
Using separated file with common chip select parameters will allow us
adding other ECC setups without code duplication.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Diffstat (limited to 'arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi')
-rw-r--r-- | arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi index d10781e36f54..9a9630ded306 100644 --- a/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi +++ b/arch/arm/boot/dts/bcm5301x-nand-cs0-bch8.dtsi @@ -9,16 +9,10 @@ * Licensed under the GNU/GPL. See COPYING for details. */ -/ { - nand@18028000 { - nandcs@0 { - compatible = "brcm,nandcs"; - reg = <0>; - #address-cells = <1>; - #size-cells = <1>; +#include "bcm5301x-nand-cs0.dtsi" - nand-ecc-strength = <8>; - nand-ecc-step-size = <512>; - }; - }; +&nandcs { + nand-ecc-algo = "bch"; + nand-ecc-strength = <8>; + nand-ecc-step-size = <512>; }; |