fbf8311
From aeac5d911f15e3d17ca857b6e0830e770b4e6db1 Mon Sep 17 00:00:00 2001
fbf8311
From: Peter Robinson <pbrobinson@gmail.com>
fbf8311
Date: Tue, 22 Aug 2017 15:52:50 +0100
fbf8311
Subject: [PATCH] sun7i: fix gmac rename
fbf8311
fbf8311
---
fbf8311
 arch/arm/include/asm/arch-sunxi/sys_proto.h | 2 +-
fbf8311
 board/sunxi/Makefile                        | 2 +-
fbf8311
 include/configs/sunxi-common.h              | 2 +-
fbf8311
 scripts/build-whitelist.sh                  | 2 +-
fbf8311
 scripts/config_whitelist.txt                | 2 +-
fbf8311
 5 files changed, 5 insertions(+), 5 deletions(-)
fbf8311
fbf8311
diff --git a/arch/arm/include/asm/arch-sunxi/sys_proto.h b/arch/arm/include/asm/arch-sunxi/sys_proto.h
fbf8311
index a373319a2b..096510b787 100644
fbf8311
--- a/arch/arm/include/asm/arch-sunxi/sys_proto.h
fbf8311
+++ b/arch/arm/include/asm/arch-sunxi/sys_proto.h
fbf8311
@@ -24,7 +24,7 @@ void sdelay(unsigned long);
fbf8311
 void return_to_fel(uint32_t lr, uint32_t sp);
fbf8311
 
fbf8311
 /* Board / SoC level designware gmac init */
fbf8311
-#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUNXI_GMAC
fbf8311
+#if !defined CONFIG_SPL_BUILD && defined CONFIG_SUN7I_GMAC
fbf8311
 void eth_init_board(void);
fbf8311
 #else
fbf8311
 static inline void eth_init_board(void) {}
fbf8311
diff --git a/board/sunxi/Makefile b/board/sunxi/Makefile
fbf8311
index f4411f01c3..526cb72a51 100644
fbf8311
--- a/board/sunxi/Makefile
fbf8311
+++ b/board/sunxi/Makefile
fbf8311
@@ -9,7 +9,7 @@
fbf8311
 # SPDX-License-Identifier:	GPL-2.0+
fbf8311
 #
fbf8311
 obj-y	+= board.o
fbf8311
-obj-$(CONFIG_SUNXI_GMAC)	+= gmac.o
fbf8311
+obj-$(CONFIG_SUN7I_GMAC)	+= gmac.o
fbf8311
 ifndef CONFIG_SPL_BUILD
fbf8311
 obj-$(CONFIG_SUNXI_AHCI)	+= ahci.o
fbf8311
 endif
fbf8311
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h
fbf8311
index 212862acd1..1373b1f037 100644
fbf8311
--- a/include/configs/sunxi-common.h
fbf8311
+++ b/include/configs/sunxi-common.h
fbf8311
@@ -294,7 +294,7 @@ extern int soft_i2c_gpio_scl;
fbf8311
 #define CONFIG_MII			/* MII PHY management		*/
fbf8311
 #endif
fbf8311
 
fbf8311
-#ifdef CONFIG_SUNXI_GMAC
fbf8311
+#ifdef CONFIG_SUN7I_GMAC
fbf8311
 #define CONFIG_PHY_ADDR		1
fbf8311
 #define CONFIG_MII			/* MII PHY management		*/
fbf8311
 #define CONFIG_PHY_REALTEK
fbf8311
diff --git a/scripts/build-whitelist.sh b/scripts/build-whitelist.sh
fbf8311
index 7d8160d5f2..0f102a0585 100755
fbf8311
--- a/scripts/build-whitelist.sh
fbf8311
+++ b/scripts/build-whitelist.sh
fbf8311
@@ -16,7 +16,7 @@ export LC_ALL=C LC_COLLATE=C
fbf8311
 #	SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8)
fbf8311
 #
fbf8311
 # We want this to produce:
fbf8311
-#	CONFIG_SUNXI_GMAC
fbf8311
+#	CONFIG_SUN7I_GMAC
fbf8311
 #	CONFIG_AHCI
fbf8311
 #	CONFIG_SATAPWR
fbf8311
 #
fbf8311
diff --git a/scripts/config_whitelist.txt b/scripts/config_whitelist.txt
fbf8311
index 6c628c878c..024dcd6a1e 100644
fbf8311
--- a/scripts/config_whitelist.txt
fbf8311
+++ b/scripts/config_whitelist.txt
fbf8311
@@ -2308,7 +2308,7 @@ CONFIG_STV0991_HZ_CLOCK
fbf8311
 CONFIG_ST_SMI
fbf8311
 CONFIG_SUNXI_AHCI
fbf8311
 CONFIG_SUNXI_EMAC
fbf8311
-CONFIG_SUNXI_GMAC
fbf8311
+CONFIG_SUN7I_GMAC
fbf8311
 CONFIG_SUNXI_GPIO
fbf8311
 CONFIG_SUNXI_MAX_FB_SIZE
fbf8311
 CONFIG_SUNXI_USB_PHYS
fbf8311
-- 
fbf8311
2.13.5
fbf8311