From patchwork Wed Sep 17 14:24:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Joe.C" X-Patchwork-Id: 37525 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f71.google.com (mail-ee0-f71.google.com [74.125.83.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5013B2054D for ; Wed, 17 Sep 2014 14:27:54 +0000 (UTC) Received: by mail-ee0-f71.google.com with SMTP id e53sf1033998eek.6 for ; Wed, 17 Sep 2014 07:27:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:mime-version:cc:precedence:list-id :list-unsubscribe:list-archive:list-post:list-help:list-subscribe :sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:content-type :content-transfer-encoding; bh=zLH3IbQjpmsS++KiM65l4+rIke+Q0HjDz4LGtc9dhu4=; b=coMy3gPvuxfmH2Qeg07NJOSUvMezWJwHOEtuq9Q4lrCGUiuO8YvKc7lwJXDWzjaNo7 eTQN7ZcR/uYGHJmKA34zHmqKM+PkmSiQeuCyLVrrMrLtk/GsFYLLO1Ddm7WQDpvx0Ris T+J7oFtCJWls57ZK9x1yGhaQ3syyJl8iZ0g0J7R3/rkg9xwZU0f9GccLYrIGXAInpoB4 4IVGFoFExL4UU7Nu+kd4jhAVD99Pt96HU4BtjxLoKgasODSH08hZyS4cMADm7Gv1tp6u h5Evabqj4UQT4cL9mKN3Hf3FXQG0Rr7zTdIJjZ95/hpw7rwYjArxuu/c6MXhJk7Bj9ZY PBOw== X-Gm-Message-State: ALoCoQkCY0XPy4VjnuGkm+gbNvb1zE0n+UHF9B3YNwEiJo5IwBEuQDoZ8M1qlfHXb3V2BU0t/8Nu X-Received: by 10.112.182.8 with SMTP id ea8mr1176lbc.11.1410964071551; Wed, 17 Sep 2014 07:27:51 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.45.66 with SMTP id k2ls119973lam.30.gmail; Wed, 17 Sep 2014 07:27:51 -0700 (PDT) X-Received: by 10.152.1.6 with SMTP id 6mr44856939lai.22.1410964071448; Wed, 17 Sep 2014 07:27:51 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com [209.85.215.51]) by mx.google.com with ESMTPS id tm3si28807963lbb.88.2014.09.17.07.27.48 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 17 Sep 2014 07:27:48 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by mail-la0-f51.google.com with SMTP id gi9so1918384lab.24 for ; Wed, 17 Sep 2014 07:27:48 -0700 (PDT) X-Received: by 10.152.179.226 with SMTP id dj2mr45092424lac.40.1410964068129; Wed, 17 Sep 2014 07:27:48 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp586775lbb; Wed, 17 Sep 2014 07:27:47 -0700 (PDT) X-Received: by 10.67.23.164 with SMTP id ib4mr60544897pad.31.1410964065032; Wed, 17 Sep 2014 07:27:45 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id kp4si35052953pdb.195.2014.09.17.07.27.44 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Sep 2014 07:27:45 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUGBg-000569-Pf; Wed, 17 Sep 2014 14:26:28 +0000 Received: from [210.61.82.184] (helo=mailgw02.mediatek.com) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XUGAw-0004hN-FV for linux-arm-kernel@lists.infradead.org; Wed, 17 Sep 2014 14:25:43 +0000 X-Listener-Flag: 11101 Received: from mtkhts09.mediatek.inc [(172.21.101.70)] by mailgw02.mediatek.com (envelope-from ) (mhqrelay.mediatek.com ESMTP with TLS) with ESMTP id 2088632339; Wed, 17 Sep 2014 22:25:22 +0800 Received: from mtksdtcf02.mediatek.inc (10.21.12.142) by mtkhts09.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 14.3.181.6; Wed, 17 Sep 2014 22:25:08 +0800 From: Joe.C To: Rob Herring , Matthias Brugger , Subject: [PATCH v2 7/7] arm: mediatek: Add earlyprintk support for mt8127 & mt8135 Date: Wed, 17 Sep 2014 22:24:14 +0800 Message-ID: <1410963854-17154-8-git-send-email-srv_yingjoe.chen@mediatek.com> X-Mailer: git-send-email 1.8.1.1.dirty In-Reply-To: <1410963854-17154-1-git-send-email-srv_yingjoe.chen@mediatek.com> References: <1410963854-17154-1-git-send-email-srv_yingjoe.chen@mediatek.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140917_072542_734907_1B730C53 X-CRM114-Status: UNSURE ( 7.04 ) X-CRM114-Notice: Please train this message. X-Spam-Score: 1.3 (+) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (1.3 points) pts rule name description ---- ---------------------- -------------------------------------------------- 1.3 RDNS_NONE Delivered to internal network by a host with no rDNS 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines Cc: Mark Rutland , Anders Berg , Russell King , srv_heupstream@mediatek.com, yingjoe.chen@gmail.com, Ian Campbell , hc.yen@mediatek.com, Linus Walleij , yh.chen@mediatek.com, linux-kernel@vger.kernel.org, Arnd Bergmann , devicetree@vger.kernel.org, Pawel Moll , nathan.chung@mediatek.com, Kumar Gala , yingjoe.chen@mediatek.com, eddie.huang@mediatek.com, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: patch@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 From: "Joe.C" Enable low-level debug for Mediatek mt8127 & mt8135 SoC. Signed-off-by: Joe.C --- arch/arm/Kconfig.debug | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/arch/arm/Kconfig.debug b/arch/arm/Kconfig.debug index cfdd1c0..3888d17 100644 --- a/arch/arm/Kconfig.debug +++ b/arch/arm/Kconfig.debug @@ -842,6 +842,22 @@ choice Say Y here if you want kernel low-level debugging support for Mediatek mt6589 based platforms on UART0. + config DEBUG_MT8127_UART0 + bool "Mediatek mt8127 UART0" + depends on ARCH_MEDIATEK + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + for Mediatek mt8127 based platforms on UART0. + + config DEBUG_MT8135_UART3 + bool "Mediatek mt8135 UART3" + depends on ARCH_MEDIATEK + select DEBUG_UART_8250 + help + Say Y here if you want kernel low-level debugging support + for Mediatek mt8135 based platforms on UART3. + config DEBUG_VEXPRESS_UART0_DETECT bool "Autodetect UART0 on Versatile Express Cortex-A core tiles" depends on ARCH_VEXPRESS && CPU_CP15_MMU @@ -1084,6 +1100,8 @@ config DEBUG_UART_PHYS default 0x101f1000 if ARCH_VERSATILE default 0x101fb000 if DEBUG_NOMADIK_UART default 0x11006000 if DEBUG_MT6589_UART0 + default 0x11002000 if DEBUG_MT8127_UART0 + default 0x11009000 if DEBUG_MT8135_UART3 default 0x16000000 if ARCH_INTEGRATOR default 0x18000300 if DEBUG_BCM_5301X default 0x1c090000 if DEBUG_VEXPRESS_UART0_RS1 @@ -1147,6 +1165,8 @@ config DEBUG_UART_VIRT default 0xf0201000 if DEBUG_BCM2835 default 0xf1000300 if DEBUG_BCM_5301X default 0xf1006000 if DEBUG_MT6589_UART0 + default 0xf1002000 if DEBUG_MT8127_UART0 + default 0xf1009000 if DEBUG_MT8135_UART3 default 0xf11f1000 if ARCH_VERSATILE default 0xf1600000 if ARCH_INTEGRATOR default 0xf1c28000 if DEBUG_SUNXI_UART0