From patchwork Tue Aug 26 05:46:09 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhangfei Gao X-Patchwork-Id: 35951 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f69.google.com (mail-oa0-f69.google.com [209.85.219.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id E63EF20565 for ; Tue, 26 Aug 2014 05:47:21 +0000 (UTC) Received: by mail-oa0-f69.google.com with SMTP id i7sf86008054oag.0 for ; Mon, 25 Aug 2014 22:47:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=jsWoXcNvG3iw7jNA3QfQR5/sHd3TfjoY0jYiPJOX0lQ=; b=anLYhxS6Rg+PfHActLNwQsu/iOBqDEt8+t5sImf5x07OpsS+BXyKrfJo4BfCU5KNdD t8FrvcfUSDFkPPmZEtsmuYm3h45JRCh32+OeGL2knRgAWJSoImhxMXLkWcq/6FnCXJ1D AX61Ckm9FWWfUIQEIs8P+kYUhWiWp8NAHhqnSwg/ZuZ15newOcDBzmhuE3gj/9TkEqOz GzzXXDdq90MBwBnrr4rBqUMTyDbPwIkJuT/xDIYh55MjXRQpabhi38nXiR0H/ql5+w7L CYxihIe13yAjMBo7zTMDAU5IiiabVAA13bO1KHxkLdM7mqLHtaNUPXN/PY0WN7Pn8unU HEJQ== X-Gm-Message-State: ALoCoQklL8AW4sZ6taTKANZ1d3krWHm/sLwW83XjgwrmFeTMWQCVDtOwBUu52PH/cizfSEegeX3R X-Received: by 10.182.241.1 with SMTP id we1mr16254628obc.37.1409032041482; Mon, 25 Aug 2014 22:47:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.95.21 with SMTP id h21ls2407680qge.52.gmail; Mon, 25 Aug 2014 22:47:21 -0700 (PDT) X-Received: by 10.220.114.66 with SMTP id d2mr10201173vcq.27.1409032041353; Mon, 25 Aug 2014 22:47:21 -0700 (PDT) Received: from mail-vc0-f176.google.com (mail-vc0-f176.google.com [209.85.220.176]) by mx.google.com with ESMTPS id zs4si1036285vdb.65.2014.08.25.22.47.21 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 22:47:21 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.176 as permitted sender) client-ip=209.85.220.176; Received: by mail-vc0-f176.google.com with SMTP id id10so16235788vcb.35 for ; Mon, 25 Aug 2014 22:47:21 -0700 (PDT) X-Received: by 10.52.97.233 with SMTP id ed9mr12444976vdb.16.1409032041279; Mon, 25 Aug 2014 22:47:21 -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.221.45.67 with SMTP id uj3csp171184vcb; Mon, 25 Aug 2014 22:47:20 -0700 (PDT) X-Received: by 10.70.48.70 with SMTP id j6mr34391410pdn.82.1409032040370; Mon, 25 Aug 2014 22:47:20 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ey10si2723589pdb.108.2014.08.25.22.47.19 for ; Mon, 25 Aug 2014 22:47:20 -0700 (PDT) Received-SPF: none (google.com: devicetree-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753594AbaHZFrT (ORCPT + 6 others); Tue, 26 Aug 2014 01:47:19 -0400 Received: from mail-pa0-f43.google.com ([209.85.220.43]:56252 "EHLO mail-pa0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752554AbaHZFrS (ORCPT ); Tue, 26 Aug 2014 01:47:18 -0400 Received: by mail-pa0-f43.google.com with SMTP id lf10so22685166pab.16 for ; Mon, 25 Aug 2014 22:47:18 -0700 (PDT) X-Received: by 10.70.41.136 with SMTP id f8mr34531967pdl.46.1409032038618; Mon, 25 Aug 2014 22:47:18 -0700 (PDT) Received: from localhost.localdomain ([114.97.111.70]) by mx.google.com with ESMTPSA id hb1sm1696102pbd.28.2014.08.25.22.47.11 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Aug 2014 22:47:17 -0700 (PDT) From: Zhangfei Gao To: Mike Turquette , haojian.zhuang@linaro.org, haifeng.yan@linaro.org, jchxue@gmail.com, xuwei5@hisilicon.com Cc: linux-arm-kernel@lists.infradead.org, devicetree@vger.kernel.org, Guoxiong Yan , Zhangfei Gao Subject: [PATCH resend 3/4] clk: hix5hd2: add watchdog0 clocks Date: Tue, 26 Aug 2014 13:46:09 +0800 Message-Id: <1409031970-4821-4-git-send-email-zhangfei.gao@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1409031970-4821-1-git-send-email-zhangfei.gao@linaro.org> References: <1409031970-4821-1-git-send-email-zhangfei.gao@linaro.org> Sender: devicetree-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: devicetree@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: zhangfei.gao@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.220.176 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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Guoxiong Yan hix5hd2 add watchdog0 clocks Signed-off-by: Guoxiong Yan Signed-off-by: Zhangfei Gao --- 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 9fa2eef..232c38a 100644 --- a/drivers/clk/hisilicon/clk-hix5hd2.c +++ b/drivers/clk/hisilicon/clk-hix5hd2.c @@ -95,6 +95,11 @@ static struct hisi_gate_clock hix5hd2_gate_clks[] __initdata = { { HIX5HD2_FWD_SYS_CLK, "clk_fwd_sys", "clk_fwd_bus", 0, 0xcc, 5, 0, }, { HIX5HD2_MAC0_PHY_CLK, "clk_fephy", "clk_fwd_sys", CLK_SET_RATE_PARENT, 0x120, 0, 0, }, + /* wdg0 */ + { HIX5HD2_WDG0_CLK, "clk_wdg0", "24m", + 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, }, }; enum hix5hd2_clk_type { diff --git a/include/dt-bindings/clock/hix5hd2-clock.h b/include/dt-bindings/clock/hix5hd2-clock.h index 5bd4135..b8e3c9d 100644 --- a/include/dt-bindings/clock/hix5hd2-clock.h +++ b/include/dt-bindings/clock/hix5hd2-clock.h @@ -60,6 +60,8 @@ #define HIX5HD2_SD_CIU_CLK 136 #define HIX5HD2_SD_BIU_CLK 137 #define HIX5HD2_SD_CIU_RST 138 +#define HIX5HD2_WDG0_CLK 139 +#define HIX5HD2_WDG0_RST 140 /* complex */ #define HIX5HD2_MAC0_CLK 192