1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (c) 2008 Simtec Electronics
4 * http://armlinux.simtec.co.uk/
5 * Ben Dooks <ben@simtec.co.uk>
7 * S3C ADC driver information
10 #ifndef __ASM_PLAT_ADC_H
11 #define __ASM_PLAT_ADC_H __FILE__
13 struct s3c_adc_client
;
14 struct platform_device
;
16 extern int s3c_adc_start(struct s3c_adc_client
*client
,
17 unsigned int channel
, unsigned int nr_samples
);
19 extern int s3c_adc_read(struct s3c_adc_client
*client
, unsigned int ch
);
21 extern struct s3c_adc_client
*
22 s3c_adc_register(struct platform_device
*pdev
,
23 void (*select
)(struct s3c_adc_client
*client
,
25 void (*conv
)(struct s3c_adc_client
*client
,
26 unsigned d0
, unsigned d1
,
27 unsigned *samples_left
),
30 extern void s3c_adc_release(struct s3c_adc_client
*client
);
32 #endif /* __ASM_PLAT_ADC_H */