| 1 |
|
| 2 |
|
| 3 |
#include <baseboard/variants.h> |
| 4 |
#include <static.h> |
| 5 |
|
| 6 |
void variant_devtree_update(void) |
| 7 |
{ |
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
if (!(variant_has_emmc() || boot_is_factory_unprovisioned())) |
| 12 |
DEV_PTR(emmc)->enabled = 0; |
| 13 |
} |
| 14 |
|
| 15 |
bool variant_has_fingerprint(void) |
| 16 |
{ |
| 17 |
switch (sku_id()) { |
| 18 |
case 0x5A010001: |
| 19 |
case 0x5A010002: |
| 20 |
case 0x5A010003: |
| 21 |
case 0x5A010020: |
| 22 |
case 0x5A010021: |
| 23 |
case 0x5A010022: |
| 24 |
case 0x5A010023: |
| 25 |
case 0x5A010024: |
| 26 |
case 0x5A01002A: |
| 27 |
case 0x5A01002B: |
| 28 |
case 0x5A01002C: |
| 29 |
case 0x5A01002D: |
| 30 |
case 0x5A01002E: |
| 31 |
return false; |
| 32 |
default: |
| 33 |
return true; |
| 34 |
} |
| 35 |
} |