]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/include/asm/arch-bcm2835/mbox.h
rpi: add support for Raspberry Pi 2 model B
[people/ms/u-boot.git] / arch / arm / include / asm / arch-bcm2835 / mbox.h
index c4bbacaf3c3fdcb3fc64bf85597db7aa3945a899..04bf480a5493173146863ac5344720474c517bdf 100644 (file)
@@ -125,6 +125,9 @@ struct bcm2835_mbox_tag_hdr {
 
 #define BCM2835_MBOX_TAG_GET_BOARD_REV 0x00010002
 
+#ifdef CONFIG_BCM2836
+#define BCM2836_BOARD_REV_2_B          0x4
+#else
 /*
  * 0x2..0xf from:
  * http://raspberryalphaomega.org.uk/2013/02/06/automatic-raspberry-pi-board-revision-detection-model-a-b1-and-b2/
@@ -145,6 +148,7 @@ struct bcm2835_mbox_tag_hdr {
 #define BCM2835_BOARD_REV_B_PLUS       0x10
 #define BCM2835_BOARD_REV_CM           0x11
 #define BCM2835_BOARD_REV_A_PLUS       0x12
+#endif
 
 struct bcm2835_mbox_tag_get_board_rev {
        struct bcm2835_mbox_tag_hdr tag_hdr;