#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>
#include <linux/bitfield.h>
#include <linux/regmap.h>
#include <linux/mfd/syscon.h>
#define AO_SEC_SD_CFG8 …
#define AO_SEC_SOCINFO_OFFSET …
#define SOCINFO_MAJOR …
#define SOCINFO_PACK …
#define SOCINFO_MINOR …
#define SOCINFO_MISC …
static const struct meson_gx_soc_id { … } soc_ids[] = …;
static const struct meson_gx_package_id { … } soc_packages[] = …;
static inline unsigned int socinfo_to_major(u32 socinfo)
{ … }
static inline unsigned int socinfo_to_minor(u32 socinfo)
{ … }
static inline unsigned int socinfo_to_pack(u32 socinfo)
{ … }
static inline unsigned int socinfo_to_misc(u32 socinfo)
{ … }
static const char *socinfo_to_package_id(u32 socinfo)
{ … }
static const char *socinfo_to_soc_id(u32 socinfo)
{ … }
static int __init meson_gx_socinfo_init(void)
{ … }
device_initcall(meson_gx_socinfo_init);