diff --git a/arch/arm/mach-bcm/board_bcm2835.c b/arch/arm/mach-bcm/board_bcm2835.c index 70f2f3925f0e8e..f7fdacd826d2ea 100644 --- a/arch/arm/mach-bcm/board_bcm2835.c +++ b/arch/arm/mach-bcm/board_bcm2835.c @@ -18,6 +18,7 @@ #include #include #include +#include #include #include @@ -107,6 +108,9 @@ static void __init bcm2835_map_io(void) static void __init bcm2835_init(void) { + struct device_node *np = of_find_node_by_path("/system"); + u32 val; + u64 val64; int ret; bcm2835_setup_restart(); @@ -121,6 +125,11 @@ static void __init bcm2835_init(void) pr_err("of_platform_populate failed: %d\n", ret); BUG(); } + + if (!of_property_read_u32(np, "linux,revision", &val)) + system_rev = val; + if (!of_property_read_u64(np, "linux,serial", &val64)) + system_serial_low = val64; } static const char * const bcm2835_compat[] = {