All of lore.kernel.org
 help / color / mirror / Atom feed
From: popcorn mix <popcornmix@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] rpi: fix up Model B entries
Date: Wed, 27 Jan 2016 14:47:14 +0000	[thread overview]
Message-ID: <56A8D872.1040602@gmail.com> (raw)
In-Reply-To: <56A83BDE.1010801@wwwdotorg.org>

I believe this is accurate for identifying boards from revision numbers:
https://github.com/AndrewFromMelbourne/raspberry_pi_revision

From the firmware, old style revision numbers:

      case 0x02: case 0x03:
         boardrev = MAKE_BOARDREV(MODELB, 1_1); break;
      case 0x04: case 0x05: case 0x06:
         boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
      case 0x07: case 0x08: case 0x09:
         boardrev = MAKE_BOARDREV(MODELA, 1_2); break;
      case 0x0d: case 0x0e: case 0x0f:
         boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
      case 0x10: case 0x13: case 0x16: case 0x19:
         boardrev = MAKE_BOARDREV(MODELBPLUS, 1_2);
         break;
      case 0x11: case 0x14: case 0x17: case 0x1a:
         boardrev = MAKE_BOARDREV(CM, 1_0); break;
      case 0x12: case 0x15: case 0x18: case 0x1b:
         boardrev = MAKE_BOARDREV(MODELAPLUS, 1_1); break;
      default:
         boardrev = MAKE_BOARDREV(MODELB, 1_2); break;
      }

and new style (bits 4-11):

typedef enum
{
   BOARD_TYPE_MODELA = 0,
   BOARD_TYPE_MODELB = 1,
   BOARD_TYPE_MODELAPLUS = 2,
   BOARD_TYPE_MODELBPLUS = 3,
   BOARD_TYPE_PI2MODELB = 4,
   BOARD_TYPE_ALPHA = 5,
   BOARD_TYPE_CM = 6,
   BOARD_TYPE_PI0 = 9,
} BOARD_TYPE_T;

  reply	other threads:[~2016-01-27 14:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-25 20:36 [U-Boot] [PATCH] rpi: fix up Model B entries Lubomir Rintel
2016-01-27  3:39 ` Stephen Warren
2016-01-27 14:47   ` popcorn mix [this message]
2016-01-29  5:22 ` Stephen Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=56A8D872.1040602@gmail.com \
    --to=popcornmix@gmail.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.