public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD
@ 2016-04-20  1:41 Dinh Nguyen
  2016-04-20  1:41 ` [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options Dinh Nguyen
  2016-04-20 14:41 ` [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Simon Glass
  0 siblings, 2 replies; 6+ messages in thread
From: Dinh Nguyen @ 2016-04-20  1:41 UTC (permalink / raw)
  To: u-boot

Add the following CMD options to Kconfig:

CMD_BOOTZ
CMD_ASKENV
CMD_GREPENV
CMD_USB_MASS_STORAGE
CMD_FAT
CMD_MII
CMD_CACHE
CMD_DFU
CMD_EXT2
CMD_EXT4
CMD_EXT4_WRITE
CMD_FS_GENERIC
CMD_MMC

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
 cmd/Kconfig | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 78 insertions(+)

diff --git a/cmd/Kconfig b/cmd/Kconfig
index fe8b4f0..82d5d20 100644
--- a/cmd/Kconfig
+++ b/cmd/Kconfig
@@ -160,6 +160,11 @@ config CMD_BOOTM
 	help
 	  Boot an application image from the memory.
 
+config CMD_BOOTZ
+	bool "bootz"
+	help
+	  Boot the Linux zImage
+
 config CMD_BOOTEFI
 	bool "bootefi"
 	depends on EFI_LOADER
@@ -210,6 +215,11 @@ endmenu
 
 menu "Environment commands"
 
+config CMD_ASKENV
+	bool "ask for env variable"
+	help
+	  Ask for environment variable
+
 config CMD_EXPORTENV
 	bool "env export"
 	default y
@@ -228,6 +238,11 @@ config CMD_EDITENV
 	help
 	  Edit environment variable.
 
+config CMD_GREPENV
+	bool "search env"
+	help
+	  Allow for searching environment variables
+
 config CMD_SAVEENV
 	bool "saveenv"
 	default y
@@ -341,6 +356,11 @@ config CMD_ARMFLASH
 	help
 	  ARM Ltd reference designs flash partition access
 
+config CMD_MMC
+	bool "mmc"
+	help
+	  MMC memory mapped support.
+
 config CMD_NAND
 	bool "nand"
 	help
@@ -366,6 +386,19 @@ config CMD_USB
 	help
 	  USB support.
 
+config CMD_DFU
+	depends on CMD_USB
+	bool "dfu"
+	help
+	  Enables the command "dfu" which is used to have U-Boot create a DFU
+	  class device via USB.
+
+config CMD_USB_MASS_STORAGE
+	depends on CMD_USB
+	bool "UMS usb mass storage"
+	help
+	  USB mass storage support
+
 config CMD_FPGA
 	bool "fpga"
 	default y
@@ -454,6 +487,11 @@ config CMD_NFS
 	help
 	  Boot image via network using NFS protocol.
 
+config CMD_MII
+	bool "mii"
+	help
+	  Enable MII utility commands.
+
 config CMD_PING
 	bool "ping"
 	help
@@ -508,6 +546,17 @@ config CMD_BLOCK_CACHE
 	  during development, but also allows the cache to be disabled when
 	  it might hurt performance (e.g. when using the ums command).
 
+config CMD_CACHE
+	bool "icache or dcache"
+	help
+	  Enable the "icache" and "dcache" commands
+
+config CMD_DFU
+	bool "dfu"
+	help
+	  Enables the command "dfu" which is used to have U-Boot create a DFU
+	  class device via USB.
+
 config CMD_TIME
 	bool "time"
 	help
@@ -612,4 +661,33 @@ config CMD_TPM_TEST
 
 endmenu
 
+menu "Filesystem commands"
+config CMD_EXT2
+	bool "ext2 command support"
+	help
+	  Enables EXT2 FS command
+
+config CMD_EXT4
+	bool "ext4 command support"
+	help
+	  Enables EXT4 FS command
+
+config CMD_EXT4_WRITE
+	depends on CMD_EXT4
+	bool "ext4 write command support"
+	help
+	  Enables EXT4 FS write command
+
+config CMD_FAT
+	bool "FAT command support"
+	help
+	  Support for the FAT fs
+
+config CMD_FS_GENERIC
+	bool "filesystem commands"
+	help
+	  Enables filesystem commands (e.g. load, ls) that work for multiple
+	  fs types.
+endmenu
+
 endmenu
-- 
1.9.1.315.g3f09db0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options
  2016-04-20  1:41 [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Dinh Nguyen
@ 2016-04-20  1:41 ` Dinh Nguyen
  2016-04-20 12:15   ` Stefan Roese
  2016-04-20 14:21   ` Tom Rini
  2016-04-20 14:41 ` [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Simon Glass
  1 sibling, 2 replies; 6+ messages in thread
From: Dinh Nguyen @ 2016-04-20  1:41 UTC (permalink / raw)
  To: u-boot

Move common config options like these to socfpga_*_defconfig:

CONFIG_CMD_ASKENV
CONFIG_CMD_BOOTZ
CONFIG_CMD_CACHE
CONFIG_CMD_DHCP
CONFIG_CMD_EXT4
CONFIG_CMD_EXT4_WRITE
CONFIG_CMD_FAT
CONFIG_CMD_FS_GENERIC
CONFIG_CMD_GREPENV
CONFIG_CMD_MEMTEST
CONFIG_CMD_MII
CONFIG_CMD_MMC
CONFIG_CMD_PING
CONFIG_CMD_SF
CONFIG_CMD_SPI
CONFIG_CMD_TIME

to avoid defining them in individual SoCFPGA config files.

Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
---
v2: move most defconfig options to socfpga_*_defconfig
    update commit message
---
 configs/socfpga_arria5_defconfig         | 15 +++++++++++++++
 configs/socfpga_cyclone5_defconfig       | 15 +++++++++++++++
 configs/socfpga_de0_nano_soc_defconfig   | 15 +++++++++++++++
 configs/socfpga_mcvevk_defconfig         | 15 +++++++++++++++
 configs/socfpga_sockit_defconfig         | 15 +++++++++++++++
 configs/socfpga_socrates_defconfig       | 15 +++++++++++++++
 configs/socfpga_sr1500_defconfig         | 14 ++++++++++++++
 include/configs/socfpga_arria5_socdk.h   | 22 ----------------------
 include/configs/socfpga_common.h         |  5 +++++
 include/configs/socfpga_cyclone5_socdk.h | 22 ----------------------
 include/configs/socfpga_de0_nano_soc.h   | 22 ----------------------
 include/configs/socfpga_mcvevk.h         | 22 ----------------------
 include/configs/socfpga_sockit.h         | 22 ----------------------
 include/configs/socfpga_socrates.h       | 22 ----------------------
 include/configs/socfpga_sr1500.h         | 25 -------------------------
 15 files changed, 109 insertions(+), 157 deletions(-)

diff --git a/configs/socfpga_arria5_defconfig b/configs/socfpga_arria5_defconfig
index 087d6f1..e28afcd 100644
--- a/configs/socfpga_arria5_defconfig
+++ b/configs/socfpga_arria5_defconfig
@@ -28,3 +28,18 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_cyclone5_defconfig b/configs/socfpga_cyclone5_defconfig
index cef644e..cc343b5 100644
--- a/configs/socfpga_cyclone5_defconfig
+++ b/configs/socfpga_cyclone5_defconfig
@@ -28,3 +28,18 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_de0_nano_soc_defconfig b/configs/socfpga_de0_nano_soc_defconfig
index c0ffad2..8f73969 100644
--- a/configs/socfpga_de0_nano_soc_defconfig
+++ b/configs/socfpga_de0_nano_soc_defconfig
@@ -23,3 +23,18 @@ CONFIG_SPI_FLASH_BAR=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_mcvevk_defconfig b/configs/socfpga_mcvevk_defconfig
index e01282c..b1627f6 100644
--- a/configs/socfpga_mcvevk_defconfig
+++ b/configs/socfpga_mcvevk_defconfig
@@ -23,3 +23,18 @@ CONFIG_SPI_FLASH_BAR=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_sockit_defconfig b/configs/socfpga_sockit_defconfig
index 8feb5a3..12ff4a7 100644
--- a/configs/socfpga_sockit_defconfig
+++ b/configs/socfpga_sockit_defconfig
@@ -28,3 +28,18 @@ CONFIG_DESIGNWARE_SPI=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_socrates_defconfig b/configs/socfpga_socrates_defconfig
index 1b3c3df..91a7fd6 100644
--- a/configs/socfpga_socrates_defconfig
+++ b/configs/socfpga_socrates_defconfig
@@ -27,3 +27,18 @@ CONFIG_SPI_FLASH_BAR=y
 CONFIG_USB=y
 CONFIG_DM_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_DFU=y
+CONFIG_CMD_USB=y
+CONFIG_CMD_USB_MASS_STORAGE=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_PING=y
+CONFIG_CMD_MMC=y
diff --git a/configs/socfpga_sr1500_defconfig b/configs/socfpga_sr1500_defconfig
index ec57746..ef6e891 100644
--- a/configs/socfpga_sr1500_defconfig
+++ b/configs/socfpga_sr1500_defconfig
@@ -12,6 +12,7 @@ CONFIG_FIT=y
 # CONFIG_CMD_IMLS is not set
 # CONFIG_CMD_FLASH is not set
 CONFIG_SPL_DM_SEQ_ALIAS=y
+CONFIG_CMD_GPIO
 CONFIG_DWAPB_GPIO=y
 CONFIG_DM_MMC=y
 CONFIG_SPI_FLASH=y
@@ -24,3 +25,16 @@ CONFIG_SYS_NS16550=y
 CONFIG_CADENCE_QSPI=y
 CONFIG_USB=y
 CONFIG_USB_GADGET=y
+CONFIG_CMD_ASKENV=y
+CONFIG_CMD_BOOTZ=y
+CONFIG_CMD_CACHE=y
+CONFIG_CMD_DHCP=y
+CONFIG_CMD_EXT4=y
+CONFIG_CMD_EXT4_WRITE=y
+CONFIG_CMD_FAT=y
+CONFIG_CMD_FS_GENERIC=y
+CONFIG_CMD_GREPENV=y
+CONFIG_CMD_MEMTEST=y
+CONFIG_CMD_MII=y
+CONFIG_CMD_MMC=y
+CONFIG_CMD_PING=y
diff --git a/include/configs/socfpga_arria5_socdk.h b/include/configs/socfpga_arria5_socdk.h
index 153f9f8..9c282b8 100644
--- a/include/configs/socfpga_arria5_socdk.h
+++ b/include/configs/socfpga_arria5_socdk.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on SoCDK */
 
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index 3e50892..4d14025 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -6,6 +6,11 @@
 #ifndef __CONFIG_SOCFPGA_COMMON_H__
 #define __CONFIG_SOCFPGA_COMMON_H__
 
+/* U-Boot Commands */
+#define CONFIG_SYS_NO_FLASH
+#define CONFIG_DOS_PARTITION
+#define CONFIG_FAT_WRITE
+#define CONFIG_HW_WATCHDOG
 
 /* Virtual target or real hardware */
 #undef CONFIG_SOCFPGA_VIRTUAL_TARGET
diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index d7c339e..d8280c7 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on SoCDK */
 
diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h
index 314b9bf..0807ce6 100644
--- a/include/configs/socfpga_de0_nano_soc.h
+++ b/include/configs/socfpga_de0_nano_soc.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB */
 
diff --git a/include/configs/socfpga_mcvevk.h b/include/configs/socfpga_mcvevk.h
index f260a64..3d18993 100644
--- a/include/configs/socfpga_mcvevk.h
+++ b/include/configs/socfpga_mcvevk.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on MCV */
 
diff --git a/include/configs/socfpga_sockit.h b/include/configs/socfpga_sockit.h
index 07cfcbf..ec47be5 100644
--- a/include/configs/socfpga_sockit.h
+++ b/include/configs/socfpga_sockit.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on SoCDK */
 
diff --git a/include/configs/socfpga_socrates.h b/include/configs/socfpga_socrates.h
index 02ea0c5..0e7ad76 100644
--- a/include/configs/socfpga_socrates.h
+++ b/include/configs/socfpga_socrates.h
@@ -8,28 +8,6 @@
 
 #include <asm/arch/base_addr_ac5.h>
 
-/* U-Boot Commands */
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-#define CONFIG_HW_WATCHDOG
-
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DFU
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_USB
-#define CONFIG_CMD_USB_MASS_STORAGE
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on SoCrates */
 
diff --git a/include/configs/socfpga_sr1500.h b/include/configs/socfpga_sr1500.h
index e43b5cf..9c2bca4 100644
--- a/include/configs/socfpga_sr1500.h
+++ b/include/configs/socfpga_sr1500.h
@@ -10,31 +10,6 @@
 
 #define CONFIG_BOARD_EARLY_INIT_F
 
-#define CONFIG_SYS_NO_FLASH
-#define CONFIG_DOS_PARTITION
-#define CONFIG_FAT_WRITE
-
-#define CONFIG_HW_WATCHDOG
-
-/* U-Boot Commands */
-#define CONFIG_CMD_ASKENV
-#define CONFIG_CMD_BOOTZ
-#define CONFIG_CMD_CACHE
-#define CONFIG_CMD_DHCP
-#define CONFIG_CMD_EXT4
-#define CONFIG_CMD_EXT4_WRITE
-#define CONFIG_CMD_FAT
-#define CONFIG_CMD_FS_GENERIC
-#define CONFIG_CMD_GPIO
-#define CONFIG_CMD_GREPENV
-#define CONFIG_CMD_MEMTEST
-#define CONFIG_CMD_MII
-#define CONFIG_CMD_MMC
-#define CONFIG_CMD_PING
-#define CONFIG_CMD_SF
-#define CONFIG_CMD_SPI
-#define CONFIG_CMD_TIME
-
 /* Memory configurations */
 #define PHYS_SDRAM_1_SIZE		0x40000000	/* 1GiB on SR1500 */
 
-- 
1.9.1.315.g3f09db0

^ permalink raw reply related	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options
  2016-04-20  1:41 ` [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options Dinh Nguyen
@ 2016-04-20 12:15   ` Stefan Roese
  2016-04-20 14:21   ` Tom Rini
  1 sibling, 0 replies; 6+ messages in thread
From: Stefan Roese @ 2016-04-20 12:15 UTC (permalink / raw)
  To: u-boot

Hi Dinh,

On 20.04.2016 03:41, Dinh Nguyen wrote:
> Move common config options like these to socfpga_*_defconfig:
>
> CONFIG_CMD_ASKENV
> CONFIG_CMD_BOOTZ
> CONFIG_CMD_CACHE
> CONFIG_CMD_DHCP
> CONFIG_CMD_EXT4
> CONFIG_CMD_EXT4_WRITE
> CONFIG_CMD_FAT
> CONFIG_CMD_FS_GENERIC
> CONFIG_CMD_GREPENV
> CONFIG_CMD_MEMTEST
> CONFIG_CMD_MII
> CONFIG_CMD_MMC
> CONFIG_CMD_PING
> CONFIG_CMD_SF
> CONFIG_CMD_SPI
> CONFIG_CMD_TIME
>
> to avoid defining them in individual SoCFPGA config files.
>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>

As for the sr1500 part:

Acked-by: Stefan Roese <sr@denx.de>

Thanks,
Stefan

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options
  2016-04-20  1:41 ` [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options Dinh Nguyen
  2016-04-20 12:15   ` Stefan Roese
@ 2016-04-20 14:21   ` Tom Rini
  2016-04-21 13:59     ` Dinh Nguyen
  1 sibling, 1 reply; 6+ messages in thread
From: Tom Rini @ 2016-04-20 14:21 UTC (permalink / raw)
  To: u-boot

On Tue, Apr 19, 2016 at 08:41:52PM -0500, Dinh Nguyen wrote:

> Move common config options like these to socfpga_*_defconfig:
> 
> CONFIG_CMD_ASKENV
> CONFIG_CMD_BOOTZ
> CONFIG_CMD_CACHE
> CONFIG_CMD_DHCP
> CONFIG_CMD_EXT4
> CONFIG_CMD_EXT4_WRITE
> CONFIG_CMD_FAT
> CONFIG_CMD_FS_GENERIC
> CONFIG_CMD_GREPENV
> CONFIG_CMD_MEMTEST
> CONFIG_CMD_MII
> CONFIG_CMD_MMC
> CONFIG_CMD_PING
> CONFIG_CMD_SF
> CONFIG_CMD_SPI
> CONFIG_CMD_TIME
> 
> to avoid defining them in individual SoCFPGA config files.

So this is the tricky part, yes.  You need to be able to use
moveconfig.py to update _everyone_ and this easily conflicts (so don't
do it right now, I have some stuff to push out that would cause it to
conflict).  I think I'll see if I can do this part, globally instead
after applying your 1/2.  Thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160420/0310a2af/attachment.sig>

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD
  2016-04-20  1:41 [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Dinh Nguyen
  2016-04-20  1:41 ` [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options Dinh Nguyen
@ 2016-04-20 14:41 ` Simon Glass
  1 sibling, 0 replies; 6+ messages in thread
From: Simon Glass @ 2016-04-20 14:41 UTC (permalink / raw)
  To: u-boot

Hi Dinh,

On 19 April 2016 at 19:41, Dinh Nguyen <dinguyen@kernel.org> wrote:
> Add the following CMD options to Kconfig:
>
> CMD_BOOTZ
> CMD_ASKENV
> CMD_GREPENV
> CMD_USB_MASS_STORAGE
> CMD_FAT
> CMD_MII
> CMD_CACHE
> CMD_DFU
> CMD_EXT2
> CMD_EXT4
> CMD_EXT4_WRITE
> CMD_FS_GENERIC
> CMD_MMC
>
> Signed-off-by: Dinh Nguyen <dinguyen@kernel.org>
> ---
>  cmd/Kconfig | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>  1 file changed, 78 insertions(+)

Can you also please use the moveconfig script to convert all boards?

Regards,
Simon

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options
  2016-04-20 14:21   ` Tom Rini
@ 2016-04-21 13:59     ` Dinh Nguyen
  0 siblings, 0 replies; 6+ messages in thread
From: Dinh Nguyen @ 2016-04-21 13:59 UTC (permalink / raw)
  To: u-boot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



On 04/20/2016 09:21 AM, Tom Rini wrote:
> On Tue, Apr 19, 2016 at 08:41:52PM -0500, Dinh Nguyen wrote:
> 
>> Move common config options like these to socfpga_*_defconfig:
>> 
>> CONFIG_CMD_ASKENV CONFIG_CMD_BOOTZ CONFIG_CMD_CACHE 
>> CONFIG_CMD_DHCP CONFIG_CMD_EXT4 CONFIG_CMD_EXT4_WRITE 
>> CONFIG_CMD_FAT CONFIG_CMD_FS_GENERIC CONFIG_CMD_GREPENV 
>> CONFIG_CMD_MEMTEST CONFIG_CMD_MII CONFIG_CMD_MMC CONFIG_CMD_PING 
>> CONFIG_CMD_SF CONFIG_CMD_SPI CONFIG_CMD_TIME
>> 
>> to avoid defining them in individual SoCFPGA config files.
> 
> So this is the tricky part, yes.  You need to be able to use 
> moveconfig.py to update _everyone_ and this easily conflicts (so
> don't do it right now, I have some stuff to push out that would
> cause it to conflict).  I think I'll see if I can do this part,
> globally instead after applying your 1/2.  Thanks!
> 

Ok, let me resend 1/2 because I noticed that it had a duplicate defconfi
g.

Thanks,
Dinh
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)

iQIcBAEBAgAGBQJXGNzHAAoJEBmUBAuBoyj08IYP/2K3kfb+cPIfMIEFkb5JugIb
ivUgPb72YB6DqJQVYdPolgYzm7WhMpul9cS7oT9gGBicnQ125RaWmjM5y80zBVqL
99+4o1gxqd62RYutGtptUFsh2muBi8xkGHtFSfBtqiOW9jDWthZ0+igrOo/IvrXB
Gh5hYAyxvyJbVOvBg1yUIZ8sCsiFo22rkTDMjUppjaLqGkX2gQJZOtOr5iIqI/K0
s4mfQNvgz8qcZ86worz3YAp/zpSC5pCIds/lh8osRPHnSW54iBPyW9+MXWYjLjj3
1A9iZFgDVRe0gZ3tjToa+9CMw4Rnm0ysL02FBX8EbNmBSHgX723Tz3Wi2AUwii3G
CArsZhJLUNXIt/Xts2xlJAdGtX497NsnFL9gG9vCg2Ftmdf508+AxCzyoyOuWHTK
IuVabhLKCk0xJUNBqZ6LV1Y6csXFz3U0B6xLrFtOjC1ys5WAkLpzvfKo0pLbDZFW
siJ4wvmMxpJbBTMPiFQ4o0ddoDsGI0k6T0vGuTVxm4DZFeQ9cR+YJ1KTpFkxHiqt
Y4+o/wbMnFSl7XmCEW9AbsFg7l+jpIkOO+YmrKhX2Dawz/0nUupnyW6ka/PIhaIg
NDY5yzBjQz59YKzxbvmEHIr0EmSnYZPG0idvIZf+ufSP/lm1s4vTq9PgGALUleGX
rKsnrB5Az289CWrltLYO
=xfzS
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-04-21 13:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-20  1:41 [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Dinh Nguyen
2016-04-20  1:41 ` [U-Boot] [PATCHv2 2/2] arm: socfpga: clean up common config options Dinh Nguyen
2016-04-20 12:15   ` Stefan Roese
2016-04-20 14:21   ` Tom Rini
2016-04-21 13:59     ` Dinh Nguyen
2016-04-20 14:41 ` [U-Boot] [PATCH 1/2] cmd: Kconfig: Add a Kconfig options for a few CMD Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox