Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6BDAC43334 for ; Mon, 13 Jun 2022 00:03:42 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id C79FA8444B; Mon, 13 Jun 2022 02:02:50 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=konsulko.com header.i=@konsulko.com header.b="euHd8g7I"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D53A283EE8; Mon, 13 Jun 2022 02:02:20 +0200 (CEST) Received: from mail-qt1-x831.google.com (mail-qt1-x831.google.com [IPv6:2607:f8b0:4864:20::831]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id D063084425 for ; Mon, 13 Jun 2022 02:02:16 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=konsulko.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=trini@konsulko.com Received: by mail-qt1-x831.google.com with SMTP id j8so2908279qtn.13 for ; Sun, 12 Jun 2022 17:02:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=ubWYHkaTFxMzniQTPjuLLFiAONKlHI3Z+BZC/Dr+iXU=; b=euHd8g7IcZUrCTfuN6qC402+Fre6aFHPypNCJjuEqeV/17UR3Gyj4voFzegIyZa3FW 9qVo2OvYjuEe6O/IoOjG0Hh4nAztu2oTW4oQe7uWcl1axzIwbNkiVqAwxJHBUIROZrzm Bm7tV9AV5bdKuTCk4G9Fq1UPMWTktzXyljTzo= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=ubWYHkaTFxMzniQTPjuLLFiAONKlHI3Z+BZC/Dr+iXU=; b=AMZ448B0IN/UUa/BymUA+CG0kXc20cy6baAD5/+H2I2fjifg0G0fyIaA007QsqBxi3 KGkXMzdfeP/XQ9FoDH9ntECiPnxTlSU5JsTG+2Krzo2p8IAWfXN3AZSjPWl3AEQZb2fs thUg8DZQVt46bXjKSqEB3CJNrZ80a4TirLUPG8X2tDQEGj4oAHUd64EfTwNqioQ+wphS rkCM+tj5NVumczkACPgv8qO3jkBJNhmhM+/dhgOagT1K3NM0Je5umbJ4D5D0xS06RF9U S/OtLaDK7OK2FtLtytdy6Pe6MEdDj78rDLPUuEZy/xj1cU5oP8m8a4ujhLH79SX4A2iS FOdg== X-Gm-Message-State: AOAM532AJim5BU4oV/ywaqG4Y7wZZz04Jf+fnfa+ZDmWtqXfHm8mS1eK ZoZB+Teort9svFhaKRAyI91Wj4cnltAG5g== X-Google-Smtp-Source: ABdhPJy9mcLdVQbCpRL81Ud1bPrkU45KofigHpNBu98IAVARJrfi0A32XkoJ9w3hI45c++dmKQdw4w== X-Received: by 2002:a05:622a:608c:b0:2f1:e3fa:b603 with SMTP id hf12-20020a05622a608c00b002f1e3fab603mr44664236qtb.48.1655078534554; Sun, 12 Jun 2022 17:02:14 -0700 (PDT) Received: from bill-the-cat.lan (cpe-65-184-195-139.ec.res.rr.com. [65.184.195.139]) by smtp.gmail.com with ESMTPSA id h5-20020a05620a400500b006a6d4261f40sm2625551qko.111.2022.06.12.17.02.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 12 Jun 2022 17:02:14 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 8/8] Convert CONFIG_SYS_USB_FAT_BOOT_PARTITION to Kconfig Date: Sun, 12 Jun 2022 20:02:05 -0400 Message-Id: <20220613000205.891039-8-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220613000205.891039-1-trini@konsulko.com> References: <20220613000205.891039-1-trini@konsulko.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean This converts the following to Kconfig: CONFIG_SYS_USB_FAT_BOOT_PARTITION Signed-off-by: Tom Rini --- common/spl/Kconfig | 7 +++++++ include/configs/am43xx_evm.h | 6 ------ include/configs/am64x_evm.h | 2 -- include/configs/am65x_evm.h | 2 -- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/common/spl/Kconfig b/common/spl/Kconfig index 42f2c95228a6..3fd564480061 100644 --- a/common/spl/Kconfig +++ b/common/spl/Kconfig @@ -1317,6 +1317,13 @@ config SPL_USB_STORAGE config options. This enables loading from USB using a configured device. +config SYS_USB_FAT_BOOT_PARTITION + int "Partition on USB to use to load U-Boot from" + depends on SPL_USB_STORAGE + default 1 + help + Partition on the USB storage device to load U-Boot from + config SPL_USB_GADGET bool "Suppport USB Gadget drivers" help diff --git a/include/configs/am43xx_evm.h b/include/configs/am43xx_evm.h index e0138fe1db83..e3a01adae971 100644 --- a/include/configs/am43xx_evm.h +++ b/include/configs/am43xx_evm.h @@ -48,12 +48,6 @@ /* NS16550 Configuration */ #define CONFIG_SYS_NS16550_COM1 0x44e09000 /* Base EVM has UART0 */ -/* SPL USB Support */ - -#if defined(CONFIG_SPL_USB_HOST) || !defined(CONFIG_SPL_BUILD) -#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1 -#endif - #ifndef CONFIG_SPL_BUILD /* USB Device Firmware Update support */ #define DFUARGS \ diff --git a/include/configs/am64x_evm.h b/include/configs/am64x_evm.h index 6da11b86c4b1..140940730d0e 100644 --- a/include/configs/am64x_evm.h +++ b/include/configs/am64x_evm.h @@ -106,6 +106,4 @@ /* Now for the remaining common defines */ #include -#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1 - #endif /* __CONFIG_AM642_EVM_H */ diff --git a/include/configs/am65x_evm.h b/include/configs/am65x_evm.h index db35af98d9aa..65b0a576a6f4 100644 --- a/include/configs/am65x_evm.h +++ b/include/configs/am65x_evm.h @@ -110,8 +110,6 @@ EXTRA_ENV_DFUARGS \ BOOTENV -#define CONFIG_SYS_USB_FAT_BOOT_PARTITION 1 - /* Now for the remaining common defines */ #include -- 2.25.1