blob: fd3fd1d50586468bc8d0e372c45a49cf193b2422 [file] [log] [blame]
Matt Spinlerb54357f2017-08-21 14:38:54 -05001/**
2 * Copyright © 2017 IBM Corporation
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16#include "ucd90160.hpp"
17
18//Separated out to facilitate possible future generation of file.
19
20namespace witherspoon
21{
22namespace power
23{
24
25using namespace ucd90160;
26using namespace std::string_literals;
27
28const DeviceMap UCD90160::deviceMap
29{
30 {0, DeviceDefinition{
31 "/sys/devices/platform/ahb/ahb:apb/ahb:apb:i2c@1e78a000/"
Matt Spinlere7e432b2017-08-21 15:01:40 -050032 "1e78a400.i2c-bus/i2c-11/11-0064",
33
34 RailNames{
35 "5.0VCS"s,
36 "12.0V"s,
37 "3.3V"s,
38 "1.8V"s,
39 "1.1V"s,
40 "1.0V"s,
41 "0.9V"s,
42 "VDN-A"s,
43 "VDN-B"s,
44 "AVDD"s,
45 "VIO-A"s,
46 "VIO-B"s,
47 "VDD-A"s,
48 "VDD-B"s,
49 "VCS-A"s,
50 "VCS-B"s
Matt Spinlerd998b732017-08-21 15:35:54 -050051 },
52
53 GPIConfigs{
54 GPIConfig{1, 8, "PGOOD_5P0V"s, false},
55 GPIConfig{2, 9, "MEM_GOOD0"s, false},
56 GPIConfig{3, 10, "MEM_GOOD1"s, false},
57 GPIConfig{4, 14, "GPU_PGOOD"s, true},
58 GPIConfig{5, 17, "GPU_TH_OVERT"s, true},
59 GPIConfig{6, 11, "SOFTWARE_PGOOD"s, false}
Matt Spinlere7e432b2017-08-21 15:01:40 -050060 }
61 }
Matt Spinlerb54357f2017-08-21 14:38:54 -050062 }
63};
64
65}
66}