xref: /openbmc/qemu/hw/arm/aspeed_eeprom.c (revision 6c323aba)
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 
9*6c323abaSKarthikeyan Pasupathi /* Tiogapass BMC FRU */
10*6c323abaSKarthikeyan Pasupathi const uint8_t tiogapass_bmc_fruid[] = {
11*6c323abaSKarthikeyan Pasupathi     0x01, 0x00, 0x00, 0x01, 0x0d, 0x00, 0x00, 0xf1, 0x01, 0x0c, 0x00, 0x36,
12*6c323abaSKarthikeyan Pasupathi     0xe6, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x42, 0x4d,
13*6c323abaSKarthikeyan Pasupathi     0x43, 0x20, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x4d, 0x6f,
14*6c323abaSKarthikeyan Pasupathi     0x64, 0x75, 0x6c, 0x65, 0xcd, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
15*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58,
16*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e,
17*6c323abaSKarthikeyan Pasupathi     0x30, 0xc9, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2,
18*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
19*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc1, 0x39, 0x01, 0x0c, 0x00, 0xc6,
20*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x54, 0x69, 0x6f, 0x67, 0x61,
21*6c323abaSKarthikeyan Pasupathi     0x20, 0x50, 0x61, 0x73, 0x73, 0x20, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65,
22*6c323abaSKarthikeyan Pasupathi     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
23*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0xc4, 0x58, 0x58, 0x58, 0x32, 0xcd, 0x58, 0x58,
24*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
25*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
26*6c323abaSKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc8, 0x43, 0x6f,
27*6c323abaSKarthikeyan Pasupathi     0x6e, 0x66, 0x69, 0x67, 0x20, 0x41, 0xc1, 0x45,
28*6c323abaSKarthikeyan Pasupathi };
29*6c323abaSKarthikeyan Pasupathi 
30c0216b94SPeter Delevoryas const uint8_t fby35_nic_fruid[] = {
31c0216b94SPeter Delevoryas     0x01, 0x00, 0x00, 0x01, 0x0f, 0x20, 0x00, 0xcf, 0x01, 0x0e, 0x19, 0xd7,
32c0216b94SPeter Delevoryas     0x5e, 0xcf, 0xc8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xdd,
33c0216b94SPeter Delevoryas     0x4d, 0x65, 0x6c, 0x6c, 0x61, 0x6e, 0x6f, 0x78, 0x20, 0x43, 0x6f, 0x6e,
34c0216b94SPeter Delevoryas     0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0x20, 0x4f,
35c0216b94SPeter Delevoryas     0x43, 0x50, 0x33, 0x2e, 0x30, 0xd8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
36c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
37c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd5, 0x58, 0x58, 0x58, 0x58, 0x58,
38c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
39c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xcc, 0x46, 0x52, 0x55, 0x20, 0x56, 0x65, 0x72,
40c0216b94SPeter Delevoryas     0x20, 0x30, 0x2e, 0x30, 0x32, 0xc0, 0xc0, 0xc0, 0xc1, 0x00, 0x00, 0x2f,
41c0216b94SPeter Delevoryas     0x01, 0x11, 0x19, 0xc8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
42c0216b94SPeter Delevoryas     0xdd, 0x4d, 0x65, 0x6c, 0x6c, 0x61, 0x6e, 0x6f, 0x78, 0x20, 0x43, 0x6f,
43c0216b94SPeter Delevoryas     0x6e, 0x6e, 0x65, 0x63, 0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0x20,
44c0216b94SPeter Delevoryas     0x4f, 0x43, 0x50, 0x33, 0x2e, 0x30, 0xd5, 0x58, 0x58, 0x58, 0x58, 0x58,
45c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
46c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xd3, 0x41, 0x39, 0x20, 0x20, 0x20, 0x20, 0x20,
47c0216b94SPeter Delevoryas     0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20,
48c0216b94SPeter Delevoryas     0xd8, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
49c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
50c0216b94SPeter Delevoryas     0x58, 0xc0, 0xc0, 0xc0, 0xc0, 0xcd, 0x43, 0x6f, 0x6e, 0x6e, 0x65, 0x63,
51c0216b94SPeter Delevoryas     0x74, 0x58, 0x2d, 0x36, 0x20, 0x44, 0x58, 0xc1, 0x00, 0x00, 0x00, 0x00,
52c0216b94SPeter Delevoryas     0x00, 0x00, 0x00, 0xdb, 0xc0, 0x82, 0x30, 0x15, 0x79, 0x7f, 0xa6, 0x00,
53c0216b94SPeter Delevoryas     0x01, 0x18, 0x0b, 0xff, 0x08, 0x00, 0xff, 0xff, 0x64, 0x00, 0x00, 0x00,
54c0216b94SPeter Delevoryas     0x00, 0x03, 0x20, 0x01, 0xff, 0xff, 0x04, 0x46, 0x00, 0xff, 0xff, 0xff,
55c0216b94SPeter Delevoryas     0xff, 0xff, 0xff, 0xff, 0x01, 0x81, 0x09, 0x15, 0xb3, 0x10, 0x1d, 0x00,
56c0216b94SPeter Delevoryas     0x24, 0x15, 0xb3, 0x00, 0x02, 0xeb, 0x8a, 0x95, 0x5c,
57c0216b94SPeter Delevoryas };
58c0216b94SPeter Delevoryas 
59c0216b94SPeter Delevoryas const uint8_t fby35_bb_fruid[] = {
60c0216b94SPeter Delevoryas     0x01, 0x00, 0x01, 0x03, 0x10, 0x00, 0x00, 0xeb, 0x01, 0x02, 0x17, 0xc3,
61c0216b94SPeter Delevoryas     0x4e, 0x2f, 0x41, 0xc3, 0x4e, 0x2f, 0x41, 0xc1, 0x00, 0x00, 0x00, 0x23,
62c0216b94SPeter Delevoryas     0x01, 0x0d, 0x00, 0xb6, 0xd2, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58,
63c0216b94SPeter Delevoryas     0x58, 0xd5, 0x4d, 0x61, 0x6e, 0x61, 0x67, 0x65, 0x6d, 0x65, 0x6e, 0x74,
64c0216b94SPeter Delevoryas     0x20, 0x42, 0x6f, 0x61, 0x72, 0x64, 0x20, 0x77, 0x42, 0x4d, 0x43, 0xcd,
65c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
66c0216b94SPeter Delevoryas     0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
67c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9, 0x58, 0x58, 0x58,
68c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x58, 0x58, 0x58, 0x58, 0x58,
69c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
70c0216b94SPeter Delevoryas     0x58, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0xa8, 0x01, 0x0c, 0x00, 0xc6,
71c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x59, 0x6f, 0x73, 0x65, 0x6d,
72c0216b94SPeter Delevoryas     0x69, 0x74, 0x65, 0x20, 0x56, 0x33, 0x2e, 0x35, 0x20, 0x45, 0x56, 0x54,
73c0216b94SPeter Delevoryas     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
74c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc4, 0x45, 0x56, 0x54, 0x32, 0xcd, 0x58, 0x58,
75c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
76c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
77c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x4e, 0x2f,
78c0216b94SPeter Delevoryas     0x41, 0xc1, 0x00, 0x00, 0x00, 0x00, 0x00, 0x43,
79c0216b94SPeter Delevoryas };
80c0216b94SPeter Delevoryas 
81c0216b94SPeter Delevoryas const uint8_t fby35_bmc_fruid[] = {
82c0216b94SPeter Delevoryas     0x01, 0x00, 0x00, 0x01, 0x0d, 0x00, 0x00, 0xf1, 0x01, 0x0c, 0x00, 0x36,
83c0216b94SPeter Delevoryas     0xe6, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x42, 0x4d,
84c0216b94SPeter Delevoryas     0x43, 0x20, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x4d, 0x6f,
85c0216b94SPeter Delevoryas     0x64, 0x75, 0x6c, 0x65, 0xcd, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
86c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58,
87c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e,
88c0216b94SPeter Delevoryas     0x30, 0xc9, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2,
89c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
90c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc1, 0x39, 0x01, 0x0c, 0x00, 0xc6,
91c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x59, 0x6f, 0x73, 0x65, 0x6d,
92c0216b94SPeter Delevoryas     0x69, 0x74, 0x65, 0x20, 0x56, 0x33, 0x2e, 0x35, 0x20, 0x45, 0x56, 0x54,
93c0216b94SPeter Delevoryas     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
94c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0xc4, 0x45, 0x56, 0x54, 0x32, 0xcd, 0x58, 0x58,
95c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
96c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
97c0216b94SPeter Delevoryas     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc8, 0x43, 0x6f,
98c0216b94SPeter Delevoryas     0x6e, 0x66, 0x69, 0x67, 0x20, 0x41, 0xc1, 0x45,
99c0216b94SPeter Delevoryas };
100c0216b94SPeter Delevoryas 
10134f73a81SKarthikeyan Pasupathi /* Yosemite V2 BMC FRU */
10234f73a81SKarthikeyan Pasupathi const uint8_t yosemitev2_bmc_fruid[] = {
10334f73a81SKarthikeyan Pasupathi     0x01, 0x00, 0x00, 0x01, 0x0d, 0x00, 0x00, 0xf1, 0x01, 0x0c, 0x00, 0x36,
10434f73a81SKarthikeyan Pasupathi     0xe6, 0xd0, 0xc6, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x42, 0x4d,
10534f73a81SKarthikeyan Pasupathi     0x43, 0x20, 0x53, 0x74, 0x6f, 0x72, 0x61, 0x67, 0x65, 0x20, 0x4d, 0x6f,
10634f73a81SKarthikeyan Pasupathi     0x64, 0x75, 0x6c, 0x65, 0xcd, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
10734f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58,
10834f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e,
10934f73a81SKarthikeyan Pasupathi     0x30, 0xc9, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2,
11034f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
11134f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc1, 0x39, 0x01, 0x0c, 0x00, 0xc6,
11234f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xd2, 0x59, 0x6f, 0x73, 0x65, 0x6d,
11334f73a81SKarthikeyan Pasupathi     0x69, 0x74, 0x65, 0x20, 0x56, 0x32, 0x2e, 0x30, 0x20, 0x45, 0x56, 0x54,
11434f73a81SKarthikeyan Pasupathi     0x32, 0xce, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58,
11534f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0xc4, 0x45, 0x56, 0x54, 0x32, 0xcd, 0x58, 0x58,
11634f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc7,
11734f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc3, 0x31, 0x2e, 0x30, 0xc9,
11834f73a81SKarthikeyan Pasupathi     0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0x58, 0xc8, 0x43, 0x6f,
11934f73a81SKarthikeyan Pasupathi     0x6e, 0x66, 0x69, 0x67, 0x20, 0x41, 0xc1, 0x45,
12034f73a81SKarthikeyan Pasupathi };
12134f73a81SKarthikeyan Pasupathi 
122*6c323abaSKarthikeyan Pasupathi const size_t tiogapass_bmc_fruid_len = sizeof(tiogapass_bmc_fruid);
123c0216b94SPeter Delevoryas const size_t fby35_nic_fruid_len = sizeof(fby35_nic_fruid);
124c0216b94SPeter Delevoryas const size_t fby35_bb_fruid_len = sizeof(fby35_bb_fruid);
125c0216b94SPeter Delevoryas const size_t fby35_bmc_fruid_len = sizeof(fby35_bmc_fruid);
12634f73a81SKarthikeyan Pasupathi 
12734f73a81SKarthikeyan Pasupathi const size_t yosemitev2_bmc_fruid_len = sizeof(yosemitev2_bmc_fruid);
128