diff options
author | Icenowy Zheng <icenowy@sipeed.com> | 2021-07-22 14:30:04 +0800 |
---|---|---|
committer | Andre Przywara <andre.przywara@arm.com> | 2021-10-25 14:54:50 +0100 |
commit | 03510bf62149d8cbdc39564dcd4a3195f6d8d79e (patch) | |
tree | a925708cc7d3f0efaed7bec271a4649a293e56e6 /arch | |
parent | 08bdb976b71ff61b894424e585e4421a706da24a (diff) | |
download | u-boot-03510bf62149d8cbdc39564dcd4a3195f6d8d79e.zip u-boot-03510bf62149d8cbdc39564dcd4a3195f6d8d79e.tar.gz u-boot-03510bf62149d8cbdc39564dcd4a3195f6d8d79e.tar.bz2 |
sunxi: only include alias for eMMC when mmc2 used
Some Allwinner SoCs (e.g. R329) doesn't have a MMC2 controller at all,
and on boards that we do not utilize MMC2, the alias for it is just
useless.
Only include the alias when we specify CONFIG_MMC_SUNXI_EXTRA_SLOT to 2.
Signed-off-by: Icenowy Zheng <icenowy@sipeed.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/dts/sunxi-u-boot.dtsi | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/dts/sunxi-u-boot.dtsi b/arch/arm/dts/sunxi-u-boot.dtsi index 4a6ed3a..b7244c1 100644 --- a/arch/arm/dts/sunxi-u-boot.dtsi +++ b/arch/arm/dts/sunxi-u-boot.dtsi @@ -13,7 +13,9 @@ / { aliases { mmc0 = &mmc0; +#if CONFIG_MMC_SUNXI_EXTRA_SLOT == 2 mmc1 = &mmc2; +#endif }; binman: binman { |