From patchwork Thu Jun 1 21:48:10 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1789353 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20221208 header.b=Bfq0uDBN; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4QXKX36yKHz20QH for ; Fri, 2 Jun 2023 07:48:50 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 8F60C8633F; Thu, 1 Jun 2023 23:48:37 +0200 (CEST) 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="Bfq0uDBN"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D0A3D82724; Thu, 1 Jun 2023 23:48:35 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 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 6921C82724 for ; Thu, 1 Jun 2023 23:48:33 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=cfsworks@gmail.com Received: by mail-io1-xd2a.google.com with SMTP id ca18e2360f4ac-774867fd6f7so15919439f.1 for ; Thu, 01 Jun 2023 14:48:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685656112; x=1688248112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=MiVpmtQiKwmtyxh9yC3bYklHwao2qIoFXG7mWSJTiUE=; b=Bfq0uDBNFbj3ijV16uuKFgczlrWYzYLd6Ta0mqKJfDi5wGjrh9bYIttaBGYfAnVPDC 8VII49sQJJS/l5yEYzuBoz8uZiHuFN9tphWWGmwmcaZpi6d94iaclGhy6GgtA4nYkF7K D8gqbrAH6e9gXHAmekDL3KIzyTvl0N88dJna/3WR72CFUP6E74NqIuUUhBZyZY9qrwGU l7tnBbQhwKZlRUCAjPTOujurW4LTOQfCGlGhebC47JnsKWYdhPj7/GpLOiWGRkSjaESe +8m7DeuqSK2tuqqa/ZKmtgetcy+LAd/XdFV5rAieZB2XVuFAHuhro2DkwPdPMSNKuXeE 94Xw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685656112; x=1688248112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=MiVpmtQiKwmtyxh9yC3bYklHwao2qIoFXG7mWSJTiUE=; b=EbjC1nvQIhLWz5+kjgKJ7L4liEPFctAURi/dC3fTF1JJITnPqKfQ3n0dprv1yLg3mh +VcY1XEa51zzJWTcpVlmBSL1RmFck1iJ4KAsyG7PbPdK2RCn5/BOsG7cFvgpMMAolWxE rBtcvNTBjk0RwymkTZOCw96gNV61xQehFi368qx4VdnJU+0UN3iulAQyajDqETPuoUl4 BjGzlkogBPXIhbdZuQsghW0eW49N6ke65nZqU0BnVIWp8AUyqn4i3Zyq4pa+qQQZWJr6 1QwB48u96LuiMRGDIMGLnCTMiolxrq1TohyXwO2tt4LfB56da88ZKmF0o2SI7MEg/mll 6r6A== X-Gm-Message-State: AC+VfDwFtMnmaApOQ5Vx9iyvpPUpO03pZsgHsAkzzpwpz1rY5UfkXTOI dsnuh6c0NPVhRxRAJ2QN8vY= X-Google-Smtp-Source: ACHHUZ5cpUxsVJzx9qtJI9XOGmHkcBCRT7J69pSFUaTnte7pUBfR+AOboi/HBBoD6vpRKuQocfwc+A== X-Received: by 2002:a05:6602:51:b0:766:454e:3cdd with SMTP id z17-20020a056602005100b00766454e3cddmr532543ioz.20.1685656111802; Thu, 01 Jun 2023 14:48:31 -0700 (PDT) Received: from celestia.nettie.lan ([2001:470:42c4:101:d533:5ee2:46c3:bebd]) by smtp.gmail.com with ESMTPSA id s13-20020a056638218d00b0041ab38c1a4esm2561708jaj.60.2023.06.01.14.48.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Jun 2023 14:48:31 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: Andre Przywara Cc: u-boot@lists.denx.de, Maksim Kiselev , Sam Edwards Subject: [RFC PATCH 0/4] Allwinner R528/T113s PSCI Date: Thu, 1 Jun 2023 15:48:10 -0600 Message-Id: <20230601214814.128336-1-CFSworks@gmail.com> X-Mailer: git-send-email 2.39.2 MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.8 at phobos.denx.de X-Virus-Status: Clean Hi Andre (and list), Per our previous discussion, these are my patches to add PSCI support to your WIP R528/T113s series. I am sending it as RFC because I have CC'd the list and don't want these changes to be treated as patches against upstream. The first patch in this series provides a few more register definitions for cpu_sunxi_ncat2.h. The next two are refactoring, independent of any specific arch/SoC. The final patch adds PSCI support. It might or might not be appropriate to split out the refactoring patches for separate review and inclusion; otherwise, the intent of this patchset is to be incorporated into the existing R528 series. Cheers, Sam Sam Edwards (4): SQUASH ME sunxi: psci: clean away preprocessor macros sunxi: psci: refactor register access to separate functions sunxi: psci: implement PSCI on R528 arch/arm/cpu/armv7/sunxi/psci.c | 185 ++++++++++++------ .../include/asm/arch-sunxi/cpu_sunxi_ncat2.h | 7 +- arch/arm/mach-sunxi/Kconfig | 2 + include/configs/sunxi-common.h | 8 + 4 files changed, 138 insertions(+), 64 deletions(-)