// SPDX-License-Identifier: GPL-2.0-or-later /* Copyright 2019 IBM Corp. */ #include <linux/io.h> #include <linux/of.h> #include <linux/of_address.h> #include <linux/of_platform.h> #include <linux/platform_device.h> #include <linux/slab.h> #include <linux/sys_soc.h> static struct { … } const rev_table[] = …; static const char *siliconid_to_name(u32 siliconid) { … } static const char *siliconid_to_rev(u32 siliconid) { … } static int __init aspeed_socinfo_init(void) { … } early_initcall(aspeed_socinfo_init);