2 * Copyright (C) 2015 Samsung Electronics
3 * Przemyslaw Marczak <p.marczak@samsung.com>
5 * SPDX-License-Identifier: GPL-2.0+
8 #ifndef _SANDBOX_ADC_H_
9 #define _SANDBOX_ADC_H_
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
19 enum sandbox_adc_mode {
20 SANDBOX_ADC_MODE_SINGLE_CHANNEL = 0,
21 SANDBOX_ADC_MODE_MULTI_CHANNEL,
24 enum sandbox_adc_status {
25 SANDBOX_ADC_INACTIVE = 0,
29 #define SANDBOX_ADC_VSS_VALUE 0