From: Nick Hu <nick.hu@sifive.com>
To: opensbi@lists.infradead.org
Cc: vincent.chen@sifive.com, anup@brainfault.org,
Nick Hu <nick.hu@sifive.com>
Subject: [PATCH v4 07/11] lib: utils/ipi: Exposing the ACLINT IPI device
Date: Wed, 20 Aug 2025 11:32:46 +0800 [thread overview]
Message-ID: <20250820033250.544-8-nick.hu@sifive.com> (raw)
In-Reply-To: <20250820033250.544-1-nick.hu@sifive.com>
Exposing the ACLINT IPI device so the other driver can send the CLINT
IPI on the platform with IMSIC.
Signed-off-by: Nick Hu <nick.hu@sifive.com>
Reviewed-by: Cyan Yang <cyan.yang@sifive.com>
---
include/sbi_utils/ipi/aclint_mswi.h | 1 +
lib/utils/ipi/aclint_mswi.c | 5 +++++
2 files changed, 6 insertions(+)
diff --git a/include/sbi_utils/ipi/aclint_mswi.h b/include/sbi_utils/ipi/aclint_mswi.h
index 4b8249f2..311228eb 100644
--- a/include/sbi_utils/ipi/aclint_mswi.h
+++ b/include/sbi_utils/ipi/aclint_mswi.h
@@ -26,6 +26,7 @@ struct aclint_mswi_data {
u32 hart_count;
};
+struct sbi_ipi_device *aclint_mswi_get(void);
int aclint_mswi_cold_init(struct aclint_mswi_data *mswi);
#endif
diff --git a/lib/utils/ipi/aclint_mswi.c b/lib/utils/ipi/aclint_mswi.c
index 9e55078a..a4173b7c 100644
--- a/lib/utils/ipi/aclint_mswi.c
+++ b/lib/utils/ipi/aclint_mswi.c
@@ -66,6 +66,11 @@ static struct sbi_ipi_device aclint_mswi = {
.ipi_clear = mswi_ipi_clear
};
+struct sbi_ipi_device *aclint_mswi_get(void)
+{
+ return &aclint_mswi;
+}
+
int aclint_mswi_cold_init(struct aclint_mswi_data *mswi)
{
u32 i;
--
2.17.1
--
opensbi mailing list
opensbi@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/opensbi
next prev parent reply other threads:[~2025-08-20 3:35 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-20 3:32 [PATCH v4 00/11] Add SiFive TMC0 and SMC0 driver Nick Hu
2025-08-20 3:32 ` [PATCH v4 01/11] lib: utils: Add cache flush library Nick Hu
2025-08-20 3:32 ` [PATCH v4 02/11] lib: utils: Add FDT cache library Nick Hu
2025-08-20 3:32 ` [PATCH v4 03/11] utils: cache: Add SiFive ccache controller Nick Hu
2025-08-20 3:32 ` [PATCH v4 04/11] lib: utils/cache: Add fdt cmo helpers Nick Hu
2025-08-20 3:32 ` [PATCH v4 05/11] lib: sbi: Add SiFive proprietary xsfcflushdlone Nick Hu
2025-08-26 8:39 ` Anup Patel
2025-08-20 3:32 ` [PATCH v4 06/11] lib: sbi: Add SiFive proprietary xsfcease Nick Hu
2025-08-26 8:40 ` Anup Patel
2025-08-20 3:32 ` Nick Hu [this message]
2025-08-20 3:32 ` [PATCH v4 08/11] lib: utils/irqchip: Add APLIC restore function Nick Hu
2025-08-20 3:32 ` [PATCH v4 09/11] platform: sifive: Add SiFive TMC0 driver Nick Hu
2025-08-26 8:51 ` Anup Patel
2025-08-28 11:47 ` Nick Hu
2025-08-30 11:01 ` Anup Patel
2025-09-01 10:07 ` Nick Hu
2025-08-20 3:32 ` [PATCH v4 10/11] lib: utils/timer: Expose timer update function Nick Hu
2025-08-20 3:32 ` [PATCH v4 11/11] platform: sifive: Add SiFive SMC0 driver Nick Hu
2025-08-26 8:52 ` Anup Patel
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=20250820033250.544-8-nick.hu@sifive.com \
--to=nick.hu@sifive.com \
--cc=anup@brainfault.org \
--cc=opensbi@lists.infradead.org \
--cc=vincent.chen@sifive.com \
/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