From patchwork Sat Aug 12 00:30:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sam Edwards X-Patchwork-Id: 1820455 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=85.214.62.61; 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=eVjdK5YY; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (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 4RN1mk6VBJz1yfN for ; Sat, 12 Aug 2023 10:31:18 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 35BD68694E; Sat, 12 Aug 2023 02:31:16 +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="eVjdK5YY"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id A57538694E; Sat, 12 Aug 2023 02:31:15 +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 autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-pl1-x62d.google.com (mail-pl1-x62d.google.com [IPv6:2607:f8b0:4864:20::62d]) (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 9683F86945 for ; Sat, 12 Aug 2023 02:31:13 +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-pl1-x62d.google.com with SMTP id d9443c01a7336-1bc7e65ea44so18011605ad.1 for ; Fri, 11 Aug 2023 17:31:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1691800271; x=1692405071; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=euuisYTbRM86qs0C79rzFJQCDKz22hk92VLIGjoasIo=; b=eVjdK5YYlMnflGjOfPyJd/pVQtVjrhMMA4NaCs2LdgGkT4pUdzQvqiOk/Rxi6y/UuC S5KlFOX7UlN0QuUt2vnOKluVSSLeLr0MEdYnhF4+sytN1N6VK5zugoJo2oZS2XLhrGCz OG55Iiv+1olbIsEF2HHsss/slPrbpz3FU1kkvwC/05uix45oXrsIaAZRcc9WKxP3J+W2 KoIFw4TRdKSGgsDGNoL1dCycWrDDobi08tGJwVwx6ff9yRYhTdnwVurdbIKNGfG38Ouv iCRnt5kKdcdUaYulkIV+baCvJCfRW27hX5Ep4c4gUvhn86elanJZ1fVQXvFVrdTznf+F MpBw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1691800271; x=1692405071; 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=euuisYTbRM86qs0C79rzFJQCDKz22hk92VLIGjoasIo=; b=CbHbjk/TCnHRlt3AVfum/jq9yVxYJLaCBVbJ4EN0q6tBkjGCipqK8SoE2xOJ6q2Zel MA/rJi6ElhSun3j3rxun4k+rhCLFfrxOgx6NyKERu6/HYsD2KNqKjy3jl+82OkNOkrQC NtgS/YwcAvJrWZNIqiKxRtMAhANyMB0NT2bx/Du8n6HnKw6NZzJ0tEfeLU0dc+fk6Dk7 8A2DHIdhYSlHZ4oXL4GS1/xWTUQFkvhA64SKAp6OydRD4Vjbi+DcdIjxeovELg0mMYwa 9TUdMDWYLtxZb/KSPVHwnXGwEFN/FD+CzKJEN3xzuZA06yRpZnVO1usMkg7XRLAaYfPU zEvQ== X-Gm-Message-State: AOJu0YxDVSvZIBfDyj5eEOpXT9rGYZ0eQA7HGvE+q6CeuwPdB1WzWkut K5Q0oM0QoA61ee4WLFshYFBS26e7Of+kzA== X-Google-Smtp-Source: AGHT+IGI2RAewvAcLYIR4Y+j1G4gcNpoBxZpw7wRa6l6ERN26deK7RX0xVtGMc7mKboREkq24pAA4A== X-Received: by 2002:a17:902:f68c:b0:1b8:a67f:1c15 with SMTP id l12-20020a170902f68c00b001b8a67f1c15mr9261300plg.25.1691800270704; Fri, 11 Aug 2023 17:31:10 -0700 (PDT) Received: from celestia.nettie.lan (static-198-54-134-172.cust.tzulo.com. [198.54.134.172]) by smtp.gmail.com with ESMTPSA id s4-20020a170902988400b001ae0152d280sm4494305plp.193.2023.08.11.17.31.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Aug 2023 17:31:10 -0700 (PDT) From: Sam Edwards X-Google-Original-From: Sam Edwards To: u-boot@lists.denx.de, Andre Przywara , Jagan Teki Cc: Samuel Holland , Jernej Skrabec , Icenowy Zheng , Maksim Kiselev , Sam Edwards Subject: [PATCH 0/3] Allwinner R528/T113s PSCI Date: Fri, 11 Aug 2023 18:30:52 -0600 Message-ID: <20230812003055.74527-1-CFSworks@gmail.com> X-Mailer: git-send-email 2.41.0 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 list, With Andre's R528 support (hopefully) landing soon, I figure now is time to submit these patches for review. They refactor the ARMv7/sunxi PSCI implementation to allow for the new NCAT2 CPU complex control registers, and add support for the R528/T113s. Depends on series 365063. Thanks, Sam Sam Edwards (3): 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 +++++++++++++++++++++----------- arch/arm/mach-sunxi/Kconfig | 2 + include/configs/sunxi-common.h | 8 ++ 3 files changed, 133 insertions(+), 62 deletions(-)