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:
Rafał Miłecki 2016-06-06 09:43:49 +02:00 committed by Florian Fainelli
parent 9b31970c3b
commit 8ab5f1fbd3
2 changed files with 23 additions and 11 deletions

View File

@ -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>;
};

View 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>;
};
};
};