From mboxrd@z Thu Jan 1 00:00:00 1970 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 138A1C4332F for ; Sat, 19 Nov 2022 23:52:11 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9019D852C6; Sun, 20 Nov 2022 00:46:58 +0100 (CET) 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="KLF4Ub89"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 86DD885284; Sun, 20 Nov 2022 00:46:27 +0100 (CET) Received: from mail-qv1-xf34.google.com (mail-qv1-xf34.google.com [IPv6:2607:f8b0:4864:20::f34]) (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 D0EC985286 for ; Sun, 20 Nov 2022 00:46:24 +0100 (CET) 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-xf34.google.com with SMTP id i12so5845549qvs.2 for ; Sat, 19 Nov 2022 15:46:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=konsulko.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=WGE5+qNTUkFFeSXKCvL3jgyIj0GupI5zHr+ElRKo+ZM=; b=KLF4Ub89tSDxB5hvF3da/tYI1avzjbALevte4/RSEearvsYH9by6NSXn4UhWzumGVW 799Kuu/opINY8RyY80eFCdWQCXn616LYPJqWLAgjclM/rZ8gHFHPrEioPRl9rsrtfxUJ aX42ni4Ky8gvAqAEOXoufjpTC2cDI0xkHGj7Q= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=WGE5+qNTUkFFeSXKCvL3jgyIj0GupI5zHr+ElRKo+ZM=; b=4i3LLuzd1vQVwKxVVJovncL7K4pgopUWQiNE1eLu84KPM31wFiSZERSpeUU/udUT7m pRYUKKZCFe5BNM63VQ0k7P2XMELYBZxbS8PMbbmxYJJXJ88JZ+MEhs2XlAsekMlxdd3u qLPcnRSoZ6B7r39b60wCQWtEvcOA+012yT/w+XbJe/EC3RHjmPAy2S5eiMAfMDQ+QjDF w4SOeYci/HjXsJ5pasSeEvkFylln4GgaQIq07GUSbyuvT+N6Rh3wDxCwVG89gPpmzFQi fTbHzmTreBi1HHiY3J/547fzMDu7QeYXZRXPMi44LpDO4B4Fxq36DBoRvhcT8q8bNzaa 50gQ== X-Gm-Message-State: ANoB5pnQ62kPkiqHL4/CuquW2i1HqoshAzcdeZCKT/tUiyCEA8kfmhuz bvAGvWGR3C6bmFj4YY6x2svz2jZUiMpOTw== X-Google-Smtp-Source: AA0mqf7fgCHE+6apwG0Iwuiy2QFuw/PrNZ+Fs/UdCm3dICX2xDXmsotpKNgb9MkdYySlGK7JK1xj9Q== X-Received: by 2002:a05:6214:924:b0:4b1:9605:d953 with SMTP id dk4-20020a056214092400b004b19605d953mr12218924qvb.11.1668901563519; Sat, 19 Nov 2022 15:46:03 -0800 (PST) Received: from bill-the-cat.lan (2603-6081-7b00-6400-55ec-b699-c19f-3363.res6.spectrum.com. [2603:6081:7b00:6400:55ec:b699:c19f:3363]) by smtp.gmail.com with ESMTPSA id y11-20020a37f60b000000b006ce1bfbd603sm5169743qkj.124.2022.11.19.15.46.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 19 Nov 2022 15:46:03 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [PATCH 30/38] Nokia RX-51: Migrate legacy USB device options to Kconfig Date: Sat, 19 Nov 2022 18:45:37 -0500 Message-Id: <20221119234545.404563-30-trini@konsulko.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20221119234545.404563-1-trini@konsulko.com> References: <20221119234545.404563-1-trini@konsulko.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 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.6 at phobos.denx.de X-Virus-Status: Clean Move a number of legacy USB UDC options to Kconfig, over from the config header. Cc: Pali Rohár Signed-off-by: Tom Rini --- README | 7 ------- board/nokia/rx51/Kconfig | 30 ++++++++++++++++++++++++++++++ include/configs/nokia_rx51.h | 9 --------- 3 files changed, 30 insertions(+), 16 deletions(-) diff --git a/README b/README index 0acc0b410917..103562bbbe8d 100644 --- a/README +++ b/README @@ -629,13 +629,6 @@ The following options need to be configured: variable usbtty to be cdc_acm should suffice. The following might be defined in YourBoardName.h - CONFIG_USB_DEVICE - Define this to build a UDC device - - CONFIG_USB_TTY - Define this to have a tty type of device available to - talk to the UDC device - CONFIG_USBD_HS Define this to enable the high speed support for usb device and usbtty. If this feature is enabled, a routine diff --git a/board/nokia/rx51/Kconfig b/board/nokia/rx51/Kconfig index 7cf05077dad1..c884543a3d84 100644 --- a/board/nokia/rx51/Kconfig +++ b/board/nokia/rx51/Kconfig @@ -1,5 +1,35 @@ if TARGET_NOKIA_RX51 +config USB_DEVICE + def_bool y + help + Legacy UDC device support + +config USB_TTY + def_bool y + help + Legacy tty type of device available to talk to the UDC device + +config USBD_VENDORID + hex + default 0x0421 + +config USBD_PRODUCTID_CDCACM + hex + default 0x01c8 + +config USBD_PRODUCTID_GSERIAL + hex + default 0x01c8 + +config USBD_MANUFACTURER + string + default "Nokia" + +config USBD_PRODUCT_NAME + string + default "N900 (U-Boot)" + config NR_DRAM_BANKS default 2 diff --git a/include/configs/nokia_rx51.h b/include/configs/nokia_rx51.h index 5701732b9aeb..04bff3ca4f67 100644 --- a/include/configs/nokia_rx51.h +++ b/include/configs/nokia_rx51.h @@ -49,15 +49,6 @@ #define CFG_SYS_BAUDRATE_TABLE { 4800, 9600, 19200, 38400, 57600, 115200 } -/* USB device configuration */ -#define CONFIG_USB_DEVICE -#define CONFIG_USB_TTY -#define CONFIG_USBD_VENDORID 0x0421 -#define CONFIG_USBD_PRODUCTID_CDCACM 0x01c8 -#define CONFIG_USBD_PRODUCTID_GSERIAL 0x01c8 -#define CONFIG_USBD_MANUFACTURER "Nokia" -#define CONFIG_USBD_PRODUCT_NAME "N900 (U-Boot)" - #define GPIO_SLIDE 71 /* -- 2.25.1