Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8ab5f1fb authored by Rafał Miłecki's avatar Rafał Miłecki Committed by Florian Fainelli
Browse files

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: default avatarRafał Miłecki <zajec5@gmail.com>
Signed-off-by: default avatarFlorian Fainelli <f.fainelli@gmail.com>
parent 9b31970c
Loading
Loading
Loading
Loading
+5 −11
Original line number Diff line number Diff line
@@ -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"

&nandcs {
	nand-ecc-algo = "bch";
	nand-ecc-strength = <8>;
	nand-ecc-step-size = <512>;
};
	};
};
+18 −0
Original line number Diff line number Diff line
/*
 * 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>;
		};
	};
};