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>
This commit is contained in:
parent
9b31970c3b
commit
8ab5f1fbd3
|
@ -9,16 +9,10 @@
|
||||||
* Licensed under the GNU/GPL. See COPYING for details.
|
* Licensed under the GNU/GPL. See COPYING for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/ {
|
#include "bcm5301x-nand-cs0.dtsi"
|
||||||
nand@18028000 {
|
|
||||||
nandcs@0 {
|
|
||||||
compatible = "brcm,nandcs";
|
|
||||||
reg = <0>;
|
|
||||||
#address-cells = <1>;
|
|
||||||
#size-cells = <1>;
|
|
||||||
|
|
||||||
nand-ecc-strength = <8>;
|
&nandcs {
|
||||||
nand-ecc-step-size = <512>;
|
nand-ecc-algo = "bch";
|
||||||
};
|
nand-ecc-strength = <8>;
|
||||||
};
|
nand-ecc-step-size = <512>;
|
||||||
};
|
};
|
||||||
|
|
18
arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
Normal file
18
arch/arm/boot/dts/bcm5301x-nand-cs0.dtsi
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
/*
|
||||||
|
* Broadcom Northstar NAND.
|
||||||
|
*
|
||||||
|
* Copyright (C) 2015 Hauke Mehrtens <hauke@hauke-m.de>
|
||||||
|
*
|
||||||
|
* Licensed under the GNU/GPL. See COPYING for details.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/ {
|
||||||
|
nand@18028000 {
|
||||||
|
nandcs: nandcs@0 {
|
||||||
|
compatible = "brcm,nandcs";
|
||||||
|
reg = <0>;
|
||||||
|
#address-cells = <1>;
|
||||||
|
#size-cells = <1>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
Loading…
Reference in a new issue