From: Song Gao <gaosong@loongson.cn>
To: qemu-devel@nongnu.org
Cc: richard.henderson@linaro.org, stefanha@gmail.com,
Xiaojuan Yang <yangxiaojuan@loongson.cn>
Subject: [PULL for 7.2-rc2 3/3] hw/loongarch: Replace the value of uart info with macro
Date: Tue, 22 Nov 2022 21:10:27 +0800 [thread overview]
Message-ID: <20221122131027.1250769-4-gaosong@loongson.cn> (raw)
In-Reply-To: <20221122131027.1250769-1-gaosong@loongson.cn>
From: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Using macro to replace the value of uart info such as addr, size
in acpi_build method.
Signed-off-by: Xiaojuan Yang <yangxiaojuan@loongson.cn>
Reviewed-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20221115115008.3372489-1-yangxiaojuan@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
hw/loongarch/acpi-build.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/loongarch/acpi-build.c b/hw/loongarch/acpi-build.c
index 68dfb9f88a..7d5f5a757d 100644
--- a/hw/loongarch/acpi-build.c
+++ b/hw/loongarch/acpi-build.c
@@ -226,7 +226,8 @@ static void build_uart_device_aml(Aml *table)
aml_append(crs,
aml_qword_memory(AML_POS_DECODE, AML_MIN_FIXED, AML_MAX_FIXED,
AML_NON_CACHEABLE, AML_READ_WRITE,
- 0, 0x1FE001E0, 0x1FE001E7, 0, 0x8));
+ 0, VIRT_UART_BASE, VIRT_UART_BASE + VIRT_UART_SIZE - 1,
+ 0, VIRT_UART_SIZE));
aml_append(crs, aml_interrupt(AML_CONSUMER, AML_LEVEL, AML_ACTIVE_HIGH,
AML_SHARED, &uart_irq, 1));
aml_append(dev, aml_name_decl("_CRS", crs));
--
2.31.1
next prev parent reply other threads:[~2022-11-22 13:11 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-22 13:10 [PULL for 7.2-rc2 0/3] loongarch for 7.2-rc2 patches Song Gao
2022-11-22 13:10 ` [PULL for 7.2-rc2 1/3] hw/loongarch: Add default stdout uart in fdt Song Gao
2022-11-22 13:10 ` [PULL for 7.2-rc2 2/3] hw/loongarch: Fix setprop_sized method in fdt rtc node Song Gao
2022-11-22 13:10 ` Song Gao [this message]
2022-11-22 17:09 ` [PULL for 7.2-rc2 0/3] loongarch for 7.2-rc2 patches Stefan Hajnoczi
2022-11-24 12:30 ` gaosong
2022-11-24 12:44 ` Daniel P. Berrangé
2022-11-24 12:52 ` gaosong
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=20221122131027.1250769-4-gaosong@loongson.cn \
--to=gaosong@loongson.cn \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=stefanha@gmail.com \
--cc=yangxiaojuan@loongson.cn \
/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;
as well as URLs for NNTP newsgroup(s).