From patchwork Sat Mar 25 18:23:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leo Yan X-Patchwork-Id: 9644753 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 617A2601D7 for ; Sat, 25 Mar 2017 18:26:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 5103326220 for ; Sat, 25 Mar 2017 18:26:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4521727FAE; Sat, 25 Mar 2017 18:26:17 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B204026220 for ; Sat, 25 Mar 2017 18:26:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=gHblB5LEdnxwCWmNG/IBPOa/e7EP/lJXogvgRLP9Gqs=; b=OTM66Pyvn/9cJwtYsaif2YXgmz GXvx0GHVP+j5i75jWnDzSOLVIsBTz6B42c8wYLabSuMpRS1B+zBddXqHnGjehw66avNC66CAlQ5VM SrnwEKtZFEaadgqoX0oypji+4ga6LtpypSZHSQD4J/yY55WF1e9bHHPakTslxxrOPFp+fLFVTQmCn CrvlkamVnqOPvPewa4VeRalP8TyP9BVNKgzcH1z0zN/ckpDag3nhwDdQ17BEsXh1cb9n6LctR6i60 U71jZ2QPrjAa68ZpngvrtHCHS/UCmBwbPDUXcn/mOfvOuaxmDMPU7msc34x9PPIE54Mxmqbw5OE4r nIr2h9gQ==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1crqOF-0008GQ-N3; Sat, 25 Mar 2017 18:26:15 +0000 Received: from mail-wr0-x236.google.com ([2a00:1450:400c:c0c::236]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1crqN7-0005sp-Q4 for linux-arm-kernel@lists.infradead.org; Sat, 25 Mar 2017 18:25:08 +0000 Received: by mail-wr0-x236.google.com with SMTP id u1so11128582wra.2 for ; Sat, 25 Mar 2017 11:24:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=nglOBlz7W4/TmQLwDdWEou+rI7p/vSj3Pq/bxWPR4LM=; b=U2jhlq35cTj37o0Kq+dwU1qEfQO6Gf49kVsKq+VQ7FFfcM6RJ0flCxcoC4mCsGKFwX k2p/x07Gbh4oenx95PA7eqzW8FfbQwVdKDiczNjb8iFYUEYp/+T5FoKeTKlAR7JbUBh6 SrAw1AqCMbyB0JoVKP0LuzgWcKJ4pXTDFvK8I= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=nglOBlz7W4/TmQLwDdWEou+rI7p/vSj3Pq/bxWPR4LM=; b=oojQIDzLiyexwsGI/fCMt5azIfKJrFZJTrPowiJPWvLeKIIx9zCqdQi4Fi2WnOO0dC p8OWF5xjhNpjVdWWAtyWHnECFDpkZZTIyNpd/1gL2mXL4vhShTUJduEnYO5d6DaLjn6H 8gJwMMxZcSEbPsMUBQJ7aG0rZGsbQCpXm/XoD4jM8XlgwlBxYNcQ/Vfl0duD/xSsJAqh dwmHvJY61ScQGqBwZdsyXNLJjjHunUs2HL94qlZhS9NxYe2vS0GJASGvf2fuPtGg5aGN j/vq1XDWdKyRVxScUL/9xjebhTUg/PTlHPFam5bjn7W9mTpYR/dGSfYIl7shTEAEXpHm 6X0w== X-Gm-Message-State: AFeK/H0WkGCkClN+I2tNTglqrvByuEq+pzhtGhkds8YRG0QiOO3KeOkPqI0Qr7Fw59TM7l49 X-Received: by 10.223.171.23 with SMTP id q23mr12987656wrc.163.1490466284313; Sat, 25 Mar 2017 11:24:44 -0700 (PDT) Received: from localhost.localdomain (li1529-187.members.linode.com. [139.162.244.187]) by smtp.gmail.com with ESMTPSA id e72sm7464075wma.5.2017.03.25.11.24.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 25 Mar 2017 11:24:43 -0700 (PDT) From: Leo Yan To: Jonathan Corbet , Rob Herring , Mark Rutland , Wei Xu , Catalin Marinas , Will Deacon , Andy Gross , David Brown , Michael Turquette , Stephen Boyd , Mathieu Poirier , Guodong Xu , John Stultz , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arm-msm@vger.kernel.org, linux-soc@vger.kernel.org, linux-clk@vger.kernel.org, mike.leach@linaro.org, Suzuki.Poulose@arm.com, sudeep.holla@arm.com Subject: [PATCH v5 7/9] clk: hi6220: add debug APB clock Date: Sun, 26 Mar 2017 02:23:15 +0800 Message-Id: <1490466197-29163-8-git-send-email-leo.yan@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> References: <1490466197-29163-1-git-send-email-leo.yan@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170325_112506_051056_D6B44161 X-CRM114-Status: GOOD ( 11.57 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Leo Yan MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The debug APB clock is absent in hi6220 driver, so this patch is to add support for it. Signed-off-by: Leo Yan --- drivers/clk/hisilicon/clk-hi6220.c | 1 + include/dt-bindings/clock/hi6220-clock.h | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/clk/hisilicon/clk-hi6220.c b/drivers/clk/hisilicon/clk-hi6220.c index c0e8e1f..2ae151c 100644 --- a/drivers/clk/hisilicon/clk-hi6220.c +++ b/drivers/clk/hisilicon/clk-hi6220.c @@ -134,6 +134,7 @@ static struct hisi_gate_clock hi6220_separated_gate_clks_sys[] __initdata = { { HI6220_UART4_PCLK, "uart4_pclk", "uart4_src", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 8, 0, }, { HI6220_SPI_CLK, "spi_clk", "clk_150m", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 9, 0, }, { HI6220_TSENSOR_CLK, "tsensor_clk", "clk_bus", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x230, 12, 0, }, + { HI6220_DAPB_CLK, "dapb_clk", "cs_dapb", CLK_SET_RATE_PARENT|CLK_IS_CRITICAL, 0x230, 18, 0, }, { HI6220_MMU_CLK, "mmu_clk", "ddrc_axi1", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x240, 11, 0, }, { HI6220_HIFI_SEL, "hifi_sel", "hifi_src", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 0, 0, }, { HI6220_MMC0_SYSPLL, "mmc0_syspll", "syspll", CLK_SET_RATE_PARENT|CLK_IGNORE_UNUSED, 0x270, 1, 0, }, diff --git a/include/dt-bindings/clock/hi6220-clock.h b/include/dt-bindings/clock/hi6220-clock.h index 6b03c84..b8ba665 100644 --- a/include/dt-bindings/clock/hi6220-clock.h +++ b/include/dt-bindings/clock/hi6220-clock.h @@ -124,7 +124,10 @@ #define HI6220_CS_DAPB 57 #define HI6220_CS_ATB_DIV 58 -#define HI6220_SYS_NR_CLKS 59 +/* gate clock */ +#define HI6220_DAPB_CLK 59 + +#define HI6220_SYS_NR_CLKS 60 /* clk in Hi6220 media controller */ /* gate clocks */