linux/drivers/ata/ahci_imx.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * copyright (c) 2013 Freescale Semiconductor, Inc.
 * Freescale IMX AHCI SATA platform driver
 *
 * based on the AHCI SATA platform driver by Jeff Garzik and Anton Vorontsov
 */

#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/property.h>
#include <linux/regmap.h>
#include <linux/ahci_platform.h>
#include <linux/gpio/consumer.h>
#include <linux/of.h>
#include <linux/mfd/syscon.h>
#include <linux/mfd/syscon/imx6q-iomuxc-gpr.h>
#include <linux/libata.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <linux/thermal.h>
#include "ahci.h"

#define DRV_NAME

enum {};

enum ahci_imx_type {};

struct imx_ahci_priv {};

static int ahci_imx_hotplug;
module_param_named(hotplug, ahci_imx_hotplug, int, 0644);
MODULE_PARM_DESC();

static void ahci_imx_host_stop(struct ata_host *host);

static int imx_phy_crbit_assert(void __iomem *mmio, u32 bit, bool assert)
{}

static int imx_phy_reg_addressing(u16 addr, void __iomem *mmio)
{}

static int imx_phy_reg_write(u16 val, void __iomem *mmio)
{}

static int imx_phy_reg_read(u16 *val, void __iomem *mmio)
{}

static int imx_sata_phy_reset(struct ahci_host_priv *hpriv)
{}

enum {};

static int read_adc_sum(void *dev, u16 rtune_ctl_reg, void __iomem * mmio)
{}

/* SATA AHCI temperature monitor */
static int __sata_ahci_read_temperature(void *dev, int *temp)
{}

static int sata_ahci_read_temperature(struct thermal_zone_device *tz, int *temp)
{}

static ssize_t sata_ahci_show_temp(struct device *dev,
				   struct device_attribute *da,
				   char *buf)
{}

static const struct thermal_zone_device_ops fsl_sata_ahci_of_thermal_ops =;

static SENSOR_DEVICE_ATTR(temp1_input, S_IRUGO, sata_ahci_show_temp, NULL, 0);

static struct attribute *fsl_sata_ahci_attrs[] =;
ATTRIBUTE_GROUPS();

static int imx8_sata_enable(struct ahci_host_priv *hpriv)
{}

static int imx_sata_enable(struct ahci_host_priv *hpriv)
{}

static void imx_sata_disable(struct ahci_host_priv *hpriv)
{}

static void ahci_imx_error_handler(struct ata_port *ap)
{}

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

static struct ata_port_operations ahci_imx_ops =;

static const struct ata_port_info ahci_imx_port_info =;

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

struct reg_value {};

struct reg_property {};

static const struct reg_value gpr13_tx_level[] =;

static const struct reg_value gpr13_tx_boost[] =;

static const struct reg_value gpr13_tx_atten[] =;

static const struct reg_value gpr13_rx_eq[] =;

static const struct reg_property gpr13_props[] =;

static u32 imx_ahci_parse_props(struct device *dev,
				const struct reg_property *prop, size_t num)
{}

static const struct scsi_host_template ahci_platform_sht =;

static int imx8_sata_probe(struct device *dev, struct imx_ahci_priv *imxpriv)
{}

static int imx_ahci_probe(struct platform_device *pdev)
{}

static void ahci_imx_host_stop(struct ata_host *host)
{}

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

static int imx_ahci_resume(struct device *dev)
{}
#endif

static SIMPLE_DEV_PM_OPS(ahci_imx_pm_ops, imx_ahci_suspend, imx_ahci_resume);

static struct platform_driver imx_ahci_driver =;
module_platform_driver();

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