projects
/
platform
/
kernel
/
opensbi-spacemit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
12e7af9
)
lib: sbi: Print timer frequency at boot time
author
Anup Patel
<anup.patel@wdc.com>
Wed, 15 Sep 2021 03:21:42 +0000
(08:51 +0530)
committer
Anup Patel
<anup@brainfault.org>
Sun, 26 Sep 2021 14:22:12 +0000
(19:52 +0530)
We now have frequency in timer device instance provided by platform
so let's print timer frequency as part of the boot prints.
Signed-off-by: Anup Patel <anup.patel@wdc.com>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Reviewed-by: Xiang W <wxjstz@126.com>
lib/sbi/sbi_init.c
patch
|
blob
|
history
diff --git
a/lib/sbi/sbi_init.c
b/lib/sbi/sbi_init.c
index
6ef8742
..
f0eb365
100644
(file)
--- a/
lib/sbi/sbi_init.c
+++ b/
lib/sbi/sbi_init.c
@@
-75,8
+75,9
@@
static void sbi_boot_print_general(struct sbi_scratch *scratch)
sbi_printf("Platform IPI Device : %s\n",
(idev) ? idev->name : "---");
tdev = sbi_timer_get_device();
- sbi_printf("Platform Timer Device : %s\n",
- (tdev) ? tdev->name : "---");
+ sbi_printf("Platform Timer Device : %s @ %luHz\n",
+ (tdev) ? tdev->name : "---",
+ (tdev) ? tdev->timer_freq : 0);
cdev = sbi_console_get_device();
sbi_printf("Platform Console Device : %s\n",
(cdev) ? cdev->name : "---");