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