On 04/13/2016 05:34 PM, dingu...@opensource.altera.com wrote: > From: Dinh Nguyen <dingu...@opensource.altera.com> > > Move common config options like these to socfpga_common.h: > > CONFIG_SYS_NO_FLASH > CONFIG_DOS_PARTITION > CONFIG_FAT_WRITE > CONFIG_HW_WATCHDOG > > 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. > > Also to avoid a build error, move CONFIG_CMD_GPIO that was in > socfpga_sr1500.h to socfpga_sr1500_defconfig. > > Signed-off-by: Dinh Nguyen <dingu...@opensource.altera.com> > --- > configs/socfpga_sr1500_defconfig | 1 + > include/configs/socfpga_arria5_socdk.h | 22 ---------------------- > include/configs/socfpga_common.h | 22 ++++++++++++++++++++++ > include/configs/socfpga_cyclone5_socdk.h | 18 ------------------ > include/configs/socfpga_de0_nano_soc.h | 18 ------------------ > include/configs/socfpga_mcvevk.h | 18 ------------------ > include/configs/socfpga_sockit.h | 18 ------------------ > include/configs/socfpga_socrates.h | 22 ---------------------- > include/configs/socfpga_sr1500.h | 25 ------------------------- > 9 files changed, 23 insertions(+), 141 deletions(-) > > diff --git a/configs/socfpga_sr1500_defconfig > b/configs/socfpga_sr1500_defconfig > index ec57746..2b3cc53 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 > 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
With this patch, AV SoCDK will drop UMS support since socfpga_common.h does not define it. > /* 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..5a0d53b 100644 > --- a/include/configs/socfpga_common.h > +++ b/include/configs/socfpga_common.h > @@ -6,6 +6,28 @@ > #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 > + > +#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_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 > > /* 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..b8a13f3 100644 > --- a/include/configs/socfpga_cyclone5_socdk.h > +++ b/include/configs/socfpga_cyclone5_socdk.h > @@ -8,25 +8,7 @@ > > #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 > > diff --git a/include/configs/socfpga_de0_nano_soc.h > b/include/configs/socfpga_de0_nano_soc.h > index 314b9bf..fddcf22 100644 > --- a/include/configs/socfpga_de0_nano_soc.h > +++ b/include/configs/socfpga_de0_nano_soc.h > @@ -8,25 +8,7 @@ > > #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 > > diff --git a/include/configs/socfpga_mcvevk.h > b/include/configs/socfpga_mcvevk.h > index f260a64..d4c93ca 100644 > --- a/include/configs/socfpga_mcvevk.h > +++ b/include/configs/socfpga_mcvevk.h > @@ -8,25 +8,7 @@ > > #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 > > diff --git a/include/configs/socfpga_sockit.h > b/include/configs/socfpga_sockit.h > index 07cfcbf..07a0146 100644 > --- a/include/configs/socfpga_sockit.h > +++ b/include/configs/socfpga_sockit.h > @@ -8,25 +8,7 @@ > > #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 > > 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 DTTO here. > /* 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 */ > > -- Best regards, Marek Vasut _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot