Aspeed: adding UDC nic related config to udc-nic.cfg

Google-Bug-Id: 441788594
Tested: all config applied
Change-Id: Ic6488cd308b4b27d2675ebe1b4ec4fd8a13aa39f
Signed-off-by: Yuxiao Zhang <yuxiaozhang@google.com>
diff --git a/recipes-kernel/linux/files/aspeed-g7-gbmc.cfg b/recipes-kernel/linux/files/aspeed-g7-gbmc.cfg
index fab63bd..413bfdf 100644
--- a/recipes-kernel/linux/files/aspeed-g7-gbmc.cfg
+++ b/recipes-kernel/linux/files/aspeed-g7-gbmc.cfg
@@ -210,15 +210,9 @@
 # CONFIG_USB_DWC3_OF_SIMPLE is not set
 CONFIG_USB_SERIAL=y
 CONFIG_USB_SERIAL_PL2303=y
-CONFIG_USB_GADGET=y
-CONFIG_USB_ASPEED_VHUB=y
 CONFIG_USB_CONFIGFS=y
 CONFIG_USB_CONFIGFS_ACM=y
-CONFIG_USB_CONFIGFS_NCM=y
-CONFIG_USB_CONFIGFS_ECM=y
-CONFIG_USB_CONFIGFS_ECM_SUBSET=y
 CONFIG_USB_CONFIGFS_RNDIS=y
-CONFIG_USB_CONFIGFS_EEM=y
 CONFIG_USB_CONFIGFS_MASS_STORAGE=y
 CONFIG_USB_CONFIGFS_F_HID=y
 CONFIG_MMC=y
diff --git a/recipes-kernel/linux/files/udc-nic.cfg b/recipes-kernel/linux/files/udc-nic.cfg
index ff694d3..1c38f3d 100644
--- a/recipes-kernel/linux/files/udc-nic.cfg
+++ b/recipes-kernel/linux/files/udc-nic.cfg
@@ -10,3 +10,4 @@
 CONFIG_USB_CHIPIDEA=y >=6.1-rc0 npcm
 CONFIG_USB_CHIPIDEA_UDC=y >=6.1-rc0 npcm
 CONFIG_USB_CHIPIDEA_NPCM=y >=6.1-rc0 npcm
+CONFIG_USB_ASPEED_VHUB=y ast
diff --git a/recipes-kernel/linux/linux-gbmc.inc b/recipes-kernel/linux/linux-gbmc.inc
index d406c5c..3b6c9ef 100644
--- a/recipes-kernel/linux/linux-gbmc.inc
+++ b/recipes-kernel/linux/linux-gbmc.inc
@@ -70,6 +70,7 @@
 LINUX_PLATFORMS:npcm7xx = "arm armv7 npcm npcm7xx"
 LINUX_PLATFORMS:npcm8xx = "arm armv8 npcm npcm8xx"
 LINUX_PLATFORMS:aspeed-g6 = "arm armv7 ast ast26xx"
+LINUX_PLATFORMS:aspeed-g7 = "arm armv7 ast ast27xx"
 
 SRC_URI:append:npcm7xx = " \
   ${@bb.utils.contains('PACKAGECONFIG', 'diorite_c0', 'file://DOWNSTREAM_0001-Diorite-workaround-for-c0-card.patch', '', d)} \