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 15D6EC433EF for ; Wed, 8 Jun 2022 12:26:39 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 7386684355; Wed, 8 Jun 2022 14:25:45 +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="tTvO9vvJ"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id C560884360; Wed, 8 Jun 2022 14:25:20 +0200 (CEST) Received: from mail-qv1-xf2f.google.com (mail-qv1-xf2f.google.com [IPv6:2607:f8b0:4864:20::f2f]) (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 BBC608432F for ; Wed, 8 Jun 2022 14:24:51 +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-qv1-xf2f.google.com with SMTP id i11so3652qvx.10 for ; Wed, 08 Jun 2022 05:24:51 -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=flWOs1MxDf4q3eRWji/au7/9FtwWUPvWuqC8knq5JwA=; b=tTvO9vvJfFuq4dvQMqvL9c6DdRa2sgPigtTg0zn4Q3b8vdHSIsZMJb1gfNsRorfTyP Y5gjBg7m2Oz7JZ4CXLKj0PUf3MTDallu1xMc6sZtq/KhjpIUGz/cw2FSe/LrtJjZ4ppc MSvuD4FkePfpqhrSuvKyt7IK0zTeySxVBnTl8= 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=flWOs1MxDf4q3eRWji/au7/9FtwWUPvWuqC8knq5JwA=; b=VyzfDziQRv+sMlIrMUv5UlUhPGgmZaZpq/cnRvQGdzUjJVMlDkDJHwaW5pM30vXcn6 ariSoRVsNK0S0GGQvudc+s44ev+g+AATelmOuIK3KHpZHXKQ0cDB7Ls7Ut/tYg8UDLFE UPUFdF5fEadNsZUEIzGYEfPsodax6MujNpwrhthwvpK7HVHF3iQYVtrG6bp7AurK82A4 ZURPQd1a7tqZchIjZVC0GByvsXUzSSJVIOALX5x97glRaWYhlGelUxVyE53WdFd8Qmui zBC2GmqW2IstZsjD9I++ViOLC9aZHDITnL/y9nyju0Nn7fk/qp07tQQ6rXCUA5Wzpube 4OGw== X-Gm-Message-State: AOAM530yGdSLAZN4bUcZQEiLKSoJr6+q5OnVA4vqnl/Ux2aNNStAF5Bu AwzqCy4fpiyOjmP8NMYrJX3giGdqo3SaeA== X-Google-Smtp-Source: ABdhPJy+Sc0my0Z4VFpOOGoLEgfbVs4itnYYJ6a4weIWTBYz3zemMVA+NbupR1/AJl/jC+EyTDxyDw== X-Received: by 2002:a05:6214:419d:b0:46a:90ed:2515 with SMTP id ld29-20020a056214419d00b0046a90ed2515mr16449359qvb.103.1654691089906; Wed, 08 Jun 2022 05:24:49 -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 r14-20020ac87eee000000b00304ee3372dfsm5242572qtc.45.2022.06.08.05.24.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jun 2022 05:24:49 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Subject: [PATCH 09/18] Convert CONFIG_USB_EHCI_TXFIFO_THRESH to Kconfig Date: Wed, 8 Jun 2022 08:24:31 -0400 Message-Id: <20220608122440.4114272-9-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220608122440.4114272-1-trini@konsulko.com> References: <20220608122440.4114272-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_USB_EHCI_TXFIFO_THRESH Signed-off-by: Tom Rini --- README | 3 --- drivers/usb/host/Kconfig | 11 +++++++++++ include/configs/tegra114-common.h | 3 --- include/configs/tegra124-common.h | 3 --- include/configs/tegra20-common.h | 8 -------- include/configs/tegra210-common.h | 3 --- include/configs/tegra30-common.h | 3 --- 7 files changed, 11 insertions(+), 23 deletions(-) diff --git a/README b/README index 9800359e5dfe..3603a9a46a37 100644 --- a/README +++ b/README @@ -793,9 +793,6 @@ The following options need to be configured: Supported are USB Keyboards and USB Floppy drives (TEAC FD-05PUB). - CONFIG_USB_EHCI_TXFIFO_THRESH enables setting of the - txfilltuning field in the EHCI controller on reset. - CONFIG_USB_DWC2_REG_ADDR the physical CPU address of the DWC2 HW module registers. diff --git a/drivers/usb/host/Kconfig b/drivers/usb/host/Kconfig index 413bec0f4a1a..9c9d4dc947e4 100644 --- a/drivers/usb/host/Kconfig +++ b/drivers/usb/host/Kconfig @@ -284,6 +284,17 @@ config USB_EHCI_FSL select EHCI_HCD_INIT_AFTER_RESET ---help--- Enables support for the on-chip EHCI controller on FSL chips. + +config USB_EHCI_TXFIFO_THRESH + hex + depends on USB_EHCI_TEGRA + default 0x10 + help + This parameter affects a TXFILLTUNING field that controls how much + data is sent to the latency fifo before it is sent to the wire. + Without this parameter, the default (2) causes occasional Data Buffer + Errors in OUT packets depending on the buffer address and size. + endif # USB_EHCI_HCD config USB_OHCI_HCD diff --git a/include/configs/tegra114-common.h b/include/configs/tegra114-common.h index 742083158948..87ec1f5a99d6 100644 --- a/include/configs/tegra114-common.h +++ b/include/configs/tegra114-common.h @@ -55,7 +55,4 @@ /* Defines for SPL */ -/* For USB EHCI controller */ -#define CONFIG_USB_EHCI_TXFIFO_THRESH 0x10 - #endif /* _TEGRA114_COMMON_H_ */ diff --git a/include/configs/tegra124-common.h b/include/configs/tegra124-common.h index 314486a1bcbd..f509784a8681 100644 --- a/include/configs/tegra124-common.h +++ b/include/configs/tegra124-common.h @@ -57,9 +57,6 @@ /* Defines for SPL */ -/* For USB EHCI controller */ -#define CONFIG_USB_EHCI_TXFIFO_THRESH 0x10 - /* GPU needs setup */ #define CONFIG_TEGRA_GPU diff --git a/include/configs/tegra20-common.h b/include/configs/tegra20-common.h index a2b14d8ead86..71867bb6baac 100644 --- a/include/configs/tegra20-common.h +++ b/include/configs/tegra20-common.h @@ -69,12 +69,4 @@ #define TEGRA_LP0_VEC #endif -/* - * This parameter affects a TXFILLTUNING field that controls how much data is - * sent to the latency fifo before it is sent to the wire. Without this - * parameter, the default (2) causes occasional Data Buffer Errors in OUT - * packets depending on the buffer address and size. - */ -#define CONFIG_USB_EHCI_TXFIFO_THRESH 0x10 - #endif /* _TEGRA20_COMMON_H_ */ diff --git a/include/configs/tegra210-common.h b/include/configs/tegra210-common.h index 3ba12bec0eed..e510820786e4 100644 --- a/include/configs/tegra210-common.h +++ b/include/configs/tegra210-common.h @@ -46,9 +46,6 @@ "fdt_addr_r=0x83000000\0" \ "ramdisk_addr_r=0x83420000\0" -/* For USB EHCI controller */ -#define CONFIG_USB_EHCI_TXFIFO_THRESH 0x10 - /* GPU needs setup */ #define CONFIG_TEGRA_GPU diff --git a/include/configs/tegra30-common.h b/include/configs/tegra30-common.h index a68da5ddfc89..04fcf11ed82d 100644 --- a/include/configs/tegra30-common.h +++ b/include/configs/tegra30-common.h @@ -52,7 +52,4 @@ /* Defines for SPL */ -/* For USB EHCI controller */ -#define CONFIG_USB_EHCI_TXFIFO_THRESH 0x10 - #endif /* _TEGRA30_COMMON_H_ */ -- 2.25.1