~pmdj/ubuntu/trusty/qemu/2.9+applesmc+fadtv3

« back to all changes in this revision

Viewing changes to roms/skiboot/platforms/ibm-fsp/apollo.c

  • Committer: Phil Dennis-Jordan
  • Date: 2017-07-21 08:03:43 UTC
  • mfrom: (1.1.1)
  • Revision ID: phil@philjordan.eu-20170721080343-2yr2vdj7713czahv
New upstream release 2.9.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright 2013-2014 IBM Corp.
 
2
 *
 
3
 * Licensed under the Apache License, Version 2.0 (the "License");
 
4
 * you may not use this file except in compliance with the License.
 
5
 * You may obtain a copy of the License at
 
6
 *
 
7
 *      http://www.apache.org/licenses/LICENSE-2.0
 
8
 *
 
9
 * Unless required by applicable law or agreed to in writing, software
 
10
 * distributed under the License is distributed on an "AS IS" BASIS,
 
11
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
 
12
 * implied.
 
13
 * See the License for the specific language governing permissions and
 
14
 * limitations under the License.
 
15
 */
 
16
 
 
17
 
 
18
#include <skiboot.h>
 
19
#include <device.h>
 
20
#include <fsp.h>
 
21
#include <pci.h>
 
22
#include <pci-slot.h>
 
23
 
 
24
#include "ibm-fsp.h"
 
25
#include "lxvpd.h"
 
26
 
 
27
static bool apollo_probe(void)
 
28
{
 
29
        return dt_node_is_compatible(dt_root, "ibm,apollo");
 
30
}
 
31
 
 
32
 
 
33
DECLARE_PLATFORM(apollo) = {
 
34
        .name                   = "Apollo",
 
35
        .probe                  = apollo_probe,
 
36
        .init                   = ibm_fsp_init,
 
37
        .exit                   = ibm_fsp_exit,
 
38
        .cec_power_down         = ibm_fsp_cec_power_down,
 
39
        .cec_reboot             = ibm_fsp_cec_reboot,
 
40
        .pci_setup_phb          = apollo_pci_setup_phb,
 
41
        .pci_get_slot_info      = apollo_pci_get_slot_info,
 
42
        .nvram_info             = fsp_nvram_info,
 
43
        .nvram_start_read       = fsp_nvram_start_read,
 
44
        .nvram_write            = fsp_nvram_write,
 
45
        .elog_commit            = elog_fsp_commit,
 
46
        .start_preload_resource = fsp_start_preload_resource,
 
47
        .resource_loaded        = fsp_resource_loaded,
 
48
        .sensor_read            = ibm_fsp_sensor_read,
 
49
        .terminate              = ibm_fsp_terminate,
 
50
};