aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-bcm2835
diff options
context:
space:
mode:
authorStephen Warren2014-09-26 20:51:39 -0600
committerMarek Vasut2014-10-22 22:02:08 +0200
commit4f80a06df3c174773b6fc4379f50562bf8db5a62 (patch)
tree308a62d95fe32d4828ebeb7a5fd80738afe864fa /arch/arm/include/asm/arch-bcm2835
parent72d5702c44ed43cf36491059f00a7b1819341610 (diff)
ARM: rpi_b: query internal MAC address from firmware
The built-in SMSC 95xx chip doesn't know its own MAC address. Instead, we must query it from the VC firmware; it's probably encoded in fuses on the BCM2835. Signed-off-by: Stephen Warren <swarren@wwwdotorg.org>
Diffstat (limited to 'arch/arm/include/asm/arch-bcm2835')
-rw-r--r--arch/arm/include/asm/arch-bcm2835/mbox.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-bcm2835/mbox.h b/arch/arm/include/asm/arch-bcm2835/mbox.h
index dded857c3ad..61f427d914c 100644
--- a/arch/arm/include/asm/arch-bcm2835/mbox.h
+++ b/arch/arm/include/asm/arch-bcm2835/mbox.h
@@ -119,6 +119,20 @@ struct bcm2835_mbox_tag_hdr {
* };
*/
+#define BCM2835_MBOX_TAG_GET_MAC_ADDRESS 0x00010003
+
+struct bcm2835_mbox_tag_get_mac_address {
+ struct bcm2835_mbox_tag_hdr tag_hdr;
+ union {
+ struct {
+ } req;
+ struct {
+ u8 mac[6];
+ u8 pad[2];
+ } resp;
+ } body;
+};
+
#define BCM2835_MBOX_TAG_GET_ARM_MEMORY 0x00010005
struct bcm2835_mbox_tag_get_arm_mem {