Skip to contentSkip to conversation

arm64: mvebu: use single defconfig for Armada8K development boards

PATCH New igall at marvell.com 2 participants 5 messages Jun 13, 2017 – Jul 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 arm64: mvebu: use single defconfig for Armada8K development boards

From: Igal Liberman <[email protected]>

Currently, Marvell Armada8k development board use 3 different defconfigs:

        mvebu_db-88f7040-nand_defconfig
        mvebu_db-88f7040_defconfig
        mvebu_db-88f8040_defconfig

Having 3 different defconfigs makes maintenance difficult.

This patch removes the defconfigs mentioned above and introduce a new defconfig which represents the Armada8k family.

NOTE:
In order not to break automatic tools compilation,
a default device-tree is set in the defconfig (armada-8040-db). However, when compiling u-boot, the user MUST explicitly export the DEVICE_TREE for the requested board because using A80x0 device-tree on A70x0 might break the device.

For more information, refer to "doc/README.marvell" (intoduced in this patch).

Change-Id I98515b6306498358f3722ecf7ac4c87f236ebbd8

---

v1 --> v2
Add default device-tree to the defconfig Add build documentation (doc/README.marvell) Update commit message

 configs/mvebu_db-88f7040-nand_defconfig | 72 ---------------------------------
 configs/mvebu_db-88f7040_defconfig      | 70 --------------------------------
 configs/mvebu_db-88f8040_defconfig      | 70 --------------------------------
 configs/mvebu_db_armada8k_defconfig     | 70 ++++++++++++++++++++++++++++++++
 doc/README.marvell                      | 53 ++++++++++++++++++++++++
 5 files changed, 123 insertions(+), 212 deletions(-)
 delete mode 100644 configs/mvebu_db-88f7040-nand_defconfig
 delete mode 100644 configs/mvebu_db-88f7040_defconfig
 delete mode 100644 configs/mvebu_db-88f8040_defconfig
 create mode 100644 configs/mvebu_db_armada8k_defconfig
 create mode 100644 doc/README.marvell
configs/mvebu_db-88f7040-nand_defconfig deleted +0 -72
deleted file mode 100644
index 8d48cb6..0000000
@@ -1,72 +0,0 @@
-CONFIG_ARM=y
-CONFIG_ARCH_MVEBU=y
-CONFIG_SYS_MALLOC_F_LEN=0x2000
-CONFIG_TARGET_MVEBU_ARMADA_8K=y
-CONFIG_DEFAULT_DEVICE_TREE="armada-7040-db-nand"
-CONFIG_SMBIOS_PRODUCT_NAME=""
-CONFIG_AHCI=y
-# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
-CONFIG_SYS_CONSOLE_INFO_QUIET=y
-# CONFIG_DISPLAY_CPUINFO is not set
-# CONFIG_DISPLAY_BOARDINFO is not set
-CONFIG_ARCH_EARLY_INIT_R=y
-CONFIG_BOARD_EARLY_INIT_F=y
-CONFIG_HUSH_PARSER=y
-# CONFIG_CMD_IMLS is not set
-# CONFIG_CMD_FLASH is not set
-CONFIG_CMD_MMC=y
-CONFIG_CMD_NAND=y
-CONFIG_CMD_PART=y
-CONFIG_CMD_SF=y
-CONFIG_CMD_SPI=y
-CONFIG_CMD_I2C=y
-CONFIG_CMD_USB=y
-# CONFIG_CMD_FPGA is not set
-# CONFIG_CMD_SETEXPR is not set
-CONFIG_CMD_TFTPPUT=y
-CONFIG_CMD_DHCP=y
-CONFIG_CMD_MII=y
-CONFIG_CMD_PING=y
-CONFIG_CMD_CACHE=y
-CONFIG_CMD_TIME=y
-CONFIG_CMD_MVEBU_BUBT=y
-CONFIG_MVEBU_NAND_BOOT=y
-CONFIG_CMD_EXT4=y
-CONFIG_CMD_EXT4_WRITE=y
-CONFIG_CMD_FAT=y
-CONFIG_CMD_FS_GENERIC=y
-CONFIG_MAC_PARTITION=y
-CONFIG_ISO_PARTITION=y
-CONFIG_EFI_PARTITION=y
-CONFIG_BLOCK_CACHE=y
-CONFIG_DM_I2C=y
-CONFIG_SYS_I2C_MVTWSI=y
-CONFIG_MISC=y
-CONFIG_DM_MMC=y
-CONFIG_MMC_SDHCI=y
-CONFIG_MMC_SDHCI_XENON=y
-CONFIG_NAND_PXA3XX=y
-CONFIG_SPI_FLASH=y
-CONFIG_SPI_FLASH_MACRONIX=y
-CONFIG_SPI_FLASH_SPANSION=y
-CONFIG_SPI_FLASH_STMICRO=y
-CONFIG_PHYLIB=y
-CONFIG_PCI=y
-CONFIG_DM_PCI=y
-CONFIG_PCIE_DW_MVEBU=y
-CONFIG_MVEBU_COMPHY_SUPPORT=y
-CONFIG_PINCTRL=y
-CONFIG_PINCTRL_ARMADA_8K=y
-# CONFIG_SPL_SERIAL_PRESENT is not set
-CONFIG_DEBUG_UART=y
-CONFIG_DEBUG_UART_BASE=0xf0512000
-CONFIG_DEBUG_UART_CLOCK=200000000
-CONFIG_DEBUG_UART_SHIFT=2
-CONFIG_DEBUG_UART_ANNOUNCE=y
-CONFIG_SYS_NS16550=y
-CONFIG_USB=y
-CONFIG_DM_USB=y
-CONFIG_USB_XHCI_HCD=y
-CONFIG_USB_EHCI_HCD=y
-CONFIG_USB_STORAGE=y
-CONFIG_SMBIOS_MANUFACTURER=""
configs/mvebu_db-88f7040_defconfig deleted +0 -70

70 lines not on this page · raw message

configs/mvebu_db-88f8040_defconfig deleted +0 -70

70 lines not on this page · raw message

configs/mvebu_db_armada8k_defconfig new file +70 -0

70 lines not on this page · raw message

doc/README.marvell new file +53 -0

53 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

PATCH v2 1/1 arm64: mvebu: use single defconfig for Armada8K development boards

Hi Igal,

Quoted 12 lines · igall at marvell.com

From: Igal Liberman <[email protected]>

Currently, Marvell Armada8k development board use 3 different defconfigs:

         mvebu_db-88f7040-nand_defconfig
         mvebu_db-88f7040_defconfig
         mvebu_db-88f8040_defconfig

Having 3 different defconfigs makes maintenance difficult.

This patch removes the defconfigs mentioned above and introduce a new defconfig which represents the Armada8k family.

Quoted 6 lines

NOTE:
In order not to break automatic tools compilation,
a default device-tree is set in the defconfig (armada-8040-db). However, when compiling u-boot, the user MUST explicitly export the DEVICE_TREE for the requested board because using A80x0 device-tree on A70x0 might break the device.

Using the full blown a8040-db version which might even break a A7k board does not seem to be a good choice for my taste. I'm wondering if it doesn't make more sense to use a different DTS file instead as a "lowest common denominator" for this default DTS. Either a A70x0 file or perhaps even add a very small new one, with only serial support?

Thanks,
Stefan

#2 lore raw

PATCH v2 1/1 arm64: mvebu: use single defconfig for Armada8K development boards

In reply to igall at marvell.com

Hi Igal,

Quoted 19 lines · igall at marvell.com

From: Igal Liberman <[email protected]>

Currently, Marvell Armada8k development board use 3 different defconfigs:

         mvebu_db-88f7040-nand_defconfig
         mvebu_db-88f7040_defconfig
         mvebu_db-88f8040_defconfig

Having 3 different defconfigs makes maintenance difficult.

This patch removes the defconfigs mentioned above and introduce a new defconfig which represents the Armada8k family.

NOTE:
In order not to break automatic tools compilation,
a default device-tree is set in the defconfig (armada-8040-db). However, when compiling u-boot, the user MUST explicitly export the DEVICE_TREE for the requested board because using A80x0 device-tree on A70x0 might break the device.

Quoted 5 lines

For more information, refer to "doc/README.marvell" (intoduced in this patch).

Change-Id I98515b6306498358f3722ecf7ac4c87f236ebbd8

Applied to u-boot-marvell/master.

Thanks,
Stefan

#3 lore raw

Hi Stefan,
Thank you.

I plan to create a minimal default device-tree as we discussed before. I'll send it when it'll be ready.

Regards,
Igal

Quoted 43 lines

-----Original Message-----
From: Stefan Roese [mailto:sr at denx.de]
Sent: Wednesday, July 12, 2017 08:54
To: Igal Liberman; u-boot at lists.denx.de
Cc: Kostya Porotchkin; Nadav Haklai; Neta Zur Hershkovits
Subject: [EXT] Re: [v2] arm64: mvebu: use single defconfig for Armada8K development boards

External Email

----------------------------------------------------------------------
Hi Igal,

Quoted 19 lines · igall at marvell.com

From: Igal Liberman <[email protected]>

Currently, Marvell Armada8k development board use 3 different defconfigs:

         mvebu_db-88f7040-nand_defconfig
         mvebu_db-88f7040_defconfig
         mvebu_db-88f8040_defconfig

Having 3 different defconfigs makes maintenance difficult.

This patch removes the defconfigs mentioned above and introduce a new defconfig which represents the Armada8k family.

NOTE:
In order not to break automatic tools compilation, a default device-tree is set in the defconfig (armada-8040-db). However, when compiling u-boot, the user MUST explicitly export the DEVICE_TREE for the requested board because using A80x0 device-tree on A70x0 might break the device.

Quoted 5 lines

For more information, refer to "doc/README.marvell" (intoduced in this patch).

Change-Id I98515b6306498358f3722ecf7ac4c87f236ebbd8

Applied to u-boot-marvell/master.

Thanks,
Stefan

#4 lore raw

Hi Igal,

Quoted 2 lines · Igal Liberman

I plan to create a minimal default device-tree as we discussed before. I'll send it when it'll be ready.

Okay, good. Please note that I'll be on vacation from July 19th until August 2nd. Just that you know.

Thanks,
Stefan