xref: /openbmc/qemu/hw/arm/aspeed_eeprom.c (revision c0216b94)
1*c0216b94SPeter Delevoryas /*
2*c0216b94SPeter Delevoryas  * Copyright (c) Meta Platforms, Inc. and affiliates.
3*c0216b94SPeter Delevoryas  *
4*c0216b94SPeter Delevoryas  * SPDX-License-Identifier: GPL-2.0-only
5*c0216b94SPeter Delevoryas  */
6*c0216b94SPeter Delevoryas 
7*c0216b94SPeter Delevoryas #include "aspeed_eeprom.h"
8*c0216b94SPeter Delevoryas 
9*c0216b94SPeter Delevoryas const uint8_t fby35_nic_fruid[] = {
10*c0216b94SPeter Delevoryas     0x01, 0x00, 0x00, 0x01, 0x0f, 0x20, 0x00, 0xcf, 0x01, 0x0e, 0x19, 0xd7,
11*c0216b94SPeter Delevoryas     0x5e, 0xcf, 0xc8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xdd,
12*c0216b94SPeter Delevoryas     0x4d, 0x65, 0x6c, 0x6c, 0x61, 0x6e, 0x6f, 0x78, 0x20, 0x43, 0x6f, 0x6e,
13*c0216b94SPeter Delevoryas     0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0x20, 0x4f,
14*c0216b94SPeter Delevoryas     0x43, 0x50, 0x33, 0x2e, 0x30, 0xd8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
15*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
16*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd5, 0x58, 0x58, 0x58, 0x58, 0x58,
17*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
18*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xcc, 0x46, 0x52, 0x55, 0x20, 0x56, 0x65, 0x72,
19*c0216b94SPeter Delevoryas     0x20, 0x30, 0x2e, 0x30, 0x32, 0xc0, 0xc0, 0xc0, 0xc1, 0x00, 0x00, 0x2f,
20*c0216b94SPeter Delevoryas     0x01, 0x11, 0x19, 0xc8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
21*c0216b94SPeter Delevoryas     0xdd, 0x4d, 0x65, 0x6c, 0x6c, 0x61, 0x6e, 0x6f, 0x78, 0x20, 0x43, 0x6f,
22*c0216b94SPeter Delevoryas     0x6e, 0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0x20,
23*c0216b94SPeter Delevoryas     0x4f, 0x43, 0x50, 0x33, 0x2e, 0x30, 0xd5, 0x58, 0x58, 0x58, 0x58, 0x58,
24*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
25*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xd3, 0x41, 0x39, 0x20, 0x20, 0x20, 0x20, 0x20,
26*c0216b94SPeter Delevoryas     0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
27*c0216b94SPeter Delevoryas     0xd8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
28*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
29*c0216b94SPeter Delevoryas     0x58, 0xc0, 0xc0, 0xc0, 0xc0, 0xcd, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
30*c0216b94SPeter Delevoryas     0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0xc1, 0x00, 0x00, 0x00, 0x00,
31*c0216b94SPeter Delevoryas     0x00, 0x00, 0x00, 0xdb, 0xc0, 0x82, 0x30, 0x15, 0x79, 0x7f, 0xa6, 0x00,
32*c0216b94SPeter Delevoryas     0x01, 0x18, 0x0b, 0xff, 0x08, 0x00, 0xff, 0xff, 0x64, 0x00, 0x00, 0x00,
33*c0216b94SPeter Delevoryas     0x00, 0x03, 0x20, 0x01, 0xff, 0xff, 0x04, 0x46, 0x00, 0xff, 0xff, 0xff,
34*c0216b94SPeter Delevoryas     0xff, 0xff, 0xff, 0xff, 0x01, 0x81, 0x09, 0x15, 0xb3, 0x10, 0x1d, 0x00,
35*c0216b94SPeter Delevoryas     0x24, 0x15, 0xb3, 0x00, 0x02, 0xeb, 0x8a, 0x95, 0x5c,
36*c0216b94SPeter Delevoryas };
37*c0216b94SPeter Delevoryas 
38*c0216b94SPeter Delevoryas const uint8_t fby35_bb_fruid[] = {
39*c0216b94SPeter Delevoryas     0x01, 0x00, 0x01, 0x03, 0x10, 0x00, 0x00, 0xeb, 0x01, 0x02, 0x17, 0xc3,
40*c0216b94SPeter Delevoryas     0x4e, 0x2f, 0x41, 0xc3, 0x4e, 0x2f, 0x41, 0xc1, 0x00, 0x00, 0x00, 0x23,
41*c0216b94SPeter Delevoryas     0x01, 0x0d, 0x00, 0xb6, 0xd2, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58,
42*c0216b94SPeter Delevoryas     0x58, 0xd5, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74,
43*c0216b94SPeter Delevoryas     0x20, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x20, 0x77, 0x42, 0x4d, 0x43, 0xcd,
44*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
45*c0216b94SPeter Delevoryas     0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
46*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9, 0x58, 0x58, 0x58,
47*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x58, 0x58, 0x58, 0x58, 0x58,
48*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
49*c0216b94SPeter Delevoryas     0x58, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x01, 0x0c, 0x00, 0xc6,
50*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x59, 0x6f, 0x73, 0x65, 0x6d,
51*c0216b94SPeter Delevoryas     0x69, 0x74, 0x65, 0x20, 0x56, 0x33, 0x2e, 0x35, 0x20, 0x45, 0x56, 0x54,
52*c0216b94SPeter Delevoryas     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
53*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc4, 0x45, 0x56, 0x54, 0x32, 0xcd, 0x58, 0x58,
54*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
55*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
56*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x4e, 0x2f,
57*c0216b94SPeter Delevoryas     0x41, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43,
58*c0216b94SPeter Delevoryas };
59*c0216b94SPeter Delevoryas 
60*c0216b94SPeter Delevoryas const uint8_t fby35_bmc_fruid[] = {
61*c0216b94SPeter Delevoryas     0x01, 0x00, 0x00, 0x01, 0x0d, 0x00, 0x00, 0xf1, 0x01, 0x0c, 0x00, 0x36,
62*c0216b94SPeter Delevoryas     0xe6, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x42, 0x4d,
63*c0216b94SPeter Delevoryas     0x43, 0x20, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x4d, 0x6f,
64*c0216b94SPeter Delevoryas     0x64, 0x75, 0x6c, 0x65, 0xcd, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
65*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58,
66*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e,
67*c0216b94SPeter Delevoryas     0x30, 0xc9, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2,
68*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
69*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc1, 0x39, 0x01, 0x0c, 0x00, 0xc6,
70*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x59, 0x6f, 0x73, 0x65, 0x6d,
71*c0216b94SPeter Delevoryas     0x69, 0x74, 0x65, 0x20, 0x56, 0x33, 0x2e, 0x35, 0x20, 0x45, 0x56, 0x54,
72*c0216b94SPeter Delevoryas     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
73*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc4, 0x45, 0x56, 0x54, 0x32, 0xcd, 0x58, 0x58,
74*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
75*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
76*c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc8, 0x43, 0x6f,
77*c0216b94SPeter Delevoryas     0x6e, 0x66, 0x69, 0x67, 0x20, 0x41, 0xc1, 0x45,
78*c0216b94SPeter Delevoryas };
79*c0216b94SPeter Delevoryas 
80*c0216b94SPeter Delevoryas const size_t fby35_nic_fruid_len = sizeof(fby35_nic_fruid);
81*c0216b94SPeter Delevoryas const size_t fby35_bb_fruid_len = sizeof(fby35_bb_fruid);
82*c0216b94SPeter Delevoryas const size_t fby35_bmc_fruid_len = sizeof(fby35_bmc_fruid);
83