Rex-BC Chen | 6ad80f1 | 2022-10-17 20:49:08 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-only */ |
2 | |||||
3 | #include <console/console.h> | ||||
4 | #include <device/mmio.h> | ||||
5 | #include <soc/cpu_id.h> | ||||
6 | #include <soc/efuse.h> | ||||
7 | |||||
8 | u32 get_cpu_id(void) | ||||
9 | { | ||||
10 | u32 id = read32(&mtk_efuse->cpu_id_reg); | ||||
11 | |||||
12 | printk(BIOS_INFO, "CPU: %#x\n", id); | ||||
13 | |||||
14 | return id; | ||||
15 | } |