blob: e31adcdf3f840ca3f0e44d1d42540ece3cf99d93 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
/* SPDX-License-Identifier: GPL-2.0-only */
#include <console/console.h>
#include <device/mmio.h>
#include <soc/cpu_id.h>
#include <soc/efuse.h>
u32 get_cpu_id(void)
{
u32 id = read32(&mtk_efuse->cpu_id_reg);
printk(BIOS_INFO, "CPU: %#x\n", id);
return id;
}
|