Date: Fri, 11 Jun 2021 20:30:48 GMT From: Warner Losh <imp@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 7700494d9603 - main - mtk: Add printing of CPU model Message-ID: <202106112030.15BKUmu8026042@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=7700494d9603605fba5d1e402b3c8c0234d942b1 commit 7700494d9603605fba5d1e402b3c8c0234d942b1 Author: Warner Losh <imp@FreeBSD.org> AuthorDate: 2021-06-11 20:13:31 +0000 Commit: Warner Losh <imp@FreeBSD.org> CommitDate: 2021-06-11 20:28:54 +0000 mtk: Add printing of CPU model Add the line that's in other foo_machdep.c file where the CPU model is reported. This was part of github pull request 459, but in a different way. The rest of that pull request was either committed or not relevant. I did it in a more correct way. Submitted by: Priit Trees Sponsored by: Netflix --- sys/mips/mediatek/mtk_machdep.c | 1 + sys/mips/mediatek/mtk_soc.c | 1 + 2 files changed, 2 insertions(+) diff --git a/sys/mips/mediatek/mtk_machdep.c b/sys/mips/mediatek/mtk_machdep.c index bfffaee634bd..e4406eacf6a5 100644 --- a/sys/mips/mediatek/mtk_machdep.c +++ b/sys/mips/mediatek/mtk_machdep.c @@ -258,6 +258,7 @@ platform_start(__register_t a0 __unused, __register_t a1 __unused, printf("FDT DTB at: 0x%08x\n", (uint32_t)dtbp); + printf("CPU model: %s\n", cpu_model); printf("CPU clock: %4dMHz\n", mtk_soc_get_cpuclk()/(1000*1000)); printf("Timer clock: %4dMHz\n", timer_clk/(1000*1000)); printf("UART clock: %4dMHz\n\n", mtk_soc_get_uartclk()/(1000*1000)); diff --git a/sys/mips/mediatek/mtk_soc.c b/sys/mips/mediatek/mtk_soc.c index 9fd307a92a67..96ce0bc0f12f 100644 --- a/sys/mips/mediatek/mtk_soc.c +++ b/sys/mips/mediatek/mtk_soc.c @@ -35,6 +35,7 @@ __FBSDID("$FreeBSD$"); #include <sys/rman.h> #include <machine/fdt.h> +#include <machine/md_var.h> #include <dev/ofw/openfirm.h> #include <dev/ofw/ofw_bus.h>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106112030.15BKUmu8026042>