From patchwork Wed Jan 17 08:54:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 124788 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1308994lje; Wed, 17 Jan 2018 00:57:09 -0800 (PST) X-Google-Smtp-Source: ACJfBosaZZTBdeufYmMZe2tbrTYH95tXYFqqvc5F1fH4BSishfURFDtn4ZxrSGQVEP4vYSeCK28H X-Received: by 10.80.222.2 with SMTP id z2mr1894610edk.78.1516179429094; Wed, 17 Jan 2018 00:57:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516179429; cv=none; d=google.com; s=arc-20160816; b=0043o1+g4G+3Ld5W5nqRF7ipdUBvRRG5CfPQnyPmXdY+6IL7MW7v5lCmKgMyDRI4YQ E+KHfoWy6yDQ0mv0Q1xT4fF5T2QMtdQYepXPDXQ1qNNJEDzLRe8ySf6sx1xrVZl2V3WM CX2+wzgwhgVoRxPqVQmJldRtnR0ycw8uenZTxiTJvjTnfAQ5t2bI/5saq9+8kuB8SQf4 KWsfVUb8V9Rxp92UWQDglLow1px2CnPSOb0D451wo7YxA0RGE9R4ULLMsxTrpTbwjKMm EPb8POt3iXFN5zKdBlibg8zqyvKRBUQ5gIz+EjEHs7HRLrMlFhLlyM5ZeLMgVy34yOnA U+tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=vjByN3VpjONssZ//WMNF3UyzxPOSm30YZEVIUSnmtlQ=; b=07SZgxblIz2beyxNMxhBhW20W0j2QFfw8KYEJEnd/bVSDsCVicqyTD+1PeIsmMxHyX lt/lVSFtQo+uuqeP+2J9F6RQ5bs/leB5m3SqOV1rdIpY5j2OOCJ9R7u8MbPfKZJskFoo MtjAhP3/AKLeLOncRq1eCtaVF+ZFjRngmDiBMUq0OQNi4YcemWAH1CfnvCvqPfwO4MqG Bs/vqXgkS2PeJxAKaWZGNI5nFAUvOFsc6HUoc44kL6yRrfLWGWKz1FwHPdwuD45kfgkT b+DoNynjBV8O1Zp8yO7RP8LFN13ArBFOaZgiYJcH+H9e+sDpOiYiVeFRxbSMARxpuk8J l6iw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id g7si431656edj.376.2018.01.17.00.57.08; Wed, 17 Jan 2018 00:57:09 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 99CBAC21DE8; Wed, 17 Jan 2018 08:55:41 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 85277C21E2F; Wed, 17 Jan 2018 08:55:02 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 1BEEBC21DB5; Wed, 17 Jan 2018 08:55:00 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 837DFC21C50 for ; Wed, 17 Jan 2018 08:54:59 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 1C28DAEF6; Wed, 17 Jan 2018 08:54:59 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Wed, 17 Jan 2018 09:54:57 +0100 Message-Id: <20180117085458.27293-7-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180117085458.27293-1-agraf@suse.de> References: <20180117085458.27293-1-agraf@suse.de> Cc: Heinrich Schuchardt Subject: [U-Boot] [PATCH v2 6/7] rpi: Determine PL011/Mini-UART availability at runtime X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Firmware on the Raspberry Pi family of devices can dynamically configure either the PL011, Mini-UART or no device at all to be routed to the user accessible UART pins. That means we need to always include both drivers, because we can never be sure which of the two serial devices firmware actually chooses to use. Signed-off-by: Alexander Graf --- include/configs/rpi.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/include/configs/rpi.h b/include/configs/rpi.h index cab8661779..2c84cf9a49 100644 --- a/include/configs/rpi.h +++ b/include/configs/rpi.h @@ -75,12 +75,9 @@ #define CONFIG_MISC_INIT_R #endif -/* Console UART */ -#if defined (CONFIG_BCM2837) || defined(CONFIG_TARGET_RPI_0_W) +/* Console UART, can be configured dynamically in config.txt */ #define CONFIG_BCM283X_MU_SERIAL -#else #define CONFIG_PL01X_SERIAL -#endif /* Console configuration */ #define CONFIG_SYS_CBSIZE 1024