~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to drivers/staging/iio/adc/ad7780.h

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-tz023xykf0i6eosh
Tags: upstream-3.2.0
ImportĀ upstreamĀ versionĀ 3.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * AD7780/AD7781 SPI ADC driver
 
3
 *
 
4
 * Copyright 2011 Analog Devices Inc.
 
5
 *
 
6
 * Licensed under the GPL-2.
 
7
 */
 
8
#ifndef IIO_ADC_AD7780_H_
 
9
#define IIO_ADC_AD7780_H_
 
10
 
 
11
/*
 
12
 * TODO: struct ad7780_platform_data needs to go into include/linux/iio
 
13
 */
 
14
 
 
15
/* NOTE:
 
16
 * The AD7780 doesn't feature a dedicated SPI chip select, in addition it
 
17
 * features a dual use data out ready DOUT/RDY output.
 
18
 * In order to avoid contentions on the SPI bus, it's therefore necessary
 
19
 * to use spi bus locking combined with a dedicated GPIO to control the
 
20
 * power down reset signal of the AD7780.
 
21
 *
 
22
 * The DOUT/RDY output must also be wired to an interrupt capable GPIO.
 
23
 */
 
24
 
 
25
struct ad7780_platform_data {
 
26
        u16                             vref_mv;
 
27
        int                             gpio_pdrst;
 
28
};
 
29
 
 
30
#endif /* IIO_ADC_AD7780_H_ */