mirror of
https://github.com/linux-sunxi/meta-sunxi.git
synced 2024-12-27 05:28:22 +01:00
Merge pull request #230 from floion/enable_emmc_in_kernel_and_uboot
Enable emmc in kernel and uboot for Nanopi Neo Air
This commit is contained in:
commit
712229cbe4
@ -0,0 +1,26 @@
|
|||||||
|
From f4a77da23b3890b53efab6a927cbe99b76ef3b26 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Florin Sarbu <florin@resin.io>
|
||||||
|
Date: Wed, 12 Sep 2018 14:22:49 +0200
|
||||||
|
Subject: [PATCH] nanopi_neo_air_defconfig: Enable eMMC support
|
||||||
|
|
||||||
|
Upstream-status: Pending
|
||||||
|
Signed-off-by: Florin Sarbu <florin@resin.io>
|
||||||
|
---
|
||||||
|
configs/nanopi_neo_air_defconfig | 1 +
|
||||||
|
1 file changed, 1 insertion(+)
|
||||||
|
|
||||||
|
diff --git a/configs/nanopi_neo_air_defconfig b/configs/nanopi_neo_air_defconfig
|
||||||
|
index ca9c2dd..74ce044 100644
|
||||||
|
--- a/configs/nanopi_neo_air_defconfig
|
||||||
|
+++ b/configs/nanopi_neo_air_defconfig
|
||||||
|
@@ -10,6 +10,7 @@ CONFIG_DEFAULT_DEVICE_TREE="sun8i-h3-nanopi-neo-air"
|
||||||
|
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
|
||||||
|
CONFIG_CONSOLE_MUX=y
|
||||||
|
CONFIG_SPL=y
|
||||||
|
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2
|
||||||
|
# CONFIG_CMD_FLASH is not set
|
||||||
|
# CONFIG_SPL_DOS_PARTITION is not set
|
||||||
|
# CONFIG_SPL_ISO_PARTITION is not set
|
||||||
|
--
|
||||||
|
2.7.4
|
||||||
|
|
@ -18,6 +18,7 @@ DEFAULT_PREFERENCE_sun50i="1"
|
|||||||
|
|
||||||
SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
|
SRC_URI = "git://git.denx.de/u-boot.git;branch=master \
|
||||||
file://u-boot-pylibfdt-native-build.patch \
|
file://u-boot-pylibfdt-native-build.patch \
|
||||||
|
file://0001-nanopi_neo_air_defconfig-Enable-eMMC-support.patch \
|
||||||
file://boot.cmd \
|
file://boot.cmd \
|
||||||
"
|
"
|
||||||
|
|
||||||
|
@ -9,18 +9,22 @@ This patch was originally submitted by Jelle van der Waa. Martin Kelly
|
|||||||
modified it to compile on the latest kernel, fixed up some review
|
modified it to compile on the latest kernel, fixed up some review
|
||||||
comments from Maxime Ripard, and re-tested the patch.
|
comments from Maxime Ripard, and re-tested the patch.
|
||||||
|
|
||||||
|
The patch has been reworked to add back eMMC support which has been left
|
||||||
|
out at the last backport.
|
||||||
|
|
||||||
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
|
Cc: Maxime Ripard <maxime.ripard@free-electrons.com>
|
||||||
Cc: linux-sunxi@googlegroups.com
|
Cc: linux-sunxi@googlegroups.com
|
||||||
Cc: devicetree@vger.kernel.org
|
Cc: devicetree@vger.kernel.org
|
||||||
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
Signed-off-by: Jelle van der Waa <jelle@vdwaa.nl>
|
||||||
Signed-off-by: Martin Kelly <mkelly@xevo.com>
|
Signed-off-by: Martin Kelly <mkelly@xevo.com>
|
||||||
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com>
|
||||||
|
Signed-off-by: Florin Sarbu <florin@resin.io>
|
||||||
---
|
---
|
||||||
arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 24 ++++++++++++++++++++++++
|
arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts | 34 +++++++++++++++++++++++++++
|
||||||
1 file changed, 24 insertions(+)
|
1 file changed, 34 insertions(+)
|
||||||
|
|
||||||
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
diff --git a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
||||||
index 03ff6f8b93ff..920849092cc8 100644
|
index 03ff6f8..a9331fe 100644
|
||||||
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
--- a/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
||||||
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
+++ b/arch/arm/boot/dts/sun8i-h3-nanopi-neo-air.dts
|
||||||
@@ -72,6 +72,11 @@
|
@@ -72,6 +72,11 @@
|
||||||
@ -35,7 +39,7 @@ index 03ff6f8b93ff..920849092cc8 100644
|
|||||||
};
|
};
|
||||||
|
|
||||||
&mmc0 {
|
&mmc0 {
|
||||||
@@ -84,6 +89,25 @@
|
@@ -84,6 +89,35 @@
|
||||||
status = "okay";
|
status = "okay";
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -57,6 +61,16 @@ index 03ff6f8b93ff..920849092cc8 100644
|
|||||||
+ interrupt-names = "host-wake";
|
+ interrupt-names = "host-wake";
|
||||||
+ };
|
+ };
|
||||||
+};
|
+};
|
||||||
|
+
|
||||||
|
+&mmc2 {
|
||||||
|
+ pinctrl-names = "default";
|
||||||
|
+ pinctrl-0 = <&mmc2_8bit_pins>;
|
||||||
|
+ vmmc-supply = <®_vcc3v3>;
|
||||||
|
+ vqmmc-supply = <®_vcc3v3>;
|
||||||
|
+ bus-width = <8>;
|
||||||
|
+ non-removable;
|
||||||
|
+ status = "okay";
|
||||||
|
+};
|
||||||
+
|
+
|
||||||
&uart0 {
|
&uart0 {
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
Loading…
Reference in New Issue
Block a user