Skip to contentSkip to conversation

sunxi: Add defconfig for Olinuxino Lime 2 EMMC version

PATCH New Emmanuel Vadot 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 sunxi: Add defconfig for Olinuxino Lime 2 EMMC version

---
 configs/A20-OLinuXino-Lime2-emmc_defconfig | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 configs/A20-OLinuXino-Lime2-emmc_defconfig
configs/A20-OLinuXino-Lime2-emmc_defconfig new file +21 -0
new file mode 100644
index 0000000..093c51f
@@ -0,0 +1,21 @@
+CONFIG_ARM=y
+CONFIG_ARCH_SUNXI=y
+CONFIG_MACH_SUN7I=y
+CONFIG_DRAM_CLK=480
+CONFIG_MMC0_CD_PIN="PH1"
+CONFIG_MMC2_PINS="PC"
+CONFIG_MMC_SUNXI_SLOT_EXTRA=2k
+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_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3)"
+# CONFIG_CMD_IMLS is not set
+# CONFIG_CMD_FLASH is not set
+# CONFIG_CMD_FPGA is not set
+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
Signature · 1 line
2.8.1
#1 lore raw

PATCH 1/1 sunxi: Add defconfig for Olinuxino Lime 2 EMMC version

On Wed, 2016-06-15 at 05:29 +0200, Emmanuel Vadot wrote:

Please include a short description of the board, in this case explaining the distinction (and defconfig differences) from the non- EMMC version would be useful.

Have a look at some of the previous patches which add defconfig (e.g. those from Hans) for some examples of best practice.

Quoted 3 lines

---
?configs/A20-OLinuXino-Lime2-emmc_defconfig | 21 +++++++++++++++++++++

This patch should also touch board/sunxi/MAINTAINERS, to add an entry with your name for this board.?

Quoted 1 line

+CONFIG_DEFAULT_DEVICE_TREE="sun7i-a20-olinuxino-lime2-emmc"

This file doesn't appear to be in the u-boot tree already so usually we would import the upstream version as part of this patch.

In fact I'm not sure how this patch builds without it, we configure u- boot itself via DM for at least some subsystems, which requires it to be present a build time to be concatenated onto the basic image.

Ian.