git: eb094080855e - main - arm64: rockchip: Add some DTSO to disable sd/mmc
Emmanuel Vadot
manu at FreeBSD.org
Thu May 13 16:15:46 UTC 2021
The branch main has been updated by manu:
URL: https://cgit.FreeBSD.org/src/commit/?id=eb094080855e1e8c28a70dbebab3e6ecbf8c1255
commit eb094080855e1e8c28a70dbebab3e6ecbf8c1255
Author: Emmanuel Vadot <manu at FreeBSD.org>
AuthorDate: 2021-04-21 13:25:29 +0000
Commit: Emmanuel Vadot <manu at FreeBSD.org>
CommitDate: 2021-05-13 16:15:31 +0000
arm64: rockchip: Add some DTSO to disable sd/mmc
This helps during developement to reduce the number of mmc controller.
---
sys/dts/arm64/overlays/rk3399-mmc0-disable.dtso | 10 ++++++++++
sys/dts/arm64/overlays/rk3399-mmc1-disable.dtso | 10 ++++++++++
sys/dts/arm64/overlays/rk3399-sdhci-disable.dtso | 10 ++++++++++
sys/modules/dtb/rockchip/Makefile | 5 ++++-
4 files changed, 34 insertions(+), 1 deletion(-)
diff --git a/sys/dts/arm64/overlays/rk3399-mmc0-disable.dtso b/sys/dts/arm64/overlays/rk3399-mmc0-disable.dtso
new file mode 100644
index 000000000000..a638ed65c717
--- /dev/null
+++ b/sys/dts/arm64/overlays/rk3399-mmc0-disable.dtso
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3399";
+};
+
+&{/mmc at fe310000} {
+ status = "disabled";
+};
diff --git a/sys/dts/arm64/overlays/rk3399-mmc1-disable.dtso b/sys/dts/arm64/overlays/rk3399-mmc1-disable.dtso
new file mode 100644
index 000000000000..333be61da216
--- /dev/null
+++ b/sys/dts/arm64/overlays/rk3399-mmc1-disable.dtso
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3399";
+};
+
+&{/mmc at fe320000} {
+ status = "disabled";
+};
diff --git a/sys/dts/arm64/overlays/rk3399-sdhci-disable.dtso b/sys/dts/arm64/overlays/rk3399-sdhci-disable.dtso
new file mode 100644
index 000000000000..b386cc12e62a
--- /dev/null
+++ b/sys/dts/arm64/overlays/rk3399-sdhci-disable.dtso
@@ -0,0 +1,10 @@
+/dts-v1/;
+/plugin/;
+
+/ {
+ compatible = "rockchip,rk3399";
+};
+
+&{/sdhci at fe330000} {
+ status = "disabled";
+};
diff --git a/sys/modules/dtb/rockchip/Makefile b/sys/modules/dtb/rockchip/Makefile
index 12f59e4ee973..20df656bd148 100644
--- a/sys/modules/dtb/rockchip/Makefile
+++ b/sys/modules/dtb/rockchip/Makefile
@@ -15,7 +15,10 @@ DTS= \
rockchip/rk3399-firefly.dts \
rockchip/rk3399-rockpro64.dts
-DTSO= rk3328-dwc3.dtso
+DTSO= rk3328-dwc3.dtso \
+ rk3399-mmc0-disable.dtso \
+ rk3399-mmc1-disable.dtso \
+ rk3399-sdhci-disable.dtso
.endif
.include <bsd.dtb.mk>
More information about the dev-commits-src-main
mailing list