Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2075014ybp; Thu, 10 Oct 2019 01:44:08 -0700 (PDT) X-Google-Smtp-Source: APXvYqy8Gdc4m7C7r2bW90vfj80YexkoR0R+81uPKHgB5360KgFQMoCn/P9vbFVAi/Gimaf3bTNV X-Received: by 2002:a50:b966:: with SMTP id m93mr6962044ede.228.1570697048721; Thu, 10 Oct 2019 01:44:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570697048; cv=none; d=google.com; s=arc-20160816; b=pcYoWTcO6kcL0LQMVBER2d4QkT0jL/xpPAbNoW9Fr+XTJA14PqSfckZqSugJ1ZnE2L C35iOVHpH7aDiMG61QmjyzIxM9yiIIdGI3ZqOoEgNOExfAWLQIJeeahIxpQvD3UJE589 RJVJ2ezk2svBZFXoDdNAsHcwAdpvoJIpBjygyvGa57tiljsw+YQbpE3bTVK8tOF8Se5q E+C0U8y8XHzawEvRzx2EhOoyJGG030IHQyR2GXlHfmjm1nZsIGiWalVLe07NjqEmoufC K4fcKhuvajkNjWfpitokVdDTnJmfQ7wszeZG+DnCGAIiuPGJ7xuGW0TsKi3KvP1s8GXC neEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Pl5x1GW8Wnc0VyXikljbt84jzIHViS/SvPJPHu9dqrw=; b=KbazlT+k2O9zQ4sE7DBNbHDnRCRAGjChzESaMRkdPXxs7ABnKFIkxTYY7ZANIHcQM6 kCod7sUL7FiGuBhkqtRpGmhBVu3/O5Xgv+X0IKiDnvMfb3Qw+wOOuUpXKVFdfU9Cotek Vj6cWM9E8EkTczVTVFTurdlYthseat/XMKmEQBd1/x81Q90AKl3JQt/mfV7ALdvXNTx5 V2D/YxsPG3qu8jb7cS4Ig3YCCgdbg4vWU6Dj0iw51DxjpFun4bvet2ms/1bQcxCGSOlD F63F1D8Rnxlpe7oeWKDI2G368uQ0JyK4eRQm02u3zhqDx2izbFSggUVf9nr9IEYHqcGH F0+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SC0OVt1S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c14si3532803eda.8.2019.10.10.01.43.45; Thu, 10 Oct 2019 01:44:08 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=SC0OVt1S; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388468AbfJJImE (ORCPT + 99 others); Thu, 10 Oct 2019 04:42:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:46578 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387736AbfJJImD (ORCPT ); Thu, 10 Oct 2019 04:42:03 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 64D6B2054F; Thu, 10 Oct 2019 08:42:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1570696922; bh=mxI74ZPxEKKZVu9DJn031+gWGvc4derrOM7DPZKYr6U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=SC0OVt1SVStAmwYPTdPMAekPkNjjzjYHKUSv6iH6ZxTiiiKXkONEzWIFvMrivefdc KiC7pA87SQaxaWgYg6fUWnKcG6TaxEMe8HtRP/AAGZKcr9UNb9W/ANMuh89quj5uKZ LMuGe2P7ah7XI220+LC5vp6IJ8t70VJeS0Q3Ps8I= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Ryan Chen , Joel Stanley , Guenter Roeck , Wim Van Sebroeck , Sasha Levin Subject: [PATCH 5.3 102/148] watchdog: aspeed: Add support for AST2600 Date: Thu, 10 Oct 2019 10:36:03 +0200 Message-Id: <20191010083617.402760750@linuxfoundation.org> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191010083609.660878383@linuxfoundation.org> References: <20191010083609.660878383@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ryan Chen [ Upstream commit b3528b4874480818e38e4da019d655413c233e6a ] The ast2600 can be supported by the same code as the ast2500. Signed-off-by: Ryan Chen Signed-off-by: Joel Stanley Reviewed-by: Guenter Roeck Link: https://lore.kernel.org/r/20190819051738.17370-3-joel@jms.id.au Signed-off-by: Guenter Roeck Signed-off-by: Wim Van Sebroeck Signed-off-by: Sasha Levin --- drivers/watchdog/aspeed_wdt.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/watchdog/aspeed_wdt.c b/drivers/watchdog/aspeed_wdt.c index cc71861e033a5..5b64bc2e87888 100644 --- a/drivers/watchdog/aspeed_wdt.c +++ b/drivers/watchdog/aspeed_wdt.c @@ -34,6 +34,7 @@ static const struct aspeed_wdt_config ast2500_config = { static const struct of_device_id aspeed_wdt_of_table[] = { { .compatible = "aspeed,ast2400-wdt", .data = &ast2400_config }, { .compatible = "aspeed,ast2500-wdt", .data = &ast2500_config }, + { .compatible = "aspeed,ast2600-wdt", .data = &ast2500_config }, { }, }; MODULE_DEVICE_TABLE(of, aspeed_wdt_of_table); @@ -259,7 +260,8 @@ static int aspeed_wdt_probe(struct platform_device *pdev) set_bit(WDOG_HW_RUNNING, &wdt->wdd.status); } - if (of_device_is_compatible(np, "aspeed,ast2500-wdt")) { + if ((of_device_is_compatible(np, "aspeed,ast2500-wdt")) || + (of_device_is_compatible(np, "aspeed,ast2600-wdt"))) { u32 reg = readl(wdt->base + WDT_RESET_WIDTH); reg &= config->ext_pulse_width_mask; -- 2.20.1