Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1227881rwo; Wed, 2 Aug 2023 10:31:14 -0700 (PDT) X-Google-Smtp-Source: APBJJlFjC4o3TRHSoce6wxxEfsTWcLV9DUv7wxHre9RfGDYg8DPjljMPTbZmBit1U7aZQwZDXxfy X-Received: by 2002:a05:6a00:23c2:b0:687:42be:a246 with SMTP id g2-20020a056a0023c200b0068742bea246mr11312786pfc.9.1690997474121; Wed, 02 Aug 2023 10:31:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690997474; cv=none; d=google.com; s=arc-20160816; b=He1LCV6xKqZl3I2EBuzDRPN2iGPkTfqHGGiqmqIXvi8ekW64R1M1CZ4LMY8iZ5DdyN u4HB8ZjXUgwnS382dfcOd+LeZbGdJIX63A//1Dpao460ng02aLOJGnl0vct8G3pvpVZ3 Bo5vvL/ORGaz/2yJtwa2URrgVzGtRRq5QWC9CcFppL5x7XL5+/jmHfSPrcvd6XbSfmmI OhxpgWDe4nn6w5VvVJ6oUsJQ0p06WHECf2vtynbzA67vQDB3XJIZ5DpONaKzrbsgQJzD CvAxCrQVYnzDw21EZyrChcb30BEnqsdYS0paeAuU5mDPgYjwl7rWYxUNKvZ/wPxfKXrS HZsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=nOGu5JCgYkgWlyml1CgyuJqCm/ZYcGx6PkCo1TuN5pQ=; fh=vIFj7pamUD2lbpyzZNbAg3UrwhMpl/hglW0lQprQi5c=; b=dxE+IOJ8UIqrsCxJ7MmRAGcJVFVF0NLZpspudGz+ugmojdRUGiDYwj4zPFI6ewKN1M BwhbyfTLi7ZKExwffczzPaZAM2yfuQX56zNkvXgLmI9g+qvvOmJtO9lsFCwNYB0TlGu0 /v9ghD/DQIfU0D7Y9iDsFiSfB23UxNxHp8HKU97t0/ybqlro8+ig22Sk+RyNzziPgV5n lboy9WEX8St3deD8pIG2XXwxyX8wlpewpcrazHLTyDdEJfZ5dA9hOLoX+m8deyiUYYQo +pslSm6oYY5cmg9J1mr1HJ1LinUeSXEyteHS0DcVp6bb08Z8kTy10IrhQB+n8cZABVhu SBTA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v1nobMLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g9-20020a056a000b8900b00686ed0dc69esi9657662pfj.327.2023.08.02.10.30.43; Wed, 02 Aug 2023 10:31:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=v1nobMLM; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234046AbjHBPeS (ORCPT + 99 others); Wed, 2 Aug 2023 11:34:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233944AbjHBPd5 (ORCPT ); Wed, 2 Aug 2023 11:33:57 -0400 Received: from lelv0143.ext.ti.com (lelv0143.ext.ti.com [198.47.23.248]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 006C0103; Wed, 2 Aug 2023 08:33:54 -0700 (PDT) Received: from lelv0266.itg.ti.com ([10.180.67.225]) by lelv0143.ext.ti.com (8.15.2/8.15.2) with ESMTP id 372FXfrB105673; Wed, 2 Aug 2023 10:33:41 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1690990421; bh=nOGu5JCgYkgWlyml1CgyuJqCm/ZYcGx6PkCo1TuN5pQ=; h=From:To:CC:Subject:Date:In-Reply-To:References; b=v1nobMLMtFwBgZ+bn8YuXFhVAwiMyqR3E3COcgFtvFg+yCfCgwp+kY69HvzjOFPPP +isQ52ZZlhb0MsYfELcmhJCM6x7M+BjBfhm6x4ZXdJChJem+LJUoO6DhyvHhaWA7Ir FSFaPU70z4kbfCzGLP4NhsL0bome+eQCMC2t+MXQ= Received: from DLEE108.ent.ti.com (dlee108.ent.ti.com [157.170.170.38]) by lelv0266.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 372FXf69034554 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Wed, 2 Aug 2023 10:33:41 -0500 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE108.ent.ti.com (157.170.170.38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23; Wed, 2 Aug 2023 10:33:40 -0500 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2507.23 via Frontend Transport; Wed, 2 Aug 2023 10:33:41 -0500 Received: from lelv0327.itg.ti.com (ileaxei01-snat2.itg.ti.com [10.180.69.6]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 372FXYq6072743; Wed, 2 Aug 2023 10:33:40 -0500 From: Andrew Davis To: Lee Jones , Rob Herring , Krzysztof Kozlowski , Arnd Bergmann , Linus Walleij , Geert Uytterhoeven , Daniel Tang , Fabian Vogt CC: , , , Andrew Davis Subject: [PATCH v8 8/9] ARM: nspire: Use syscon-reboot to handle restart Date: Wed, 2 Aug 2023 10:33:32 -0500 Message-ID: <20230802153333.55546-9-afd@ti.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230802153333.55546-1-afd@ti.com> References: <20230802153333.55546-1-afd@ti.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Writing this bit can be handled by the DT syscon-reboot driver. Enable that driver and remove the machine_desc version. Signed-off-by: Andrew Davis Reviewed-by: Linus Walleij Tested-by: Fabian Vogt Reviewed-by: Fabian Vogt --- arch/arm/mach-nspire/Kconfig | 2 ++ arch/arm/mach-nspire/mmio.h | 3 --- arch/arm/mach-nspire/nspire.c | 10 ---------- 3 files changed, 2 insertions(+), 13 deletions(-) diff --git a/arch/arm/mach-nspire/Kconfig b/arch/arm/mach-nspire/Kconfig index b7a3871876d75..0ffdcaca1e6b4 100644 --- a/arch/arm/mach-nspire/Kconfig +++ b/arch/arm/mach-nspire/Kconfig @@ -9,5 +9,7 @@ config ARCH_NSPIRE select ARM_VIC select ARM_TIMER_SP804 select NSPIRE_TIMER + select POWER_RESET + select POWER_RESET_SYSCON help This enables support for systems using the TI-NSPIRE CPU diff --git a/arch/arm/mach-nspire/mmio.h b/arch/arm/mach-nspire/mmio.h index 48e32f13f3119..2ce0656139ece 100644 --- a/arch/arm/mach-nspire/mmio.h +++ b/arch/arm/mach-nspire/mmio.h @@ -5,9 +5,6 @@ * Copyright (C) 2013 Daniel Tang */ -#define NSPIRE_MISC_PHYS_BASE 0x900A0000 -#define NSPIRE_MISC_HWRESET 0x08 - #define NSPIRE_PWR_PHYS_BASE 0x900B0000 #define NSPIRE_PWR_VIRT_BASE 0xFEEB0000 #define NSPIRE_PWR_BUS_DISABLE1 0x18 diff --git a/arch/arm/mach-nspire/nspire.c b/arch/arm/mach-nspire/nspire.c index 2d4abb0288b9d..1e13337972dd5 100644 --- a/arch/arm/mach-nspire/nspire.c +++ b/arch/arm/mach-nspire/nspire.c @@ -27,16 +27,6 @@ static const char *const nspire_dt_match[] __initconst = { NULL, }; -static void nspire_restart(enum reboot_mode mode, const char *cmd) -{ - void __iomem *base = ioremap(NSPIRE_MISC_PHYS_BASE, SZ_4K); - if (!base) - return; - - writel(2, base + NSPIRE_MISC_HWRESET); -} - DT_MACHINE_START(NSPIRE, "TI-NSPIRE") .dt_compat = nspire_dt_match, - .restart = nspire_restart, MACHINE_END -- 2.39.2