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 8AB32C433FE for ; Mon, 28 Feb 2022 12:48:58 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 300C383BD9; Mon, 28 Feb 2022 13:48:55 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; secure) header.d=walle.cc header.i=@walle.cc header.b="RkKSpDYX"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 588D983BCF; Mon, 28 Feb 2022 13:48:52 +0100 (CET) Received: from ssl.serverraum.org (ssl.serverraum.org [IPv6:2a01:4f8:151:8464::1:2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1B1FA83073 for ; Mon, 28 Feb 2022 13:48:49 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=walle.cc Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=michael@walle.cc Received: from mwalle01.kontron.local. (unknown [213.135.10.150]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ssl.serverraum.org (Postfix) with ESMTPSA id 96429223EA; Mon, 28 Feb 2022 13:48:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=walle.cc; s=mail2016061301; t=1646052528; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=aDuf0kUqjjea9HMQ2J3U1nR0B8D98e2PP8nlcmLJv5Y=; b=RkKSpDYXDBlkvnxsUAvbPakAwu5jPYOvf/kY/i51819nqPCCw+rdpA6+QF0ZcWVKa8krJe EWJ5BLxscFdAxHcg4mCMM/7QA33LIMXVtamtSprnXcsqHlLZNjj4wdM9DrFqan1hfBqOcs lCcV4yB8WI1ynHHLo+OFJCtfJeXla0U= From: Michael Walle To: Priyanka Jain , u-boot@lists.denx.de Cc: Mingkai Hu , Rajesh Bhagat , Michael Walle Subject: [PATCH v2 0/5] board: sl28: add basic PSCI implementation Date: Mon, 28 Feb 2022 13:48:36 +0100 Message-Id: <20220228124841.2664421-1-michael@walle.cc> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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.5 at phobos.denx.de X-Virus-Status: Clean Add PSCI support to reset and power-off the board. Because this board can be used without TF-A, supply a (mandatory) PSCI implementation. The armv8 u-boot part already contains most bits for the implementation, it is just, that it isn't compatible with the layerscape parts. Thus, we first need to clean that up and then we can add our three little functions for the PSCI support. Changes since v1: - mark psci_update_dt() as __weak - rebase to latest master Michael Walle (5): armv8: include psci_update_dt() unconditionally armv8: layerscape: get rid of smc_call() armv8: psci: skip setup code if we are not EL3 armv8: psci: add ARMV8_PSCI_RELOCATE Kconfig option board: sl28: add basic PSCI implementation arch/arm/cpu/armv8/Kconfig | 30 +++++++++----- arch/arm/cpu/armv8/cpu-dt.c | 9 +++-- arch/arm/cpu/armv8/cpu.c | 3 ++ arch/arm/cpu/armv8/fsl-layerscape/Kconfig | 3 ++ arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 49 +++++++++-------------- arch/arm/cpu/armv8/fsl-layerscape/mp.c | 11 ++--- arch/arm/cpu/armv8/sec_firmware.c | 19 ++++----- board/freescale/ls1043ardb/Kconfig | 8 ---- board/kontron/sl28/Makefile | 2 + board/kontron/sl28/psci.c | 42 +++++++++++++++++++ configs/kontron_sl28_defconfig | 2 + 11 files changed, 106 insertions(+), 72 deletions(-) create mode 100644 board/kontron/sl28/psci.c -- 2.30.2