From patchwork Wed Sep 9 19:35:40 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergey Temerkhanov X-Patchwork-Id: 515985 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 37DFD140157 for ; Thu, 10 Sep 2015 05:29:38 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=tJDOvr1F; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80AE04B729; Wed, 9 Sep 2015 21:29:29 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id dFn3z0FsmzX2; Wed, 9 Sep 2015 21:29:29 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AC8C64B734; Wed, 9 Sep 2015 21:29:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5AB844B639 for ; Wed, 9 Sep 2015 21:29:21 +0200 (CEST) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id HZ6amOJPSBw0 for ; Wed, 9 Sep 2015 21:29:21 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com [209.85.215.46]) by theia.denx.de (Postfix) with ESMTPS id 1030B4B6DD for ; Wed, 9 Sep 2015 21:29:15 +0200 (CEST) Received: by lagj9 with SMTP id j9so14003382lag.2 for ; Wed, 09 Sep 2015 12:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Phra//XLUHAmO3sJYQOzm2PCyhT6+ToZikpYpD/kv1A=; b=tJDOvr1FViRpRtMySjTE1X0kXlUEuQAAau6FeLyerjGmbwwsOMllDrNa5F04bDsJhc p+PUIR9qZ8HBWSgHFW15JRIBDF2dQe66V3UYBhkmvy6K7e0mpOkZqbZwRv6aDIAHeTCf sV0nbc2NvMJgtlrkjhQQCo9jZgdlIt6xMlSz3IHPDDvTuYrzlxqoTHVYPp9ZjYIpMray NRtLjCCsCBcW3x2GkvChhNfmJOUGorpDgqKA2pn2B7R0awIZfL3a6Ej8p9Z27E2A78Fa ygoAjKHR5fBjoEhrjPHNZVfwNX4tpWDu/9B7qnnNJoJEw7Y+simtyJogIjwK/twG121a OE2w== X-Received: by 10.152.5.69 with SMTP id q5mr30300924laq.92.1441826955256; Wed, 09 Sep 2015 12:29:15 -0700 (PDT) Received: from snickers.office.auriga.msk ([81.19.133.99]) by smtp.gmail.com with ESMTPSA id dd6sm2013142lad.44.2015.09.09.12.29.14 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 09 Sep 2015 12:29:14 -0700 (PDT) From: Sergey Temerkhanov To: u-boot@lists.denx.de Date: Wed, 9 Sep 2015 22:35:40 +0300 Message-Id: <1441827340-23490-3-git-send-email-s.temerkhanov@gmail.com> X-Mailer: git-send-email 2.2.0 In-Reply-To: <1441827340-23490-1-git-send-email-s.temerkhanov@gmail.com> References: <1441827340-23490-1-git-send-email-s.temerkhanov@gmail.com> Cc: Tom Rini , Radha Mohan Chintakuntla Subject: [U-Boot] [PATCH v2 2/2] arm: serial: Add Kconfig entries to facilitate usage of the pl01x driver for early debug output X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 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" This patch adds Kconfig entries to facilitate usage of pl01x as a debug UART. Signed-off-by: Sergey Temerkhanov Signed-off-by: Radha Mohan Chintakuntla Acked-by: Simon Glass --- Changes in v2: - Broke down into 2 patches - Made CONFIG_DEBUG_UART_PL010 and CONFIG_DEBUG_UART_PL011 separate options - Typo fixes drivers/serial/Kconfig | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/drivers/serial/Kconfig b/drivers/serial/Kconfig index ccb80d2..539783b 100644 --- a/drivers/serial/Kconfig +++ b/drivers/serial/Kconfig @@ -77,6 +77,22 @@ config DEBUG_UART_S5P will need to provide parameters to make this work. The driver will be available until the real driver-model serial is running. +config DEBUG_UART_PL010 + bool "pl010" + help + Select this to enable a debug UART using the pl01x driver with the + PL010 UART type. You will need to provide parameters to make this + work. The driver will be available until the real driver model + serial is running. + +config DEBUG_UART_PL011 + bool "pl011" + help + Select this to enable a debug UART using the pl01x driver with the + PL011 UART type. You will need to provide parameters to make this + work. The driver will be available until the real driver model + serial is running. + endchoice config DEBUG_UART_BASE @@ -109,6 +125,12 @@ config DEBUG_UART_SHIFT value. Use this value to specify the shift to use, where 0=byte registers, 2=32-bit word registers, etc. +config DEBUG_UART_SKIP_INIT + bool "Skip UART initialization" + help + Select this if the UART you want to use for debug output is already + initialized by the time U-Boot starts its execution. + config ROCKCHIP_SERIAL bool "Rockchip on-chip UART support" depends on ARCH_UNIPHIER && DM_SERIAL