2020-04-05 15:46:45 +02:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0-only */
|
2015-05-06 00:07:29 +02:00
|
|
|
|
|
|
|
#include <soc/pci_devs.h>
|
|
|
|
#include <soc/ramstage.h>
|
|
|
|
#include <soc/sata.h>
|
|
|
|
#include <console/console.h>
|
|
|
|
#include <device/device.h>
|
|
|
|
#include <device/pci.h>
|
|
|
|
#include <device/pci_ids.h>
|
|
|
|
|
|
|
|
#include "chip.h"
|
|
|
|
|
2015-04-21 00:20:28 +02:00
|
|
|
typedef struct soc_intel_braswell_config config_t;
|
2015-05-06 00:07:29 +02:00
|
|
|
|
|
|
|
static void sata_init(struct device *dev)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2018-05-24 22:29:44 +02:00
|
|
|
static void sata_enable(struct device *dev)
|
2015-05-06 00:07:29 +02:00
|
|
|
{
|
|
|
|
southcluster_enable_dev(dev);
|
|
|
|
}
|
|
|
|
|
|
|
|
static struct device_operations sata_ops = {
|
|
|
|
.read_resources = pci_dev_read_resources,
|
|
|
|
.set_resources = pci_dev_set_resources,
|
|
|
|
.enable_resources = pci_dev_enable_resources,
|
|
|
|
.init = sata_init,
|
|
|
|
.enable = sata_enable,
|
|
|
|
.ops_pci = &soc_pci_ops,
|
|
|
|
};
|
|
|
|
|
|
|
|
static const unsigned short pci_device_ids[] = {
|
2015-04-21 00:20:28 +02:00
|
|
|
AHCI1_DEVID, /* AHCI */
|
2015-05-06 00:07:29 +02:00
|
|
|
0,
|
|
|
|
};
|
|
|
|
|
2015-04-21 00:20:28 +02:00
|
|
|
static const struct pci_driver soc_sata __pci_driver = {
|
2015-05-06 00:07:29 +02:00
|
|
|
.ops = &sata_ops,
|
|
|
|
.vendor = PCI_VENDOR_ID_INTEL,
|
|
|
|
.devices = pci_device_ids,
|
|
|
|
};
|