summaryrefslogtreecommitdiffstats
path: root/configs/platform-v7a/patches/barebox-2017.07.0/0101-beaglebone-add-state-entry-for-mmc0-and-mmc1.patch
blob: 4dfd47c6a913bbadfd769999dc16d728948dffd7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
Date: Fri, 10 Jun 2016 14:02:30 +0200
Subject: [PATCH] beaglebone: add state entry for mmc0 and mmc1

Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
---
 arch/arm/dts/am335x-bone-common.dtsi | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/arch/arm/dts/am335x-bone-common.dtsi b/arch/arm/dts/am335x-bone-common.dtsi
index ef97d906616c..d14c6ded6a55 100644
--- a/arch/arm/dts/am335x-bone-common.dtsi
+++ b/arch/arm/dts/am335x-bone-common.dtsi
@@ -11,6 +11,21 @@
 		linux,stdout-path = &uart0;
 	};
 
+	bootstate: bootstate {
+		compatible = "barebox,bootstate";
+		backend-type = "nv";
+
+		system0 {
+			default_attempts = <3>;
+			boot = "mmc0";
+		};
+
+		system1 {
+			default_attempts = <3>;
+			boot = "mmc1";
+		};
+	};
+
 	cpus {
 		cpu@0 {
 			cpu0-supply = <&dcdc2_reg>;