blob: 79ff01c6ab258d2319e74347a554df2a152affd1 [file] [log] [blame]
Przemyslaw Marczak58cb44c2015-11-04 18:30:09 +01001/*
2 * Copyright (C) 2015 Samsung Electronics
3 * Przemyslaw Marczak <p.marczak@samsung.com>
4 *
5 * SPDX-License-Identifier: GPL-2.0+
6 */
7
8#ifndef _SANDBOX_ADC_H_
9#define _SANDBOX_ADC_H_
10
11#define SANDBOX_ADC_DEVNAME "adc@0"
12#define SANDBOX_ADC_DATA_MASK 0xffff /* 16-bits resolution */
13#define SANDBOX_ADC_CHANNELS 4
14#define SANDBOX_ADC_CHANNEL0_DATA 0x0
15#define SANDBOX_ADC_CHANNEL1_DATA 0x1000
16#define SANDBOX_ADC_CHANNEL2_DATA 0x2000
17#define SANDBOX_ADC_CHANNEL3_DATA 0x3000
18
19enum sandbox_adc_mode {
20 SANDBOX_ADC_MODE_SINGLE_CHANNEL = 0,
21 SANDBOX_ADC_MODE_MULTI_CHANNEL,
22};
23
24enum sandbox_adc_status {
25 SANDBOX_ADC_INACTIVE = 0,
26 SANDBOX_ADC_ACTIVE,
27};
28
29#define SANDBOX_ADC_VSS_VALUE 0
30
31#endif