From patchwork Fri Jul 19 13:22:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chris Webb X-Patchwork-Id: 1134061 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=arachsys.com Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 45qsBZ1Mk8z9s7T for ; Fri, 19 Jul 2019 23:23:02 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id CB82CC21D8E; Fri, 19 Jul 2019 13:22:55 +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 09967C21C27; Fri, 19 Jul 2019 13:22:54 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id B7B64C21C27; Fri, 19 Jul 2019 13:22:52 +0000 (UTC) Received: from cdw.me.uk (cdw.me.uk [91.203.57.136]) by lists.denx.de (Postfix) with ESMTPS id 7208CC21BE5 for ; Fri, 19 Jul 2019 13:22:52 +0000 (UTC) Received: from chris by delta.arachsys.com with local (Exim 4.80) (envelope-from ) id 1hoSqT-0005Rr-Tr; Fri, 19 Jul 2019 14:22:45 +0100 Date: Fri, 19 Jul 2019 14:22:45 +0100 From: Chris Webb To: Kever Yang , Philipp Tomsich , Simon Glass Message-ID: <20190719132245.GA20880@arachsys.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 0/2] rockchip: tpl.c #ifdef fixes 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: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" These are two trivial patches which fix up the #ifdef conditionals in mach-rockchip/tpl.c to do the right thing in two configuration scenarios: 1. Debug UART enabled (for SPL and main U-Boot) but serial support disabled for the TPL stage. 2. TPL banner disabled by unsetting CONFIG_TPL_BANNER_PRINT. I stumbled over these edge cases while trying various permitted config permutations, trying to make U-Boot less noisy without killing useful error messages. The diffs are against u-boot-rockchip.git: this already has changes that haven't yet reached mainline u-boot yet, moving the relevant code from board specific source files into the shared mach-rockchip/tpl.c.