aboutsummaryrefslogtreecommitdiff
path: root/lib/utils
diff options
context:
space:
mode:
authorAnup Patel <apatel@ventanamicro.com>2025-05-12 14:08:24 +0530
committerAnup Patel <anup@brainfault.org>2025-05-20 11:10:35 +0530
commit8ca08044c24c34ed4247c8a31fbce0e3feeaa518 (patch)
treec853eedccba2c326ad6b4584791e6fc2d5890df3 /lib/utils
parent8a3071222ae57e7a1736c6e953fa1ab3628e599e (diff)
downloadopensbi-8ca08044c24c34ed4247c8a31fbce0e3feeaa518.zip
opensbi-8ca08044c24c34ed4247c8a31fbce0e3feeaa518.tar.gz
opensbi-8ca08044c24c34ed4247c8a31fbce0e3feeaa518.tar.bz2
lib: utils/mailbox: Update DT register name of A2P doorbell
The latest device tree bindings define A2P doorbell register name as "a2p-doorbell" so update rpmi_shmem_transport_init() accordingly. Signed-off-by: Anup Patel <apatel@ventanamicro.com> Link: https://lore.kernel.org/r/20250512083827.804151-2-apatel@ventanamicro.com Signed-off-by: Anup Patel <anup@brainfault.org>
Diffstat (limited to 'lib/utils')
-rw-r--r--lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c b/lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c
index 5b858d3..2faf51e 100644
--- a/lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c
+++ b/lib/utils/mailbox/fdt_mailbox_rpmi_shmem.c
@@ -651,7 +651,7 @@ static int rpmi_shmem_transport_init(struct rpmi_shmem_mbox_controller *mctl,
SPIN_LOCK_INIT(qctx->queue_lock);
}
- /* get the db-reg property name */
+ /* get the a2p-doorbell property name */
name = fdt_stringlist_get(fdt, nodeoff, "reg-names", qid, &len);
if (!name || (name && len < 0))
return len;
@@ -659,7 +659,7 @@ static int rpmi_shmem_transport_init(struct rpmi_shmem_mbox_controller *mctl,
/* fetch doorbell register address*/
ret = fdt_get_node_addr_size(fdt, nodeoff, qid, &reg_addr,
&reg_size);
- if (!ret && !(strncmp(name, "db-reg", strlen("db-reg")))) {
+ if (!ret && !(strncmp(name, "a2p-doorbell", strlen("a2p-doorbell")))) {
mctl->mb_regs = (void *)(unsigned long)reg_addr;
ret = sbi_domain_root_add_memrange(reg_addr, reg_size, reg_size,
(SBI_DOMAIN_MEMREGION_MMIO |