mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Ahmad Fatoum <a.fatoum@pengutronix.de>
To: barebox@lists.infradead.org
Cc: Ahmad Fatoum <a.fatoum@pengutronix.de>
Subject: [PATCH v2 0/6] ARM: psci: add PSCI client driver
Date: Wed,  6 Nov 2019 11:21:43 +0100	[thread overview]
Message-ID: <20191106102149.6858-1-a.fatoum@pengutronix.de> (raw)

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

             reply	other threads:[~2019-11-06 10:21 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-06 10:21 Ahmad Fatoum [this message]
2019-11-06 10:21 ` [PATCH v2 1/6] ARM: psci: translate PSCI error codes in smc command Ahmad Fatoum
2019-11-06 10:21 ` [PATCH v2 2/6] ARM: psci: use CONFIG_ARM_PSCI_DEBUG for " Ahmad Fatoum
2019-11-06 10:21 ` [PATCH v2 3/6] ARM: psci: wire in smc command help Ahmad Fatoum
2019-11-06 10:21 ` [PATCH v2 4/6] ARM: psci: implement PSCI client driver Ahmad Fatoum
2019-11-07 11:33   ` Sascha Hauer
2019-11-06 10:21 ` [PATCH v2 5/6] ARM: stm32mp: select ARM_USE_COMPRESSED_DTB for the whole arch Ahmad Fatoum
2019-11-06 10:21 ` [PATCH v2 6/6] ARM: dts: stm32mp: report psci v0.2 at least Ahmad Fatoum
2019-11-06 10:26   ` [PATCH] fixup! " Ahmad Fatoum
2019-11-07  7:09 ` [PATCH v2 0/6] ARM: psci: add PSCI client driver Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191106102149.6858-1-a.fatoum@pengutronix.de \
    --to=a.fatoum@pengutronix.de \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox