linux/drivers/gpu/drm/msm/hdmi/hdmi.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2014 The Linux Foundation. All rights reserved.
 * Copyright (C) 2013 Red Hat
 * Author: Rob Clark <[email protected]>
 */

#include <linux/gpio/consumer.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>

#include <drm/drm_bridge_connector.h>
#include <drm/drm_of.h>

#include <sound/hdmi-codec.h>
#include "hdmi.h"

void msm_hdmi_set_mode(struct hdmi *hdmi, bool power_on)
{}

static irqreturn_t msm_hdmi_irq(int irq, void *dev_id)
{}

static void msm_hdmi_destroy(struct hdmi *hdmi)
{}

static void msm_hdmi_put_phy(struct hdmi *hdmi)
{}

static int msm_hdmi_get_phy(struct hdmi *hdmi)
{}

/* construct hdmi at bind/probe time, grab all the resources.  If
 * we are to EPROBE_DEFER we want to do it here, rather than later
 * at modeset_init() time
 */
static int msm_hdmi_init(struct hdmi *hdmi)
{}

/* Second part of initialization, the drm/kms level modeset_init,
 * constructs/initializes mode objects, etc, is called from master
 * driver (not hdmi sub-device's probe/bind!)
 *
 * Any resource (regulator/clk/etc) which could be missing at boot
 * should be handled in msm_hdmi_init() so that failure happens from
 * hdmi sub-device's probe.
 */
int msm_hdmi_modeset_init(struct hdmi *hdmi,
		struct drm_device *dev, struct drm_encoder *encoder)
{}

/*
 * The hdmi device:
 */

#define HDMI_CFG(item, entry)

static const char *hpd_reg_names_8960[] =;
static const char *hpd_clk_names_8960[] =;

static const struct hdmi_platform_config hdmi_tx_8960_config =;

static const char *pwr_reg_names_8x74[] =;
static const char *pwr_clk_names_8x74[] =;
static const char *hpd_clk_names_8x74[] =;
static unsigned long hpd_clk_freq_8x74[] =;

static const struct hdmi_platform_config hdmi_tx_8974_config =;

/*
 * HDMI audio codec callbacks
 */
static int msm_hdmi_audio_hw_params(struct device *dev, void *data,
				    struct hdmi_codec_daifmt *daifmt,
				    struct hdmi_codec_params *params)
{}

static void msm_hdmi_audio_shutdown(struct device *dev, void *data)
{}

static const struct hdmi_codec_ops msm_hdmi_audio_codec_ops =;

static struct hdmi_codec_pdata codec_data =;

static int msm_hdmi_register_audio_driver(struct hdmi *hdmi, struct device *dev)
{}

static int msm_hdmi_bind(struct device *dev, struct device *master, void *data)
{}

static void msm_hdmi_unbind(struct device *dev, struct device *master,
		void *data)
{}

static const struct component_ops msm_hdmi_ops =;

static int msm_hdmi_dev_probe(struct platform_device *pdev)
{}

static void msm_hdmi_dev_remove(struct platform_device *pdev)
{}

static const struct of_device_id msm_hdmi_dt_match[] =;

static struct platform_driver msm_hdmi_driver =;

void __init msm_hdmi_register(void)
{}

void __exit msm_hdmi_unregister(void)
{}