From a5cad67735a1f098c22ec30941f1bd0422459069 Mon Sep 17 00:00:00 2001
From: Marek Vasut <marex@denx.de>
Date: Sat, 5 Dec 2015 20:05:46 +0100
Subject: [PATCH] arm: socfpga: Switch CONFIG_G_DNL_MANUFACTURER to
 CONFIG_SYS_VENDOR

We already have the CONFIG_SYS_VENDOR variable, which defines the
manufacturer of the board. The value in CONFIG_G_DNL_MANUFACTURER
is just a duplicity, so switch it to reuse CONFIG_SYS_VENDOR .

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Chin Liang See <clsee@altera.com>
Cc: Dinh Nguyen <dinguyen@opensource.altera.com>
---
 include/configs/socfpga_arria5_socdk.h   | 3 ---
 include/configs/socfpga_common.h         | 2 +-
 include/configs/socfpga_cyclone5_socdk.h | 3 ---
 include/configs/socfpga_de0_nano_soc.h   | 3 ---
 include/configs/socfpga_mcvevk.h         | 3 ---
 include/configs/socfpga_sockit.h         | 3 ---
 include/configs/socfpga_socrates.h       | 3 ---
 7 files changed, 1 insertion(+), 19 deletions(-)

diff --git a/include/configs/socfpga_arria5_socdk.h b/include/configs/socfpga_arria5_socdk.h
index d2411e6700..a036856eee 100644
--- a/include/configs/socfpga_arria5_socdk.h
+++ b/include/configs/socfpga_arria5_socdk.h
@@ -55,9 +55,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER      "Altera"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME		socfpga_arria5
 
diff --git a/include/configs/socfpga_common.h b/include/configs/socfpga_common.h
index b0bc68952c..4b2d246db4 100644
--- a/include/configs/socfpga_common.h
+++ b/include/configs/socfpga_common.h
@@ -262,7 +262,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
 #define CONFIG_G_DNL_UMS_VENDOR_NUM	CONFIG_G_DNL_VENDOR_NUM
 #define CONFIG_G_DNL_UMS_PRODUCT_NUM	CONFIG_G_DNL_PRODUCT_NUM
 #ifndef CONFIG_G_DNL_MANUFACTURER
-#define CONFIG_G_DNL_MANUFACTURER	"Altera"
+#define CONFIG_G_DNL_MANUFACTURER	CONFIG_SYS_VENDOR
 #endif
 #endif
 
diff --git a/include/configs/socfpga_cyclone5_socdk.h b/include/configs/socfpga_cyclone5_socdk.h
index 76d29a3f78..4e38d5ebd8 100644
--- a/include/configs/socfpga_cyclone5_socdk.h
+++ b/include/configs/socfpga_cyclone5_socdk.h
@@ -55,9 +55,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER      "Altera"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME		socfpga_cyclone5
 
diff --git a/include/configs/socfpga_de0_nano_soc.h b/include/configs/socfpga_de0_nano_soc.h
index 600789509a..e06ca7be04 100644
--- a/include/configs/socfpga_de0_nano_soc.h
+++ b/include/configs/socfpga_de0_nano_soc.h
@@ -51,9 +51,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER      "Terasic"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME		socfpga_de0_nano_soc
 
diff --git a/include/configs/socfpga_mcvevk.h b/include/configs/socfpga_mcvevk.h
index b2c1f75e99..5fc4edbb40 100644
--- a/include/configs/socfpga_mcvevk.h
+++ b/include/configs/socfpga_mcvevk.h
@@ -48,9 +48,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER	"DENX"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME			mcvevk
 
diff --git a/include/configs/socfpga_sockit.h b/include/configs/socfpga_sockit.h
index 924de3f7ab..d5e69fde29 100644
--- a/include/configs/socfpga_sockit.h
+++ b/include/configs/socfpga_sockit.h
@@ -51,9 +51,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER      "Terasic"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME		socfpga_sockit
 
diff --git a/include/configs/socfpga_socrates.h b/include/configs/socfpga_socrates.h
index 1b0888f36b..f11c89c1e8 100644
--- a/include/configs/socfpga_socrates.h
+++ b/include/configs/socfpga_socrates.h
@@ -51,9 +51,6 @@
 #define CONFIG_SYS_MMC_ENV_DEV		0	/* device 0 */
 #define CONFIG_ENV_OFFSET		512	/* just after the MBR */
 
-/* USB */
-#define CONFIG_G_DNL_MANUFACTURER      "EBV"
-
 /* Extra Environment */
 #define CONFIG_HOSTNAME		socfpga_socrates
 
-- 
2.39.5