summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-bcm283x
diff options
context:
space:
mode:
authorLubomir Rintel <lkundrak@v3.sk>2016-02-22 22:06:47 +0100
committerTom Rini <trini@konsulko.com>2016-02-24 18:44:12 -0500
commit757cd149b9c6928734fab0b831a7624168a0b71c (patch)
treed4f30da69e1c4f37a61ee435b1eb3a31f59aa6bc /arch/arm/mach-bcm283x
parent6f6051fac360cf6ca88cfcfa3cb377778ef5742c (diff)
downloadtalos-obmc-uboot-757cd149b9c6928734fab0b831a7624168a0b71c.tar.gz
talos-obmc-uboot-757cd149b9c6928734fab0b831a7624168a0b71c.zip
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 <lkundrak@v3.sk> Tested-by: Stephen Warren <swarren@wwwdotorg.org> Reviewed-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/mach-bcm283x')
-rw-r--r--arch/arm/mach-bcm283x/include/mach/mbox.h11
1 files changed, 11 insertions, 0 deletions
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 {
OpenPOWER on IntegriCloud