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