Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
hdmi.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/err.h>
#include <linux/io.h>
#include <linux/interrupt.h>
#include <linux/mutex.h>
#include <linux/delay.h>
#include <linux/string.h>
#include <linux/platform_device.h>
#include <linux/pm_runtime.h>
#include <linux/clk.h>
#include <linux/gpio.h>
#include <linux/regulator/consumer.h>
#include <video/omapdss.h>
#include "ti_hdmi.h"
#include "dss.h"
#include "dss_features.h"

Go to the source code of this file.

Macros

#define DSS_SUBSYS_NAME   "HDMI"
 
#define HDMI_WP   0x0
 
#define HDMI_CORE_SYS   0x400
 
#define HDMI_CORE_AV   0x900
 
#define HDMI_PLLCTRL   0x200
 
#define HDMI_PHY   0x300
 
#define HDMI_EDID_MAX_LENGTH   256
 
#define EDID_TIMING_DESCRIPTOR_SIZE   0x12
 
#define EDID_DESCRIPTOR_BLOCK0_ADDRESS   0x36
 
#define EDID_DESCRIPTOR_BLOCK1_ADDRESS   0x80
 
#define EDID_SIZE_BLOCK0_TIMING_DESCRIPTOR   4
 
#define EDID_SIZE_BLOCK1_TIMING_DESCRIPTOR   4
 
#define HDMI_DEFAULT_REGN   16
 
#define HDMI_DEFAULT_REGM2   1
 

Functions

unsigned long hdmi_get_pixel_clock (void)
 
int omapdss_hdmi_display_check_timing (struct omap_dss_device *dssdev, struct omap_video_timings *timings)
 
void omapdss_hdmi_display_set_timing (struct omap_dss_device *dssdev, struct omap_video_timings *timings)
 
int omapdss_hdmi_read_edid (u8 *buf, int len)
 
bool omapdss_hdmi_detect (void)
 
int omapdss_hdmi_display_enable (struct omap_dss_device *dssdev)
 
void omapdss_hdmi_display_disable (struct omap_dss_device *dssdev)
 
int __init hdmi_init_platform_driver (void)
 
void __exit hdmi_uninit_platform_driver (void)
 

Macro Definition Documentation

#define DSS_SUBSYS_NAME   "HDMI"

Definition at line 22 of file hdmi.c.

#define EDID_DESCRIPTOR_BLOCK0_ADDRESS   0x36

Definition at line 52 of file hdmi.c.

#define EDID_DESCRIPTOR_BLOCK1_ADDRESS   0x80

Definition at line 53 of file hdmi.c.

#define EDID_SIZE_BLOCK0_TIMING_DESCRIPTOR   4

Definition at line 54 of file hdmi.c.

#define EDID_SIZE_BLOCK1_TIMING_DESCRIPTOR   4

Definition at line 55 of file hdmi.c.

#define EDID_TIMING_DESCRIPTOR_SIZE   0x12

Definition at line 51 of file hdmi.c.

#define HDMI_CORE_AV   0x900

Definition at line 45 of file hdmi.c.

#define HDMI_CORE_SYS   0x400

Definition at line 44 of file hdmi.c.

#define HDMI_DEFAULT_REGM2   1

Definition at line 58 of file hdmi.c.

#define HDMI_DEFAULT_REGN   16

Definition at line 57 of file hdmi.c.

#define HDMI_EDID_MAX_LENGTH   256

Definition at line 50 of file hdmi.c.

#define HDMI_PHY   0x300

Definition at line 47 of file hdmi.c.

#define HDMI_PLLCTRL   0x200

Definition at line 46 of file hdmi.c.

#define HDMI_WP   0x0

Definition at line 43 of file hdmi.c.

Function Documentation

unsigned long hdmi_get_pixel_clock ( void  )

Definition at line 446 of file hdmi.c.

int __init hdmi_init_platform_driver ( void  )

Definition at line 1111 of file hdmi.c.

void __exit hdmi_uninit_platform_driver ( void  )

Definition at line 1116 of file hdmi.c.

bool omapdss_hdmi_detect ( void  )

Definition at line 678 of file hdmi.c.

int omapdss_hdmi_display_check_timing ( struct omap_dss_device dssdev,
struct omap_video_timings timings 
)

Definition at line 611 of file hdmi.c.

void omapdss_hdmi_display_disable ( struct omap_dss_device dssdev)

Definition at line 734 of file hdmi.c.

int omapdss_hdmi_display_enable ( struct omap_dss_device dssdev)

Definition at line 695 of file hdmi.c.

void omapdss_hdmi_display_set_timing ( struct omap_dss_device dssdev,
struct omap_video_timings timings 
)

Definition at line 625 of file hdmi.c.

int omapdss_hdmi_read_edid ( u8 buf,
int  len 
)

Definition at line 661 of file hdmi.c.

Variable Documentation

int ct_cp_hpd_gpio

Definition at line 68 of file hdmi.c.

int hpd_gpio

Definition at line 70 of file hdmi.c.

Definition at line 63 of file hdmi.c.

struct mutex lock

Definition at line 61 of file hdmi.c.

int ls_oe_gpio

Definition at line 69 of file hdmi.c.

Definition at line 72 of file hdmi.c.

Definition at line 62 of file hdmi.c.

struct clk* sys_clk

Definition at line 65 of file hdmi.c.

struct regulator* vdda_hdmi_dac_reg

Definition at line 66 of file hdmi.c.