Received: by 10.192.165.148 with SMTP id m20csp1508314imm; Thu, 10 May 2018 11:49:19 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoHnl/m3bBqtdlQiJhKkZ5Lp3Yel82vT6Le7hiYtfg+d+9iKOZCkT7f/DWvzlhRInuXHTCY X-Received: by 2002:a65:6151:: with SMTP id o17-v6mr2019131pgv.120.1525978159355; Thu, 10 May 2018 11:49:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525978159; cv=none; d=google.com; s=arc-20160816; b=Rr4lhApvuWiSAD26h71RqaXxlZV9eBXjB0wjTY/em1F9AS+iGbTs0HSu/2YYdTW+fx CyeD5OqJymXFIQMEZAW9kiSnt9ppZatkJq7W3dgwjM8/JMCR7cS9/8lepvCaW1UoY182 tjZjoeO75/cFHTYG+x8gWqVXJivkKMHF0aFOdtVkXwkZrqi66z3+bleT3TsYA3DvPfBt gd/1QiC1jnpqpkV/raTF0BIrXIdfAHJIB7EO6B/QCDix2XhGUkYbi2ehTInKmY4YND2B pVuwZTXHFo0AiS7lN1DfRtvecFfnzxOk+W6eWvq8Nj/Lrj6M5x+4vwM4Cp4WTihco2R7 3ehQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=K4SH/91bCWbSUqMei4q5WWvwS0k4RfsaHm/mzELO95Q=; b=trbsmrzi5SVdYq2k3wTbOjltgY11f/yVrL5a0FR8eAmUoB8oRHg6yfPSx7Iepx27xl ID2G2hf5zDa6hWBTsLZjv5FMnxl5J+TIOHLhGuEPUwppb3Qey7e7b+UTJ7HcmstXN2Iu X3kH0b2NwnkfMqaEvwCFTCeOxXDf8eVyhoLMmK7KOCDTWaTVPZPED9v9kiPA7DOzftHQ F9AcIlEPT7DQn80yvG3vGb4svAqcpIZa/EcDM9iE7p1kUXYscLpXFBDpXeXaDUw6OWNa jdqPFS5WEL+rhGZAdATtPIDoyICwRnF5v0lUtihT+oMFGkv3dGGXjoB55oIA4H1P+wA2 2hmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=DYx+uuFB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s204-v6si1137748pgs.164.2018.05.10.11.49.05; Thu, 10 May 2018 11:49:19 -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=@crapouillou.net header.s=mail header.b=DYx+uuFB; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbeEJSsv (ORCPT + 99 others); Thu, 10 May 2018 14:48:51 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:57242 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750972AbeEJSss (ORCPT ); Thu, 10 May 2018 14:48:48 -0400 From: Paul Cercueil To: Guenter Roeck , Rob Herring , Mark Rutland , Ralf Baechle , James Hogan Cc: Wim Van Sebroeck , Mathieu Malaterre , linux-watchdog@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@linux-mips.org, Paul Cercueil Subject: [PATCH v3 8/8] MIPS: jz4740: Drop old platform reset code Date: Thu, 10 May 2018 20:47:51 +0200 Message-Id: <20180510184751.13416-8-paul@crapouillou.net> In-Reply-To: <20180510184751.13416-1-paul@crapouillou.net> References: <20180510184751.13416-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1525978126; bh=K4SH/91bCWbSUqMei4q5WWvwS0k4RfsaHm/mzELO95Q=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=DYx+uuFBhl/qolhXKSp6RvHOeIvowKzXTlHnSILm44a4a2xxlO7Nfdocv73Obo2uMCU+OUHzxA3A4knwh76EF+NFvt1pUUInEurPDxbUPCcmBvlyzESFtT+6EHcOcSL9dMhFHZR0LqP+CUPLJM6l17vPq8mLF5QwD/YhAi2kWfg= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This work is now performed by the watchdog driver directly. Signed-off-by: Paul Cercueil Acked-by: James Hogan --- arch/mips/jz4740/reset.c | 31 ------------------------------- 1 file changed, 31 deletions(-) v2: No change v3: No change diff --git a/arch/mips/jz4740/reset.c b/arch/mips/jz4740/reset.c index 67780c4b6573..5bf0cf44b55f 100644 --- a/arch/mips/jz4740/reset.c +++ b/arch/mips/jz4740/reset.c @@ -12,18 +12,9 @@ * */ -#include -#include -#include -#include - #include -#include -#include - #include "reset.h" -#include "clock.h" static void jz4740_halt(void) { @@ -36,29 +27,7 @@ static void jz4740_halt(void) } } -#define JZ_REG_WDT_DATA 0x00 -#define JZ_REG_WDT_COUNTER_ENABLE 0x04 -#define JZ_REG_WDT_COUNTER 0x08 -#define JZ_REG_WDT_CTRL 0x0c - -static void jz4740_restart(char *command) -{ - void __iomem *wdt_base = ioremap(JZ4740_WDT_BASE_ADDR, 0x0f); - - jz4740_timer_enable_watchdog(); - - writeb(0, wdt_base + JZ_REG_WDT_COUNTER_ENABLE); - - writew(0, wdt_base + JZ_REG_WDT_COUNTER); - writew(0, wdt_base + JZ_REG_WDT_DATA); - writew(BIT(2), wdt_base + JZ_REG_WDT_CTRL); - - writeb(1, wdt_base + JZ_REG_WDT_COUNTER_ENABLE); - jz4740_halt(); -} - void jz4740_reset_init(void) { - _machine_restart = jz4740_restart; _machine_halt = jz4740_halt; } -- 2.11.0