aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVishal Mahaveer <vishalm@ti.com>2019-03-19 15:59:12 +0200
committerSam Protsenko <semen.protsenko@linaro.org>2019-05-25 01:40:28 +0300
commit4b06880370a7e0c7771a4a9af87aa2672501e724 (patch)
tree0f54bf292c52e5d9a0d6bd3e8851e94e2eb44b16
parent7388565a8149845ffd128261125e1669eae7e466 (diff)
ARM: dts: dra7x-evm: add android early mount partitions
Add support for mounting Android partitions "system" and "vendor" early. This is for first stage mount done by init. Other partitions like "data", "cache", etc.. continue to be loaded by fstab file. [1] https://source.android.com/devices/architecture/kernel/modular-kernels#mounting-partitions-early-first-stage-mount Signed-off-by: Vishal Mahaveer <vishalm@ti.com> Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
-rw-r--r--arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi1
-rw-r--r--arch/arm/boot/dts/dra7xx-android-fstab.dtsi32
2 files changed, 33 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
index 1e6620f139dd..5dabcab5c30b 100644
--- a/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
+++ b/arch/arm/boot/dts/am57xx-beagle-x15-common.dtsi
@@ -12,6 +12,7 @@
#include "dra74x-mmc-iodelay.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
+#include "dra7xx-android-fstab.dtsi"
/ {
compatible = "ti,am572x-beagle-x15", "ti,am5728", "ti,dra742", "ti,dra74", "ti,dra7";
diff --git a/arch/arm/boot/dts/dra7xx-android-fstab.dtsi b/arch/arm/boot/dts/dra7xx-android-fstab.dtsi
new file mode 100644
index 000000000000..b40822a01325
--- /dev/null
+++ b/arch/arm/boot/dts/dra7xx-android-fstab.dtsi
@@ -0,0 +1,32 @@
+/*
+ * Copyright (C) 2017 Texas Instruments Incorporated - http://www.ti.com/
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation.
+ */
+
+/ {
+ firmware {
+ android {
+ compatible = "android,firmware";
+ fstab {
+ compatible = "android,fstab";
+ system {
+ compatible = "android,system";
+ dev = "/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/system";
+ type = "ext4";
+ mnt_flags = "ro";
+ fsmgr_flags = "wait";
+ };
+ vendor {
+ compatible = "android,vendor";
+ dev = "/dev/block/platform/44000000.ocp/480b4000.mmc/by-name/vendor";
+ type = "ext4";
+ mnt_flags = "ro";
+ fsmgr_flags = "wait";
+ };
+ };
+ };
+ };
+};