LPGBT Fusing
Make sure to update the USER ID register:
|-------+------+---------------+--------------------------------------|
| Range | Bits | Meaning | Description |
|-------+------+---------------+--------------------------------------|
| 15:0 | 16 | Serial Number | Board serial number |
| 31:29 | 3 | Version Major | Major version of RB (e.g. 1 in v1.6) |
| 28:25 | 4 | Version Minor | Major version of RB (e.g. 6 in v1.6) |
| 24:23 | 2 | LPGBT Version | 0x0 = v0; 0x1 = v1 |
| 22:19 | 4 | Board Flavor | 0x0 = 3 module; 0x1 = |
|-------+------+---------------+--------------------------------------|
def user_id (serial, major, minor, lpgbt, flavor):
data = 0
data |= serial & 0xffff
data |= (major & 0x7) << 29
data |= (minor & 0xf) << 25
data |= (lpgbt & 0x3) << 23
data |= (flavor & 0xf) << 19
return data
def params (userid):
serial = userid & 0xffff
major = (userid >> 29) & 0x7
minor = (userid >> 25) & 0xf
lpgbt = (userid >> 23) & 0x3
flavor = (userid >> 19) & 0xf
return serial, major, minor, lpgbt, flavor