Skip to content

Commit

Permalink
arm64: rockchip: Add some DTSO to disable sd/mmc
Browse files Browse the repository at this point in the history
This helps during developement to reduce the number of mmc controller.
  • Loading branch information
evadot committed May 13, 2021
1 parent 9e08f82 commit eb09408
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 1 deletion.
10 changes: 10 additions & 0 deletions sys/dts/arm64/overlays/rk3399-mmc0-disable.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3399";
};

&{/mmc@fe310000} {
status = "disabled";
};
10 changes: 10 additions & 0 deletions sys/dts/arm64/overlays/rk3399-mmc1-disable.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3399";
};

&{/mmc@fe320000} {
status = "disabled";
};
10 changes: 10 additions & 0 deletions sys/dts/arm64/overlays/rk3399-sdhci-disable.dtso
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/dts-v1/;
/plugin/;

/ {
compatible = "rockchip,rk3399";
};

&{/sdhci@fe330000} {
status = "disabled";
};
5 changes: 4 additions & 1 deletion sys/modules/dtb/rockchip/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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>

0 comments on commit eb09408

Please sign in to comment.