From patchwork Fri Nov 6 21:55:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Carlo Caione X-Patchwork-Id: 7573651 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id C5915C05C6 for ; Fri, 6 Nov 2015 21:57:36 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id ECB9F206FA for ; Fri, 6 Nov 2015 21:57:35 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 368FD206F9 for ; Fri, 6 Nov 2015 21:57:35 +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 1ZuozN-0006pd-TX; Fri, 06 Nov 2015 21:56:05 +0000 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zuoyy-0006Ff-8h for linux-arm-kernel@lists.infradead.org; Fri, 06 Nov 2015 21:55:41 +0000 Received: by wmnn186 with SMTP id n186so7546391wmn.0 for ; Fri, 06 Nov 2015 13:55:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=8z1PQldSPup90xWOYLfXz9H+fuGEbuJGwm7fXhiaqI0=; b=Wro5ZsdbukzzyHj0V8bioMwRhbJGULGt46GLH7orbLe83XCReIxVGbfwvdi8MXtJ5E YQF/1mGx6rK2e2Hcl+aiQ8XqOpDYaWYaJYI+S/DBmVp+IvFdnTXm9NNkGwLTL0uh+qSd MZ0+nxRPl5TqUKAFPVRq9TkPxKYVTmA+S5VpvbyUrAVF7dZS3uBgaYqUbziAueaa0AHK xnP2cN/sgAOvzqLRyLuj8uOaLplNBBHBFG279GfMdS1Q3kxUAcpTDf/TJ+0naVeuDOSM IAZ9twK6HP1P0bm0BTP3M1RV0d1YEJG4ZJAdYqbgteU37A62c08OKwYddpraTV0T+KN3 5/3g== X-Received: by 10.28.10.142 with SMTP id 136mr13274875wmk.84.1446846917447; Fri, 06 Nov 2015 13:55:17 -0800 (PST) Received: from localhost.localdomain (2-238-57-164.ip242.fastwebnet.it. [2.238.57.164]) by smtp.gmail.com with ESMTPSA id q125sm928468wmd.5.2015.11.06.13.55.16 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 06 Nov 2015 13:55:16 -0800 (PST) From: Carlo Caione To: wim@iguana.be, linux-watchdog@vger.kernel.org, linux-arm-kernel@lists.infradead.org, robh+dt@kernel.org, drake@endlessm.com, jerry.cao@amlogic.com, victor.wan@amlogic.com, romain.perier@gmail.com Subject: [PATCH 2/4] watchdog: meson: Add meson8b SoC specific data Date: Fri, 6 Nov 2015 22:55:04 +0100 Message-Id: <1446846906-31520-3-git-send-email-carlo@caione.org> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1446846906-31520-1-git-send-email-carlo@caione.org> References: <1446846906-31520-1-git-send-email-carlo@caione.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151106_135540_558346_85DBE25F X-CRM114-Status: GOOD ( 12.57 ) X-Spam-Score: -1.7 (-) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Carlo Caione 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=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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: Carlo Caione Add SoC specific data in the watchdog driver for the meson8b SoC. Signed-off-by: Carlo Caione --- drivers/watchdog/meson_wdt.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/drivers/watchdog/meson_wdt.c b/drivers/watchdog/meson_wdt.c index 89944ed..75c84f5 100644 --- a/drivers/watchdog/meson_wdt.c +++ b/drivers/watchdog/meson_wdt.c @@ -52,6 +52,12 @@ static struct meson_wdt_data meson6_wdt_data = { .count_unit = 100000, /* 10 us */ }; +static struct meson_wdt_data meson8b_wdt_data = { + .shift_enable = 19, + .terminal_count_mask = 0xffff, + .count_unit = 7812, /* 128 us */ +}; + struct meson_wdt_dev { struct watchdog_device wdt_dev; void __iomem *wdt_base; @@ -152,6 +158,7 @@ static const struct watchdog_ops meson_wdt_ops = { static const struct of_device_id meson_wdt_dt_ids[] = { { .compatible = "amlogic,meson6-wdt", .data = &meson6_wdt_data }, + { .compatible = "amlogic,meson8b-wdt", .data = &meson8b_wdt_data }, { /* sentinel */ } }; MODULE_DEVICE_TABLE(of, meson_wdt_dt_ids);