From patchwork Tue Jan 16 13:47:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 124701 Delivered-To: patch@linaro.org Received: by 10.46.64.148 with SMTP id r20csp1020559lje; Tue, 16 Jan 2018 05:51:50 -0800 (PST) X-Google-Smtp-Source: ACJfBouVcwsgUtpshcKrn+6aQR2AXJro3PYdcKIOIQrSodaqOowKMDGaYfudJXSqfP4sbp+4N/xu X-Received: by 10.80.226.203 with SMTP id q11mr11645758edl.248.1516110710338; Tue, 16 Jan 2018 05:51:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516110710; cv=none; d=google.com; s=arc-20160816; b=B/W+3ZsAgWXnf7R7YAZ5NEnygYiVfZZEU+NjVEuqnTH48zU7Xny2NuZRQr5n89mreI asZLWnL+yjb1OhQe2rfygYGzJ4pMjVQsXYJWeea787OnTNR7yIfnzay4tBHT/CdhHY8k mSRK4mNR024/uMLOAxOzq6CuXxQKyefqJzZHR+GVa16EaoJNMFYeLUoS4iRggoUQRi2s sJQr0p9L6wWba+oPEXJeikExfa693a4FitBzZ4uoayma+qrRFchCB9cAQTyFuzDuRtTU 5CyauwOlrvkScTHNWqmcOGLpyfh5m2xEb27MNSCYVzVV6NT+yhRca36IoPBR12MyUBZf QPAg== 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:references:in-reply-to:message-id:date :to:from:arc-authentication-results; bh=vjByN3VpjONssZ//WMNF3UyzxPOSm30YZEVIUSnmtlQ=; b=GfNkSnvOKlQ495NVAfPJU6QzETlrHl1+4KgN/Yh59A26myEH0MrL+Mq1aB2pbYlTD/ pXDYMBR2M2+thAiqXPAVMUWkxG4q3i/7ND5v6YoKWmDbY9riKors3nN2k1tU7vTAUph9 aR0dMpay22l0JQPqG6WB04YCie3VuNf9SMDVrKjgaW6GTNgUmKnpp/t+rWOPPqTGaMH8 yqbFuF9QozI+ELphYdHjcGIghId+13S4vxzfWb+Iz2WYGzJE8YA+LL5Jt1sR6tCJMq03 tKVh0aL9i/H3NAcy6MPRTCrxMlCcSE+lwNctOWMOc1f2JnUREsxj+HlixUXa0+uKYgHN EP9A== 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 f12si2278708ede.477.2018.01.16.05.51.50; Tue, 16 Jan 2018 05:51:50 -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 D3B71C21E31; Tue, 16 Jan 2018 13:50:44 +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=none 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 65087C21E48; Tue, 16 Jan 2018 13:49:00 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id A7BCAC21E18; Tue, 16 Jan 2018 13:48:11 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id CDA93C21E18 for ; Tue, 16 Jan 2018 13:47:42 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 6AB93AD11; Tue, 16 Jan 2018 13:47:42 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Tue, 16 Jan 2018 14:47:40 +0100 Message-Id: <20180116134741.4103-7-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180116134741.4103-1-agraf@suse.de> References: <20180116134741.4103-1-agraf@suse.de> Subject: [U-Boot] [PATCH 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