forked from ebutera/meta-sunxi
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #175 from Kynetics/master
Add support for eMMC variant of OLinuXino Lime2
- Loading branch information
Showing
6 changed files
with
106 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#@TYPE: Machine | ||
#@NAME: Olimex A20-OLinuXino Lime2 Board with 4GB eMMC | ||
#@DESCRIPTION: Machine configuration for the Olimex A20-OLinuXino Lime2 Board with 4GB eMMC, based on Allwinner A20 CPU | ||
#https://github.com/OLIMEX/OLINUXINO | ||
|
||
require conf/machine/include/sun7i.inc | ||
|
||
KERNEL_DEVICETREE = "sun7i-a20-olinuxino-lime2-emmc.dtb" | ||
UBOOT_MACHINE = "A20-OLinuXino-Lime2-eMMC_config" | ||
SUNXI_FEX_FILE = "sys_config/a20/a20-olinuxino_lime2.fex" |
49 changes: 49 additions & 0 deletions
49
recipes-bsp/u-boot/files/0001-sunxi-add-A20-OLinuXino-Lime2-eMMC-defconfig.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
From f50ee5d9684ddc237d86841fb57a0cc6daaa76e7 Mon Sep 17 00:00:00 2001 | ||
From: Diego Rondini <diego.rondini@kynetics.com> | ||
Date: Thu, 13 Apr 2017 06:51:39 +0000 | ||
Subject: [PATCH] sunxi: add A20-OLinuXino-Lime2-eMMC defconfig | ||
|
||
--- | ||
configs/A20-OLinuXino-Lime2-eMMC_defconfig | 30 ++++++++++++++++++++++++++++++ | ||
1 file changed, 30 insertions(+) | ||
create mode 100644 configs/A20-OLinuXino-Lime2-eMMC_defconfig | ||
|
||
diff --git a/configs/A20-OLinuXino-Lime2-eMMC_defconfig b/configs/A20-OLinuXino-Lime2-eMMC_defconfig | ||
new file mode 100644 | ||
index 0000000..b7be1a2 | ||
--- /dev/null | ||
+++ b/configs/A20-OLinuXino-Lime2-eMMC_defconfig | ||
@@ -0,0 +1,30 @@ | ||
+CONFIG_ARM=y | ||
+CONFIG_ARCH_SUNXI=y | ||
+CONFIG_MACH_SUN7I=y | ||
+CONFIG_DRAM_CLK=384 | ||
+CONFIG_MMC0_CD_PIN="PH1" | ||
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2 | ||
+CONFIG_USB0_VBUS_PIN="PC17" | ||
+CONFIG_USB0_VBUS_DET="PH5" | ||
+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2-emmc" | ||
+# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set | ||
+CONFIG_SYS_EXTRA_OPTIONS="SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3)" | ||
+CONFIG_SPL=y | ||
+CONFIG_SPL_I2C_SUPPORT=y | ||
+# CONFIG_CMD_IMLS is not set | ||
+# CONFIG_CMD_FLASH is not set | ||
+CONFIG_CMD_DFU=y | ||
+CONFIG_CMD_USB_MASS_STORAGE=y | ||
+# CONFIG_CMD_FPGA is not set | ||
+CONFIG_DFU_RAM=y | ||
+CONFIG_RTL8211X_PHY_FORCE_MASTER=y | ||
+CONFIG_ETH_DESIGNWARE=y | ||
+CONFIG_AXP_ALDO3_VOLT=2800 | ||
+CONFIG_AXP_ALDO4_VOLT=2800 | ||
+CONFIG_USB_EHCI_HCD=y | ||
+CONFIG_USB_MUSB_GADGET=y | ||
+CONFIG_USB_GADGET=y | ||
+CONFIG_USB_GADGET_DOWNLOAD=y | ||
+CONFIG_G_DNL_MANUFACTURER="Allwinner Technology" | ||
+CONFIG_G_DNL_VENDOR_NUM=0x1f3a | ||
+CONFIG_G_DNL_PRODUCT_NUM=0x1010 | ||
-- | ||
1.9.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
setenv bootargs console=${console} console=tty1 root=/dev/mmcblk0p2 rootwait panic=10 ${extra} | ||
# Default to (primary) SD | ||
rootdev=mmcblk0p2 | ||
if itest.b *0x28 == 0x02 ; then | ||
# U-Boot loaded from eMMC or secondary SD so use it for rootfs too | ||
echo "U-boot loaded from eMMC or secondary SD" | ||
rootdev=mmcblk1p2 | ||
fi | ||
setenv bootargs console=${console} console=tty1 root=/dev/${rootdev} rootwait panic=10 ${extra} | ||
load mmc 0:1 ${fdt_addr_r} ${fdtfile} || load mmc 0:1 ${fdt_addr_r} boot/${fdtfile} | ||
load mmc 0:1 ${kernel_addr_r} zImage || load mmc 0:1 ${kernel_addr_r} boot/zImage || load mmc 0:1 ${kernel_addr_r} uImage || load mmc 0:1 ${kernel_addr_r} boot/uImage | ||
bootz ${kernel_addr_r} - ${fdt_addr_r} || bootm ${kernel_addr_r} - ${fdt_addr_r} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
...kernel/linux/linux-4.9.20/0001-ARM-dts-sunxi-Change-node-name-for-pwrseq-pin-on-Oli.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
From 3116d37651d77125bf50f81f859b1278e02ccce6 Mon Sep 17 00:00:00 2001 | ||
From: Emmanuel Vadot <manu@bidouilliste.com> | ||
Date: Wed, 14 Dec 2016 15:57:24 +0100 | ||
Subject: [PATCH] ARM: dts: sunxi: Change node name for pwrseq pin on | ||
Olinuxino-lime2-emmc | ||
|
||
The node name for the power seq pin is mmc2@0 like the mmc2_pins_a one. | ||
This makes the original node (mmc2_pins_a) scrapped out of the dtb and | ||
result in a unusable eMMC if U-Boot didn't configured the pins to the | ||
correct functions. | ||
|
||
Upstream-Status: Backport from v4.10 | ||
|
||
Signed-off-by: Emmanuel Vadot <manu@bidouilliste.com> | ||
Signed-off-by: Maxime Ripard <maxime.ripard@free-electrons.com> | ||
--- | ||
arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts | 2 +- | ||
1 file changed, 1 insertion(+), 1 deletion(-) | ||
|
||
diff --git a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts | ||
index 5ea4915..10d3074 100644 | ||
--- a/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts | ||
+++ b/arch/arm/boot/dts/sun7i-a20-olinuxino-lime2-emmc.dts | ||
@@ -56,7 +56,7 @@ | ||
}; | ||
|
||
&pio { | ||
- mmc2_pins_nrst: mmc2@0 { | ||
+ mmc2_pins_nrst: mmc2-rst-pin { | ||
allwinner,pins = "PC16"; | ||
allwinner,function = "gpio_out"; | ||
allwinner,drive = <SUN4I_PINCTRL_10_MA>; | ||
-- | ||
2.7.4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters