From patchwork Thu Jan 25 11:05:45 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Graf X-Patchwork-Id: 125811 Delivered-To: patch@linaro.org Received: by 10.46.66.141 with SMTP id h13csp1039403ljf; Thu, 25 Jan 2018 03:15:57 -0800 (PST) X-Google-Smtp-Source: AH8x227zzFbSsveQI6yczhFsosZ6bbpYE6gr9UgUZYUw1nELI2AjhsZwScyjYibHAEOQDW+EL0Ch X-Received: by 10.80.217.10 with SMTP id t10mr28805821edj.171.1516878957035; Thu, 25 Jan 2018 03:15:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516878957; cv=none; d=google.com; s=arc-20160816; b=B/jUSCUuHwKaZwQ2Vo9GVBAZcXiyEk21dQulPufxkm6pRlJGRQB/PQ4ZTJXjKIFovJ E9XYrNgC0BlcQJ1J26xjUqzXo1TzL/4bc/kpcH5KseYmkpqY/4PiKVJMCo747HnT5j0U UCAcfvqbR6mlm69wGoXtBClK/5fe2hdk3mMT8eje+4mImzgbfbCjKZ0lKHfbrjkgRt2E oIPjHmsIcfZ+GBGj/H994/S5U18+4xr/KUbu6GhqOcUCDD7Nl3pWo/7CBFWnx88s4sd7 W4KfxLn7Dm+jpnBV/TR9cF6vLa+oQKLPmkxILD3JCrM9m08IrMH29gl0Hk5nrog0N/7z lUWA== 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=fQhFoahiZ+bBYJxw8PfQpEpXj2Z2KikPKCEeLNt53J/ihp0tIxhMCyzPLT7QrCsF2V FXgmCFPDpEJy84L/a88+WU8m+ACaR9jXJ55U/pZ9q+HUDzactOjBbNtHBbSHoBPZSpke QXHCwBeoGkVa9GjQk8VVMZykMt5BPuxBp0T/b+DMQ6bSDFsx+uWyhKViEPdWqJ8OYngJ bfdSEdLVb/bgwmQRedSroFR4pJcH7jEatd64XjiYdvetc8dLY7cdI1wa85OmGqzkropA l4fh/RBLdWy4fu38uxOojQHsT903tXT/PrRjlKIsQ8DCiV5DKS0TZlBE8k6oxR9x/x4W BG+Q== 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 o2si1903538edb.184.2018.01.25.03.15.56; Thu, 25 Jan 2018 03:15:57 -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 A6582C2244D; Thu, 25 Jan 2018 11:14:21 +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=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED 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 AABC4C22433; Thu, 25 Jan 2018 11:12:29 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 2F53BC2242B; Thu, 25 Jan 2018 11:05:58 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id BD793C22400 for ; Thu, 25 Jan 2018 11:05:57 +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 4A8C0ADB6; Thu, 25 Jan 2018 11:05:57 +0000 (UTC) From: Alexander Graf To: u-boot@lists.denx.de Date: Thu, 25 Jan 2018 12:05:45 +0100 Message-Id: <20180125110556.76352-5-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180125110556.76352-1-agraf@suse.de> References: <20180125110556.76352-1-agraf@suse.de> Cc: Tom Rini Subject: [U-Boot] [PATCH v3 04/15] 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