[PATCH v7 0/4] generic/starfive: Enable Starfive JH7110 platform preferred cold boot HART implementation

Wei Liang Lim weiliang.lim at starfivetech.com
Wed Dec 28 18:56:14 PST 2022


This is patchset to enable Starfive JH7110 platform preferred cold boot HART implementation.
User has the option to specify preferred cold boot HART in the device tree. If unspecified, the existing lottery mechanism will be used.

v6->v7:
- Changing if (val && len) -> if (val && len >= sizeof(fdt32_t)) in /platform/generic/starfive/jh7110.c

v5->v6:
- Minor changes on TRUE->true, FALSE->false.

v4->v5:
- Move FDT boot hart id reading from cold_boot_allowed() to fw_init()callback function.

v3->v4:
- Add implementation to allow user to specify preferred cold boot HART in the device tree. 
- If unspecified, the existing lottery mechanism will be used.

v3:
- Add Starfive JH7110 implementation.
- Anup's patches to allow platform specific selection of cold boot HART.

v2:
https://patchwork.ozlabs.org/project/opensbi/patch/20221202063845.14938-1-weiliang.lim@starfivetech.com/

v1:
https://patchwork.ozlabs.org/project/opensbi/patch/20221129052119.379830-1-weiliang.lim@starfivetech.com/

Anup Patel (2):
  lib: sbi: Allow platform to influence cold boot HART selection
  platform: generic: Allow platform_override to select cold boot HART

Wei Liang Lim (2):
  platform: generic: Allow platform_override to perform firmware init
  generic/starfive: Add Starfive JH7110 platform implementation

 include/sbi/sbi_platform.h                   | 20 +++++++++
 lib/sbi/sbi_init.c                           |  7 ++-
 platform/generic/Kconfig                     |  4 ++
 platform/generic/configs/defconfig           |  1 +
 platform/generic/include/platform_override.h |  2 +
 platform/generic/platform.c                  | 12 +++++
 platform/generic/starfive/jh7110.c           | 47 ++++++++++++++++++++
 platform/generic/starfive/objects.mk         |  6 +++
 8 files changed, 97 insertions(+), 2 deletions(-)
 create mode 100644 platform/generic/starfive/jh7110.c
 create mode 100644 platform/generic/starfive/objects.mk

-- 
2.25.1




More information about the opensbi mailing list