diff options
Diffstat (limited to 'arch/arm/mach-meson/board-info.c')
-rw-r--r-- | arch/arm/mach-meson/board-info.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/arch/arm/mach-meson/board-info.c b/arch/arm/mach-meson/board-info.c index b4058f59323..d3807dc787d 100644 --- a/arch/arm/mach-meson/board-info.c +++ b/arch/arm/mach-meson/board-info.c @@ -7,6 +7,7 @@ #include <init.h> #include <asm/global_data.h> #include <asm/io.h> +#include <asm/types.h> #include <dm.h> #include <linux/bitfield.h> #include <regmap.h> @@ -125,12 +126,12 @@ static const char *socinfo_to_soc_id(u32 socinfo) return "Unknown"; } -static unsigned int get_socinfo(void) +u32 meson_get_socinfo(void) { struct regmap *regmap; int nodeoffset, ret; ofnode node; - unsigned int socinfo; + u32 socinfo; /* find the offset of compatible node */ nodeoffset = fdt_node_offset_by_compatible(gd->fdt_blob, -1, @@ -162,9 +163,9 @@ static unsigned int get_socinfo(void) int checkboard(void) { - unsigned int socinfo; + u32 socinfo; - socinfo = get_socinfo(); + socinfo = meson_get_socinfo(); if (!socinfo) return 0; @@ -181,9 +182,9 @@ int checkboard(void) int meson_get_soc_rev(char *buff, size_t buff_len) { - unsigned int socinfo; + u32 socinfo; - socinfo = get_socinfo(); + socinfo = meson_get_socinfo(); if (!socinfo) return -1; |