]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
tegra: Migrate CI_UDC_HAS_HOSTPC to Kconfig
authorTom Rini <trini@konsulko.com>
Wed, 30 Mar 2022 22:07:13 +0000 (18:07 -0400)
committerTom Rini <trini@konsulko.com>
Fri, 8 Apr 2022 13:05:19 +0000 (09:05 -0400)
This option is only enabled for CI_UDC and !TEGRA20, so implement it as
such in Kconfig directly.

Signed-off-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Peter Robinson <pbrobinson@gmail.com>
Tested-by: Peter Robinson <pbrobinson@gmail.com>
16 files changed:
arch/arm/mach-tegra/Kconfig
include/configs/apalis-tk1.h
include/configs/apalis_t30.h
include/configs/beaver.h
include/configs/cei-tk1-som.h
include/configs/colibri_t20.h
include/configs/colibri_t30.h
include/configs/dalmore.h
include/configs/jetson-tk1.h
include/configs/nyan-big.h
include/configs/p2371-0000.h
include/configs/p2371-2180.h
include/configs/p2571.h
include/configs/p3450-0000.h
include/configs/tegra-common-usb-gadget.h [deleted file]
include/configs/venice2.h

index 957e3ce64a5e9d4aa7ba5c348447db86b51cb1ac..5309be9cc2102a634e2072c5c961073344902d48 100644 (file)
@@ -164,6 +164,10 @@ config TEGRA_DISCONNECT_UDC_ON_BOOT
          USB controller when U-Boot boots to avoid leaving a stale USB device
          present.
 
+config CI_UDC_HAS_HOSTPC
+       def_bool y
+       depends on CI_UDC && !TEGRA20
+
 config SYS_MALLOC_F_LEN
        default 0x1800
 
index da935f77b9a624736ce6e8fe85170578aa9b2e3b..59c901994fd3190bf15fceb923eec678617eef4f 100644 (file)
 #undef CONFIG_SYS_MAXARGS
 #define CONFIG_SYS_MAXARGS             32
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index eab4f22be34e8dfe536e10b133fbcb103e00b0dc..b7a2fb695e2fb25b20e940bdd6f052d1e8cfeb85 100644 (file)
@@ -49,7 +49,6 @@
 #define BOARD_EXTRA_ENV_SETTINGS \
        UBOOT_UPDATE
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 8be491e60103153b611c8bb908df4cd99324cb74..1d51bb4e4c481a81f14d6f52029b5e5023c4050e 100644 (file)
@@ -24,7 +24,6 @@
 #define CONFIG_TEGRA_SLINK_CTRLS       6
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 1cc86091022bba9a0cdc45f1fc13678e1b7e2607..0672b7dbbe932c52cc5ba35ae126f7087ed1865b 100644 (file)
@@ -25,7 +25,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index c45016a83583bb848ec7bb07609dfec99816a386..fdf6bb284191a44a71103de1f28f15bfabbcfd6c 100644 (file)
@@ -39,7 +39,6 @@
 #undef CONFIG_SYS_MAXARGS
 #define CONFIG_SYS_MAXARGS             32
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 324e607839a96020cb397cd47ba6f0ba067e5b38..cbe73bf86bad27c21c2cc568619bb52496d36e22 100644 (file)
@@ -47,7 +47,6 @@
 #define BOARD_EXTRA_ENV_SETTINGS \
        UBOOT_UPDATE
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 2a020e96c40581d1798222879bc06c5599780f46..e03a24adca4a03553d57c911852e377bfeaf166e 100644 (file)
@@ -22,7 +22,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index b4c42fd37229e113d85260ca06d3018c5dbce63c..69aa55f86c5f662f7ebc7f8d01763d3650034642 100644 (file)
@@ -23,7 +23,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 3584d9ad90e1d327aceae08c3750bbe7a4a29de1..bc5754566bdd2693a426567cc60d97e2e3fba066 100644 (file)
@@ -26,7 +26,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */
index 5cebafc7c7c657359c4c7c23a6cf162f14da25e9..ecd0405d297bdd75536cee071d0c8073e949814e 100644 (file)
@@ -22,7 +22,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* _P2371_0000_H */
index 5e1d50b254663a602b8cc28c7178c31f6067128d..ef1fa2a5926ec95fe5644477fa3edcefd45cefcf 100644 (file)
@@ -22,7 +22,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 /* Crystal is 38.4MHz. clk_m runs at half that rate */
index 5a89dc8a4a35a2866b8b2468205d200e452789a5..50cddb4a4acb0d2856053f9c8d99ee88f852958f 100644 (file)
@@ -22,7 +22,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* _P2571_H */
index b03d3a433b7edf1eefd7ff170af25ecebe7fb212..1c962be8b8e42b81837f1e4476c614f29d63c05d 100644 (file)
@@ -33,7 +33,6 @@
        "fi\0"
 
 /* General networking support */
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 /* Crystal is 38.4MHz. clk_m runs at half that rate */
diff --git a/include/configs/tegra-common-usb-gadget.h b/include/configs/tegra-common-usb-gadget.h
deleted file mode 100644 (file)
index 201f4bc..0000000
+++ /dev/null
@@ -1,18 +0,0 @@
-/* SPDX-License-Identifier: GPL-2.0 */
-/*
- * (C) Copyright 2014
- * NVIDIA Corporation <www.nvidia.com>
- */
-
-#ifndef _TEGRA_COMMON_USB_GADGET_H_
-#define _TEGRA_COMMON_USB_GADGET_H_
-
-#ifndef CONFIG_SPL_BUILD
-/* USB gadget mode support*/
-#ifndef CONFIG_TEGRA20
-#define CONFIG_CI_UDC_HAS_HOSTPC
-#endif
-/* DFU protocol */
-#endif
-
-#endif /* _TEGRA_COMMON_USB_GADGET_H_ */
index fe861a6f7b8a810d2795eaa7c6f51d438785306d..03aa7adcc0d3f55fa5999c74426e6f18d5ff8980 100644 (file)
@@ -23,7 +23,6 @@
 /* SPI */
 #define CONFIG_SPI_FLASH_SIZE          (4 << 20)
 
-#include "tegra-common-usb-gadget.h"
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */