From patchwork Wed Aug 27 09:47:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Naveen Krishna Chatradhi X-Patchwork-Id: 4787081 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 084339F2A9 for ; Wed, 27 Aug 2014 09:55:58 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3E09F200F4 for ; Wed, 27 Aug 2014 09:55:57 +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 55EB520123 for ; Wed, 27 Aug 2014 09:55:56 +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 1XMZtT-0000cq-UY; Wed, 27 Aug 2014 09:51:55 +0000 Received: from mailout1.samsung.com ([203.254.224.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMZtR-0000PY-Ku for linux-arm-kernel@lists.infradead.org; Wed, 27 Aug 2014 09:51:54 +0000 Received: from epcpsbgr3.samsung.com (u143.gpu120.samsung.co.kr [203.254.230.143]) by mailout1.samsung.com (Oracle Communications Messaging Server 7u4-24.01 (7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTP id <0NAY00FVOM1W7O40@mailout1.samsung.com> for linux-arm-kernel@lists.infradead.org; Wed, 27 Aug 2014 18:51:32 +0900 (KST) Received: from epcpsbgm2.samsung.com ( [172.20.52.126]) by epcpsbgr3.samsung.com (EPCPMTA) with SMTP id 78.CE.04467.22AADF35; Wed, 27 Aug 2014 18:51:30 +0900 (KST) X-AuditID: cbfee68f-f797f6d000001173-3a-53fdaa220454 Received: from epmmp1.local.host ( [203.254.227.16]) by epcpsbgm2.samsung.com (EPCPMTA) with SMTP id BA.B4.05196.22AADF35; Wed, 27 Aug 2014 18:51:30 +0900 (KST) Received: from chnaveen-ubuntu.sisodomain.com ([107.108.83.161]) by mmp1.samsung.com (Oracle Communications Messaging Server 7u4-24.01(7.0.4.24.0) 64bit (built Nov 17 2011)) with ESMTPA id <0NAY000DNM1M2F30@mmp1.samsung.com>; Wed, 27 Aug 2014 18:51:30 +0900 (KST) From: Naveen Krishna Chatradhi To: linux-watchdog@vger.kernel.org Subject: [PATCH 09/14] watchdog: s3c2410_wdt: Add support for Watchdog device on Exynos7 Date: Wed, 27 Aug 2014 15:17:11 +0530 Message-id: <1409132831-2032-1-git-send-email-ch.naveen@samsung.com> X-Mailer: git-send-email 1.7.9.5 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrNLMWRmVeSWpSXmKPExsWyRsSkTldp1d9gg23nNC1eHtK02PT4GqvF jPP7mCxurNvHbrFo239mi1szXrA6sHnsnHWX3ePaZjGPzUvqPfq2rGL0+LxJLoA1issmJTUn syy1SN8ugSvj0SOhgg8CFWsnrmBuYJzN18XIySEhYCLRs2gZE4QtJnHh3nq2LkYuDiGBpYwS L6fOZIQpWvj6CiNEYhGjRNvmxewQTj+TxO4JT9hBqtgEzCQOLloNZosIKElsPLQGrIhZYD6j RM+TjWwgCWGBKIlN606B2SwCqhKbX/WB7eYVcJFY2b8AaAUH0DoFiTmTbEB6JQS+s0lsnnWM FaJeQOLb5EMsEDWyEpsOMENcJylxcMUNlgmMggsYGVYxiqYWJBcUJ6UXGesVJ+YWl+al6yXn 525iBIbp6X/P+ncw3j1gfYhRgINRiYf3w4I/wUKsiWXFlbmHGE2BNkxklhJNzgdGQ15JvKGx mZGFqYmpsZG5pZmSOO9CqZ/BQgLpiSWp2ampBalF8UWlOanFhxiZODilGhg92pL/3L1590TM zLpkB2H250czN+x92mPm5R6ucKLcceHcBXqXHzwxarpbMNMvccm+BfPYrS+vZy/J87zS71o3 rYZp/fSMjo3bd14+Pu351sls8w5vZ6ubpc+9+Fwyh2xWCF/likWHXl0y+vVm1Ux3Jz71yS0z f91aH7nz4qqVu8Tf7f1xLju5TomlOCPRUIu5qDgRAC0FLYZOAgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmplkeLIzCtJLcpLzFFi42I5/e+xgK7Sqr/BBj07FCxeHtK02PT4GqvF jPP7mCxurNvHbrFo239mi1szXrA6sHnsnHWX3ePaZjGPzUvqPfq2rGL0+LxJLoA1qoHRJiM1 MSW1SCE1Lzk/JTMv3VbJOzjeOd7UzMBQ19DSwlxJIS8xN9VWycUnQNctMwdov5JCWWJOKVAo ILG4WEnfDtOE0BA3XQuYxghd35AguB4jAzSQsIYx49EjoYIPAhVrJ65gbmCczdfFyMkhIWAi sfD1FUYIW0ziwr31bF2MXBxCAosYJdo2L2aHcPqZJHZPeMIOUsUmYCZxcNFqMFtEQEli46E1 YEXMAvMZJXqebGQDSQgLRElsWncKzGYRUJXY/KqPCcTmFXCRWNm/AGgdB9A6BYk5k2wmMHIv YGRYxSiaWpBcUJyUnmukV5yYW1yal66XnJ+7iREcBc+kdzCuarA4xCjAwajEw/thwZ9gIdbE suLK3EOMEhzMSiK87LP+BgvxpiRWVqUW5ccXleakFh9iNAVaPpFZSjQ5HxiheSXxhsYm5qbG ppYmFiZmlkrivAdbrQOFBNITS1KzU1MLUotg+pg4OKUaGNlmaE2XPHNo25KzTHoXPh6RUc++ r/BKYIOki+aTVbW9+6ffnXK/74/MGrajnyun7mtY3zU7fUd4n1l00u77zbVfaqdUaq2MiVsv GpO2XV3Sb3LbeVaBre+DG/ud1XZxv3mvduEFv8fuAzLc4oFa3126cx5l32sRX73NsOjgJJ68 01dUt/TGzFNiKc5INNRiLipOBACPjcGJmAIAAA== DLP-Filter: Pass X-MTR: 20000000000000000@CPGS X-CFilter-Loop: Reflected X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140827_025153_820237_C2BEC303 X-CRM114-Status: GOOD ( 10.10 ) X-Spam-Score: -5.0 (-----) Cc: naveenkrishna.ch@gmail.com, Wim Van Sebroeck , linux-samsung-soc@vger.kernel.org, cpgs@samsung.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: , 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=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, 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 Exynos7 SoC has a Watchdog for Atlas (A57) cores This patch adds support for the Atlas watchdog. Signed-off-by: Naveen Krishna Chatradhi Cc: Wim Van Sebroeck Reviewed-by: Guenter Roeck --- .../devicetree/bindings/watchdog/samsung-wdt.txt | 1 + drivers/watchdog/s3c2410_wdt.c | 11 +++++++++++ 2 files changed, 12 insertions(+) diff --git a/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt b/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt index cfff375..8f3d96a 100644 --- a/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt +++ b/Documentation/devicetree/bindings/watchdog/samsung-wdt.txt @@ -9,6 +9,7 @@ Required properties: (a) "samsung,s3c2410-wdt" for Exynos4 and previous SoCs (b) "samsung,exynos5250-wdt" for Exynos5250 (c) "samsung,exynos5420-wdt" for Exynos5420 + (c) "samsung,exynos7-wdt" for Exynos7 - reg : base physical address of the controller and length of memory mapped region. diff --git a/drivers/watchdog/s3c2410_wdt.c b/drivers/watchdog/s3c2410_wdt.c index 7c6ccd0..015256e 100644 --- a/drivers/watchdog/s3c2410_wdt.c +++ b/drivers/watchdog/s3c2410_wdt.c @@ -155,6 +155,15 @@ static const struct s3c2410_wdt_variant drv_data_exynos5420 = { .quirks = QUIRK_HAS_PMU_CONFIG | QUIRK_HAS_RST_STAT, }; +static const struct s3c2410_wdt_variant drv_data_exynos7 = { + .disable_reg = EXYNOS5_WDT_DISABLE_REG_OFFSET, + .mask_reset_reg = EXYNOS5_WDT_MASK_RESET_REG_OFFSET, + .mask_bit = 0, + .rst_stat_reg = EXYNOS5_RST_STAT_REG_OFFSET, + .rst_stat_bit = 23, /* A57 WDTRESET */ + .quirks = QUIRK_HAS_PMU_CONFIG | QUIRK_HAS_RST_STAT, +}; + static const struct of_device_id s3c2410_wdt_match[] = { { .compatible = "samsung,s3c2410-wdt", .data = &drv_data_s3c2410 }, @@ -162,6 +171,8 @@ static const struct of_device_id s3c2410_wdt_match[] = { .data = &drv_data_exynos5250 }, { .compatible = "samsung,exynos5420-wdt", .data = &drv_data_exynos5420 }, + { .compatible = "samsung,exynos7-wdt", + .data = &drv_data_exynos7 }, {}, }; MODULE_DEVICE_TABLE(of, s3c2410_wdt_match);