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 7, 2017 – Jun 13, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 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.

With this patch, no device-tree is set in the defconfig, so the device-tree should be set during compilation, using:

Configure u-boot:

make mvebu_db_armada8k_defconfig

Select the desired device-tree during compilation:

        make DEVICE_TREE=armada-7040-db
        make DEVICE_TREE=armada-8040-db
        make DEVICE_TREE=armada-7040-db-nand
Change-Id I98515b6306498358f3722ecf7ac4c87f236ebbd8
---
 configs/mvebu_db-88f7040-nand_defconfig | 72 ---------------------------------
 configs/mvebu_db-88f7040_defconfig      | 70 --------------------------------
 configs/mvebu_db-88f8040_defconfig      | 70 --------------------------------
 configs/mvebu_db_armada8k_defconfig     | 69 +++++++++++++++++++++++++++++++
 4 files changed, 69 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
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 +69 -0

69 lines not on this page · raw message

Signature · 1 line
2.7.4
#1 lore raw

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

Hi Igal,

Quoted 17 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.

With this patch, no device-tree is set in the defconfig, so the device-tree should be set during compilation, using:

Configure u-boot:

Quoted 7 lines

make mvebu_db_armada8k_defconfig

Select the desired device-tree during compilation:

         make DEVICE_TREE=armada-7040-db
         make DEVICE_TREE=armada-8040-db
         make DEVICE_TREE=armada-7040-db-nand

I like the idea to consolidate the defconfigs in general. One question though. This patch results in one build target for the automated tests (Travis). Does compiling without the additional DEVICE_TREE= work without generating compilation errors? Otherwise the Travis tests will fail.

Thanks,
Stefan

#2 lore raw

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

Hi Stefan

Regards,
Igal

Quoted 32 lines

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

Hi Igal,

Quoted 21 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.

With this patch, no device-tree is set in the defconfig, so the device-tree should be set during compilation, using:

Configure u-boot:

make mvebu_db_armada8k_defconfig

Select the desired device-tree during compilation:

Quoted 9 lines
Quoted 3 lines
         make DEVICE_TREE=armada-7040-db
         make DEVICE_TREE=armada-8040-db
         make DEVICE_TREE=armada-7040-db-nand

I like the idea to consolidate the defconfigs in general. One question though. This patch results in one build target for the automated tests (Travis). Does compiling without the additional DEVICE_TREE= work without generating compilation errors? Otherwise the Travis tests will fail.

If you compile without DEVICE_TREE= it won't compile (unless you exported DEVICE_TREE before). Basically, I did it on purpose - to make sure that user doesn't rely on some possible incorrect default settings. If it causes a compilation issues for the automated tests - I guess we can set a default value after all. What do you think?

Quoted 2 lines

Thanks,
Stefan

#3 lore raw

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

Hi Igal,

Quoted 32 lines · Igal Liberman
Quoted 22 lines · igall at marvell.com
Quoted 21 lines

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.

With this patch, no device-tree is set in the defconfig, so the device-tree should be set during compilation, using:

Configure u-boot:

make mvebu_db_armada8k_defconfig

Select the desired device-tree during compilation:

Quoted 9 lines
Quoted 3 lines
          make DEVICE_TREE=armada-7040-db
          make DEVICE_TREE=armada-8040-db
          make DEVICE_TREE=armada-7040-db-nand

I like the idea to consolidate the defconfigs in general. One question though. This patch results in one build target for the automated tests (Travis). Does compiling without the additional DEVICE_TREE= work without generating compilation errors? Otherwise the Travis tests will fail.

Quoted 4 lines

If you compile without DEVICE_TREE= it won't compile (unless you exported DEVICE_TREE before).
Basically, I did it on purpose - to make sure that user doesn't rely on some possible incorrect default settings.

Makes sense.

Quoted 3 lines

If it causes a compilation issues for the automated tests - I guess we can set a default value after all.
What do you think?

Yes, please do. We need to compile clean for the automated tests, otherwise this patch simply can't be accepted (sorry).

Thanks,
Stefan

#4 lore raw

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

Hi Stefan

Regards,
Igal

Quoted 49 lines

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

Hi Igal,

Quoted 20 lines · Igal Liberman
Quoted 20 lines · igall at marvell.com
Quoted 19 lines

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.

With this patch, no device-tree is set in the defconfig, so the device-tree should be set during compilation, using:

Configure u-boot:

make mvebu_db_armada8k_defconfig

Quoted 7 lines
Quoted 7 lines
Quoted 5 lines

Select the desired device-tree during compilation:

          make DEVICE_TREE=armada-7040-db
          make DEVICE_TREE=armada-8040-db
          make DEVICE_TREE=armada-7040-db-nand

I like the idea to consolidate the defconfigs in general. One question

though.

Quoted 9 lines
Quoted 4 lines

This patch results in one build target for the automated tests (Travis). Does compiling without the additional DEVICE_TREE= work without generating compilation errors? Otherwise the Travis tests will fail.

If you compile without DEVICE_TREE= it won't compile (unless you exported DEVICE_TREE before).
Basically, I did it on purpose - to make sure that user doesn't rely on some possible incorrect default settings.

Quoted 9 lines

Makes sense.

Quoted 3 lines

If it causes a compilation issues for the automated tests - I guess we can set a default value after all.
What do you think?

Yes, please do. We need to compile clean for the automated tests, otherwise this patch simply can't be accepted (sorry).

I'll submit a new patch with default device-tree.
Thank you for the review.

Quoted 2 lines

Thanks,
Stefan