Home
last modified time | relevance | path

Searched refs:siliconid (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/soc/aspeed/
H A Daspeed-socinfo.c32 static const char *siliconid_to_name(u32 siliconid) in siliconid_to_name() argument
34 unsigned int id = siliconid & 0xff00ffff; in siliconid_to_name()
45 static const char *siliconid_to_rev(u32 siliconid) in siliconid_to_rev() argument
47 unsigned int rev = (siliconid >> 16) & 0xff; in siliconid_to_rev()
48 unsigned int gen = (siliconid >> 24) & 0xff; in siliconid_to_rev()
84 u32 siliconid; in aspeed_socinfo_init() local
99 siliconid = readl(reg); in aspeed_socinfo_init()
130 attrs->family = siliconid_to_name(siliconid); in aspeed_socinfo_init()
131 attrs->revision = siliconid_to_rev(siliconid); in aspeed_socinfo_init()
132 attrs->soc_id = kasprintf(GFP_KERNEL, "%08x", siliconid); in aspeed_socinfo_init()