From patchwork Fri Aug 1 09:21:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 4661931 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 10988C0338 for ; Fri, 1 Aug 2014 09:24:33 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4EB722010E for ; Fri, 1 Aug 2014 09:24:32 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3F6CB20219 for ; Fri, 1 Aug 2014 09:24:31 +0000 (UTC) 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 1XD930-0008Fg-3X; Fri, 01 Aug 2014 09:22:46 +0000 Received: from mail-pa0-f45.google.com ([209.85.220.45]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XD92t-0007z6-PS for linux-arm-kernel@lists.infradead.org; Fri, 01 Aug 2014 09:22:40 +0000 Received: by mail-pa0-f45.google.com with SMTP id eu11so5472759pac.32 for ; Fri, 01 Aug 2014 02:22:18 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LLpUnvk2upB3LrVvNgVtCmIwIxukqW/JS9P62XcdxeE=; b=JTfRsqxjjPziOAlbS40aChco3RU6FLM5P/A5zY5aDZntZ9jLntc+HoJdJyISfoxKKg fJwrzFqP96hgIcUVFHxQyUl6FOh/UMvVPysvf73VPYYFjOaMDAIm2ybdrVdUIzB5US/3 1mmSnj4KycpBsx/lHeI4W544Q6wegs3nwVm+KCGLPNBDYjey50nvfHYCP5c3e7svKSIZ bPGmegAYW7Qz/CyhZB6V3i1z0A8n8vm4JI8rqIfeEWppwJRkb9vXhm5OezSGQaz4T5UK WuWBt4huXk02Ofl1hrtmYeXfe8Y1gC8V1bU21S50Grkjway6UIHB/5ebQq7RFrflfhRT frOA== X-Gm-Message-State: ALoCoQndnDALXUM6nNNZc0OjJNnO7hY7gye8uBbkdGXV65jUCPMBlYkV7o/yiS7VDz0q40NTMgki X-Received: by 10.68.111.36 with SMTP id if4mr4372505pbb.86.1406884938838; Fri, 01 Aug 2014 02:22:18 -0700 (PDT) Received: from localhost.localdomain ([114.97.106.113]) by mx.google.com with ESMTPSA id hu11sm12154305pdb.53.2014.08.01.02.22.09 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 01 Aug 2014 02:22:18 -0700 (PDT) From: Zhangfei Gao To: Mike Turquette , haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Subject: [PATCH v3 4/5] clk: hix5hd2: add ir clocks Date: Fri, 1 Aug 2014 17:21:13 +0800 Message-Id: <1406884874-30406-5-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1406884874-30406-1-git-send-email-zhangfei.gao@linaro.org> References: <1406884874-30406-1-git-send-email-zhangfei.gao@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140801_022239_873363_33F4D229 X-CRM114-Status: UNSURE ( 9.61 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) Cc: Guoxiong Yan , 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: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Guoxiong Yan hix5hd2 add ir clocks Signed-off-by: Guoxiong Yan --- drivers/clk/hisilicon/clk-hix5hd2.c | 5 +++++ include/dt-bindings/clock/hix5hd2-clock.h | 2 ++ 2 files changed, 7 insertions(+) diff --git a/drivers/clk/hisilicon/clk-hix5hd2.c b/drivers/clk/hisilicon/clk-hix5hd2.c index d6a2189..21f32d9 100644 --- a/drivers/clk/hisilicon/clk-hix5hd2.c +++ b/drivers/clk/hisilicon/clk-hix5hd2.c @@ -100,6 +100,11 @@ static struct hisi_gate_clock hix5hd2_gate_clks[] __initdata = { CLK_SET_RATE_PARENT, 0x178, 0, 0, }, { HIX5HD2_WDG0_RST, "rst_wdg0", "clk_wdg0", CLK_SET_RATE_PARENT, 0x178, 4, CLK_GATE_SET_TO_DISABLE, }, + /* ir */ + { HIX5HD2_IR_CLK, "clk_ir", "24m", + CLK_SET_RATE_PARENT, 0x48, 4, 0, }, + { HIX5HD2_IR_RST, "rst_ir", "clk_ir", + CLK_SET_RATE_PARENT, 0x48, 5, CLK_GATE_SET_TO_DISABLE, }, }; enum hix5hd2_clk_type { diff --git a/include/dt-bindings/clock/hix5hd2-clock.h b/include/dt-bindings/clock/hix5hd2-clock.h index b8e3c9d..6aa4fec 100644 --- a/include/dt-bindings/clock/hix5hd2-clock.h +++ b/include/dt-bindings/clock/hix5hd2-clock.h @@ -62,6 +62,8 @@ #define HIX5HD2_SD_CIU_RST 138 #define HIX5HD2_WDG0_CLK 139 #define HIX5HD2_WDG0_RST 140 +#define HIX5HD2_IR_CLK 141 +#define HIX5HD2_IR_RST 142 /* complex */ #define HIX5HD2_MAC0_CLK 192