From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id C6C1AC433EF for ; Fri, 17 Dec 2021 19:48:14 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id A66F28363F; Fri, 17 Dec 2021 20:48:12 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="UU19ItJz"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 42D6A834E4; Fri, 17 Dec 2021 20:48:11 +0100 (CET) Received: from mail-io1-xd2a.google.com (mail-io1-xd2a.google.com [IPv6:2607:f8b0:4864:20::d2a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DB5068363F for ; Fri, 17 Dec 2021 20:48:07 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=aford173@gmail.com Received: by mail-io1-xd2a.google.com with SMTP id m9so4598470iop.0 for ; Fri, 17 Dec 2021 11:48:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qt0fvu1yRuUJcL8BMrfLIC1cseOEjKOQiVlQilQU41M=; b=UU19ItJzMMfdUHW3I0MJzIseACSvSX5gLjGSM8rKb9LihkDUUfYccNWtn0umLe9wQ4 XK9o1mSJ2OVBHzuzckwJTAUIEldcKmUYFcwtMmBD0fyCPFoKPO6BriQ8+yQ8u/CeyN1x lKzyZ0nUg17rdFTOnsrNUAM4Msvqs52aZgawFT2ABXNJddsmgnNl/C0PaaC9EpNftWio xqDq0+oJ5EEHB5CQw7RcoTpSn0dwLi+KxYrDPmDKB0ozIrEgXYMC2YdrDumagcSPrVqJ 5qIW+W8iPMismnSJaDSEEO5qm3phqkdYfaU15jsG2im2sF5y4X267HdvVFapOVUJcXy9 lvcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=qt0fvu1yRuUJcL8BMrfLIC1cseOEjKOQiVlQilQU41M=; b=jjBtO/epledTLX2QCpMb6KUzQESFvuRLmXf5HzHxxgbXZvgORJqkZ17NWkQ9fSO8LS tJG4j776cXM97DmdAoQPKhXzSEK2PBAkuogG+W5P70bUtaQxcjW7UT/NTgLQ2ZR7R/Eb Uuhc4dhd+fWwMNOmaoFhApN4jTgYY7ybq72xZUUpxIBDugkR6KnxBckVAT389t6iWUxN aI3G387d5xvcmSWHb9oTBujrRDeAG24Kg7cALHzVuW/FTAcUwu25lrQehkng2evS1Wt0 bpM9nKLfhI9WbKS6BFNRsANrb67Vba9SFXII+TdFBQNB0LCdfYaabHumfrMJq7tt91HP 2BdA== X-Gm-Message-State: AOAM531d6aWy4geSRNtkBN5fp/X1W9lvdKFv/v72aU5k1G8vcI/joVhQ msvcro2z9bQihFo8jeqMndU2ERBV1wbwLg== X-Google-Smtp-Source: ABdhPJwRiAGM0UwG+rxSJ87mW6tKcufXKcWnBX+xxA3/yzm9XYI9xL4dLG0TxBrguTj1lVwZFWACfA== X-Received: by 2002:a05:6638:12d3:: with SMTP id v19mr3078545jas.318.1639770485820; Fri, 17 Dec 2021 11:48:05 -0800 (PST) Received: from aford-IdeaCentre-A730.lan ([2601:448:8400:9e8:7db2:b2e5:8630:76f7]) by smtp.gmail.com with ESMTPSA id i20sm6075189iow.9.2021.12.17.11.48.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Dec 2021 11:48:05 -0800 (PST) From: Adam Ford To: u-boot@lists.denx.de Cc: marex@denx.de, aford@beaconembedded.com, Adam Ford Subject: [PATCH] arm: rmobile: rzg2_beacon: Migrate reset to SYSRESET_PSCI Date: Fri, 17 Dec 2021 13:47:59 -0600 Message-Id: <20211217194759.2425773-1-aford173@gmail.com> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.38 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.2 at phobos.denx.de X-Virus-Status: Clean Instead of a custom cpu_reset function, use the sysreset_psci instead to reduce redundant code clutter. Signed-off-by: Adam Ford diff --git a/board/beacon/beacon-rzg2m/beacon-rzg2m.c b/board/beacon/beacon-rzg2m/beacon-rzg2m.c index df6044a429..4b41c6fdaa 100644 --- a/board/beacon/beacon-rzg2m/beacon-rzg2m.c +++ b/board/beacon/beacon-rzg2m/beacon-rzg2m.c @@ -6,7 +6,6 @@ #include #include #include -#include DECLARE_GLOBAL_DATA_PTR; @@ -18,15 +17,6 @@ int board_init(void) return 0; } -#define RST_BASE 0xE6160000 -#define RST_CA57RESCNT (RST_BASE + 0x40) -#define RST_CODE 0xA5A5000F - -void reset_cpu(void) -{ - writel(RST_CODE, RST_CA57RESCNT); -} - #if IS_ENABLED(CONFIG_MULTI_DTB_FIT) int board_fit_config_name_match(const char *name) { diff --git a/configs/rzg2_beacon_defconfig b/configs/rzg2_beacon_defconfig index 6c48c3b8c9..55d4982721 100644 --- a/configs/rzg2_beacon_defconfig +++ b/configs/rzg2_beacon_defconfig @@ -70,6 +70,8 @@ CONFIG_SCIF_CONSOLE=y CONFIG_SPI=y CONFIG_DM_SPI=y CONFIG_RENESAS_RPC_SPI=y +CONFIG_SYSRESET=y +CONFIG_SYSRESET_PSCI=y CONFIG_USB=y CONFIG_USB_XHCI_HCD=y CONFIG_USB_EHCI_HCD=y -- 2.32.0