linux/drivers/ata/ahci_qoriq.c

// SPDX-License-Identifier: GPL-2.0-or-later
/*
 * Freescale QorIQ AHCI SATA platform driver
 *
 * Copyright 2015 Freescale, Inc.
 *   Tang Yuantian <[email protected]>
 */

#include <linux/acpi.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/pm.h>
#include <linux/ahci_platform.h>
#include <linux/device.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <linux/libata.h>
#include "ahci.h"

#define DRV_NAME

/* port register definition */
#define PORT_PHY1
#define PORT_PHY2
#define PORT_PHY3
#define PORT_PHY4
#define PORT_PHY5
#define PORT_AXICC
#define PORT_TRANS

/* port register default value */
#define AHCI_PORT_PHY_1_CFG
#define AHCI_PORT_PHY2_CFG
#define AHCI_PORT_PHY3_CFG
#define AHCI_PORT_TRANS_CFG
#define AHCI_PORT_AXICC_CFG

/* for ls1021a */
#define LS1021A_PORT_PHY2
#define LS1021A_PORT_PHY3
#define LS1021A_PORT_PHY4
#define LS1021A_PORT_PHY5
#define LS1021A_AXICC_ADDR

#define SATA_ECC_DISABLE
#define ECC_DIS_ARMV8_CH2
#define ECC_DIS_LS1088A

enum ahci_qoriq_type {};

struct ahci_qoriq_priv {};

static bool ecc_initialized;

static const struct of_device_id ahci_qoriq_of_match[] =;
MODULE_DEVICE_TABLE(of, ahci_qoriq_of_match);

static const struct acpi_device_id ahci_qoriq_acpi_match[] =;
MODULE_DEVICE_TABLE(acpi, ahci_qoriq_acpi_match);

static int ahci_qoriq_hardreset(struct ata_link *link, unsigned int *class,
			  unsigned long deadline)
{}

static struct ata_port_operations ahci_qoriq_ops =;

static const struct ata_port_info ahci_qoriq_port_info =;

static const struct scsi_host_template ahci_qoriq_sht =;

static int ahci_qoriq_phy_init(struct ahci_host_priv *hpriv)
{}

static int ahci_qoriq_probe(struct platform_device *pdev)
{}

#ifdef CONFIG_PM_SLEEP
static int ahci_qoriq_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(ahci_qoriq_pm_ops, ahci_platform_suspend,
			 ahci_qoriq_resume);

static struct platform_driver ahci_qoriq_driver =;
module_platform_driver();

MODULE_DESCRIPTION();
MODULE_AUTHOR();
MODULE_LICENSE();