From 757cd149b9c6928734fab0b831a7624168a0b71c Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Mon, 22 Feb 2016 22:06:47 +0100 Subject: rpi: set board serial number in environment Gets propagated into the device tree and then into /proc/cpuinfo where users often expect it. Signed-off-by: Lubomir Rintel Tested-by: Stephen Warren Reviewed-by: Stephen Warren --- arch/arm/mach-bcm283x/include/mach/mbox.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'arch/arm/mach-bcm283x') diff --git a/arch/arm/mach-bcm283x/include/mach/mbox.h b/arch/arm/mach-bcm283x/include/mach/mbox.h index af94dff2ac..4a143917f0 100644 --- a/arch/arm/mach-bcm283x/include/mach/mbox.h +++ b/arch/arm/mach-bcm283x/include/mach/mbox.h @@ -150,6 +150,17 @@ struct bcm2835_mbox_tag_get_mac_address { } body; }; +#define BCM2835_MBOX_TAG_GET_BOARD_SERIAL 0x00010004 + +struct bcm2835_mbox_tag_get_board_serial { + struct bcm2835_mbox_tag_hdr tag_hdr; + union { + struct __packed { + u64 serial; + } resp; + } body; +}; + #define BCM2835_MBOX_TAG_GET_ARM_MEMORY 0x00010005 struct bcm2835_mbox_tag_get_arm_mem { -- cgit v1.2.1