From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSIRm-00009b-Cg for barebox@lists.infradead.org; Wed, 06 Nov 2019 10:21:57 +0000 From: Ahmad Fatoum Date: Wed, 6 Nov 2019 11:21:43 +0100 Message-Id: <20191106102149.6858-1-a.fatoum@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 0/6] ARM: psci: add PSCI client driver To: barebox@lists.infradead.org Cc: Ahmad Fatoum On platforms like the ARM STM32MP and the ARM64 Layerscape, firmware (i.e. barebox) is expected to fixup the correct PSCI version into the Linux device tree, so functionality like system reset via PSCI works. Add a generic client driver that handles this and enable its usage for the STM32MP. v1 -> v2: - changed some erroneous commit message headers - squashed PSCI system reset driver into PSCI client code (Sascha) - Made the new CONFIG_ARM_PSCI_CLIENT selectable (Sascha) - Added help text for CONFIG_ARM_PSCI_CLIENT - Added -ENOSYS returning stubs for when barebox is compiled without CONFIG_ARM_PSCI_CLIENT - treat failure to register reset and/or poweroff handler in barebox as warnings not errors Ahmad Fatoum (6): ARM: psci: translate PSCI error codes in smc command ARM: psci: use CONFIG_ARM_PSCI_DEBUG for smc command ARM: psci: wire in smc command help ARM: psci: implement PSCI client driver ARM: stm32mp: select ARM_USE_COMPRESSED_DTB for the whole arch ARM: dts: stm32mp: report psci v0.2 at least arch/arm/Kconfig | 10 ++ arch/arm/cpu/Makefile | 1 + arch/arm/cpu/psci-client.c | 190 ++++++++++++++++++++++++++++++++++ arch/arm/cpu/psci.c | 46 +++++++- arch/arm/dts/stm32mp157c.dtsi | 4 + arch/arm/include/asm/psci.h | 23 +++- arch/arm/mach-stm32mp/Kconfig | 2 +- 7 files changed, 269 insertions(+), 7 deletions(-) create mode 100644 arch/arm/cpu/psci-client.c -- 2.24.0.rc1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox