Logo Search packages:      
Sourcecode: linux-fsl-imx51 version File versions  Download package

imx_adc.c File Reference


Detailed Description

This is the main file of i.MX ADC driver.

Definition in file imx_adc.c.

#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/poll.h>
#include <linux/sched.h>
#include <linux/time.h>
#include <linux/wait.h>
#include <linux/imx_adc.h>
#include "imx_adc_reg.h"

Go to the source code of this file.

Functions

static DECLARE_MUTEX (ts_convert_mutex)
static DECLARE_MUTEX (general_convert_mutex)
 EXPORT_SYMBOL (imx_adc_convert_multichnnel)
 EXPORT_SYMBOL (imx_adc_convert)
 EXPORT_SYMBOL (imx_adc_deinit)
 EXPORT_SYMBOL (imx_adc_init)
 EXPORT_SYMBOL (imx_adc_get_touch_sample)
 EXPORT_SYMBOL (is_imx_adc_ready)
enum IMX_ADC_STATUS imx_adc_convert (enum t_channel channel, unsigned short *result)
enum IMX_ADC_STATUS imx_adc_convert_multichnnel (enum t_channel channels, unsigned short *result)
enum IMX_ADC_STATUS imx_adc_deinit (void)
static int imx_adc_filter (struct t_touch_screen *ts_curr)
static int imx_adc_free (struct inode *inode, struct file *file)
enum IMX_ADC_STATUS imx_adc_get_touch_sample (struct t_touch_screen *touch_sample, int wait_tsi)
int imx_adc_init (void)
static irqreturn_t imx_adc_interrupt (int irq, void *dev_id)
static int imx_adc_ioctl (struct inode *inode, struct file *file, unsigned int cmd, unsigned long arg)
static void __exit imx_adc_module_exit (void)
static int __init imx_adc_module_init (void)
static int imx_adc_module_probe (struct platform_device *pdev)
static int imx_adc_module_remove (struct platform_device *pdev)
static int imx_adc_open (struct inode *inode, struct file *file)
enum IMX_ADC_STATUS imx_adc_read_general (unsigned short *result)
enum IMX_ADC_STATUS imx_adc_read_ts (struct t_touch_screen *touch_sample, int wait_tsi)
static int imx_adc_resume (struct platform_device *pdev)
static int imx_adc_suspend (struct platform_device *pdev, pm_message_t state)
void imx_tsc_init (void)
int is_imx_adc_ready (void)
 MODULE_AUTHOR ("Freescale Semiconductor, Inc.")
 MODULE_DESCRIPTION ("i.MX ADC device driver")
 module_exit (imx_adc_module_exit)
 module_init (imx_adc_module_init)
 MODULE_LICENSE ("GPL")
void tsc_clk_disable (void)
void tsc_clk_enable (void)
void tsc_intref_enable (void)
void tsc_self_reset (void)

Variables

static struct imx_adc_data * adc_data
static struct class * imx_adc_class
static struct platform_driver imx_adc_driver
static struct file_operations imx_adc_fops
static int imx_adc_major
static bool imx_adc_ready
static int suspend_flag
static wait_queue_head_t suspendq
static int swait
static unsigned short ts_data_buf [16]
static bool ts_data_ready
unsigned long tsc_base
static int tsi_data = TSI_DATA
static wait_queue_head_t tsq


Generated by  Doxygen 1.6.0   Back to index