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 X-Spam-Level: X-Spam-Status: No, score=-19.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 10C53C4338F for ; Sun, 8 Aug 2021 18:21:38 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 6B889600CD for ; Sun, 8 Aug 2021 18:21:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 6B889600CD Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 6F5FD82DB3; Sun, 8 Aug 2021 20:21:11 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org 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=chromium.org header.i=@chromium.org header.b="WKbeoWqG"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id AB9D282D18; Sun, 8 Aug 2021 20:20:56 +0200 (CEST) Received: from mail-ot1-x331.google.com (mail-ot1-x331.google.com [IPv6:2607:f8b0:4864:20::331]) (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 7F53782C8A for ; Sun, 8 Aug 2021 20:20:48 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-ot1-x331.google.com with SMTP id r16-20020a0568304190b02904f26cead745so14971098otu.10 for ; Sun, 08 Aug 2021 11:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=MtG56SdduOnXNfBYUXYMoRWpcvUCrxy+qL2d9S6TKes=; b=WKbeoWqGCqFsbEi1mrfqsUOMRidpIzpUBLqjcu3bOrOwcdn+LOBJTuvTAyJwmdrHpf iHugf4/di/L5gVpWrGzlPfcXXPBza/0Jo/t/1Oyq0CDt7tQYZPT9E9vZAZstKRxq5bnn 0OYgJjVRk7W6HBgSTrBnpMOpyvimwvTdNCX14= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=MtG56SdduOnXNfBYUXYMoRWpcvUCrxy+qL2d9S6TKes=; b=WP9oJ9OhkCcw6td/kYop0G6n/NbTcqBfrwkX80rz6BKDcCUfxpgYEox8cauUNLtHgY WpSY3R6DXnDADtbBwdnpprFKBAKdAex0AR/O1jjg15HlDAfgMRVD9q49YXbKkYAxLwvo Jae9QYpGJHjahgJ4O4+/6IxDL64SWhzi9FiI2sIrD9U9Ru0+gLbGUL73Ei1dcNsYUt9H ham7uYkGxxUVQnTFv7l3B9vnFtpORsGITW/2sb5AqKBTWOlVYmaE/5szppFp5KwP54jE iUXushRpwSlRrNOXSFrJaAx2AOA/nN7z39S3Tw4KbrGrtzL/jxXdI150HASJMi4ogxHj t7jQ== X-Gm-Message-State: AOAM532whN3XnE84gzBY9uw/yl3h2EQzD06WsFqoFxlxzNy8+M+KBRAS EH8AzqSCSU72hrlH+uMgHOXoIkfvwGYAFDwb X-Google-Smtp-Source: ABdhPJzNQatyajcZtG9Fz6GhEMDFpt/ARQU+HRe4ir2PFTVYxF45CnFJPOCnxea0lyLyFBTb3Doy8w== X-Received: by 2002:a9d:491c:: with SMTP id e28mr13973328otf.342.1628446846670; Sun, 08 Aug 2021 11:20:46 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id bc42sm2257147oob.39.2021.08.08.11.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 Aug 2021 11:20:46 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Simon Glass Subject: [PATCH 05/23] serial: Add a SERIAL config Date: Sun, 8 Aug 2021 12:20:13 -0600 Message-Id: <20210808182031.3747270-6-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.605.g8dce9f2422-goog In-Reply-To: <20210808182031.3747270-1-sjg@chromium.org> References: <20210808182031.3747270-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean At present we have SPL_SERIAL and TPL_SERIAL but not piain SERIAL. This works because there is a special build rule in Makefile that always includes the drivers/serial directory. It is better to have all driver directories included by drivers/Makefile and there is already a rule in there for this purpose. It just needs a Kconfig for U-Boot proper, so add one. It is always enabled, for now, since that mimics the current behaviour. It should be possible to drop the strange 'SERIAL_PRESENT' option at some point and use SERIAL instead. Signed-off-by: Simon Glass --- Makefile | 1 - drivers/serial/Kconfig | 15 +++++++++++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 269e353a28a..653df0d2731 100644 --- a/Makefile +++ b/Makefile @@ -829,7 +829,6 @@ libs-$(CONFIG_FMAN_ENET) += drivers/net/fm/ libs-$(CONFIG_SYS_FSL_DDR) += drivers/ddr/fsl/ libs-$(CONFIG_SYS_FSL_MMDC) += drivers/ddr/fsl/ libs-$(CONFIG_$(SPL_)ALTERA_SDRAM) += drivers/ddr/altera/ -libs-y += drivers/serial/ libs-y += drivers/usb/cdns3/ libs-y += drivers/usb/dwc3/ libs-y += drivers/usb/common/ diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index 93348c0929c..205c9ddc442 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -2,7 +2,18 @@ # Serial device configuration # -menu "Serial drivers" +menuconfig SERIAL + bool "Serial" + default y + help + Enable support for serial drivers. This allows use of a serial UART + for displaying messages while U-Boot is running. It also brings in + printf() and panic() functions. This should normally be enabled + unless there are space reasons not to. If you just need to disable + the console you can adjust the stdout environment variable or use + SILENT_CONSOLE. + +if SERIAL config BAUDRATE int "Default baudrate" @@ -939,4 +950,4 @@ config SYS_SDMR depends on MPC8XX_CONS default 0 -endmenu +endif -- 2.32.0.605.g8dce9f2422-goog