sh_eth: fix EESIPR values for SH77{34|63}
[linux/fpc-iii.git] / drivers / iio / adc / stm32-adc-core.h
blob081fa5f55015889105ecf4b59b3e82e400e942ad
1 /*
2 * This file is part of STM32 ADC driver
4 * Copyright (C) 2016, STMicroelectronics - All Rights Reserved
5 * Author: Fabrice Gasnier <fabrice.gasnier@st.com>.
7 * License type: GPLv2
9 * This program is free software; you can redistribute it and/or modify it
10 * under the terms of the GNU General Public License version 2 as published by
11 * the Free Software Foundation.
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
15 * or FITNESS FOR A PARTICULAR PURPOSE.
16 * See the GNU General Public License for more details.
18 * You should have received a copy of the GNU General Public License along with
19 * this program. If not, see <http://www.gnu.org/licenses/>.
22 #ifndef __STM32_ADC_H
23 #define __STM32_ADC_H
26 * STM32 - ADC global register map
27 * ________________________________________________________
28 * | Offset | Register |
29 * --------------------------------------------------------
30 * | 0x000 | Master ADC1 |
31 * --------------------------------------------------------
32 * | 0x100 | Slave ADC2 |
33 * --------------------------------------------------------
34 * | 0x200 | Slave ADC3 |
35 * --------------------------------------------------------
36 * | 0x300 | Master & Slave common regs |
37 * --------------------------------------------------------
39 #define STM32_ADC_MAX_ADCS 3
40 #define STM32_ADCX_COMN_OFFSET 0x300
42 /**
43 * struct stm32_adc_common - stm32 ADC driver common data (for all instances)
44 * @base: control registers base cpu addr
45 * @vref_mv: vref voltage (mv)
47 struct stm32_adc_common {
48 void __iomem *base;
49 int vref_mv;
52 #endif