2011-09-13 23:40:09 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
|
|
|
* Copyright (C) 2011 by Amaury Pouly
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
#ifndef _ADC_IMX233_H_
|
|
|
|
#define _ADC_IMX233_H_
|
|
|
|
|
2012-05-19 11:08:05 +00:00
|
|
|
#include "adc.h"
|
|
|
|
#include "powermgmt-target.h"
|
2011-09-13 23:40:09 +00:00
|
|
|
|
2013-11-19 19:04:03 +00:00
|
|
|
enum imx233_adc_channel_t
|
|
|
|
{
|
|
|
|
ADC_BATTERY, /* Battery voltage (mV) */
|
|
|
|
ADC_DIE_TEMP, /* Die temperature (°C) */
|
|
|
|
ADC_VDDIO, /* VDDIO (mV) */
|
2013-06-16 18:59:36 +00:00
|
|
|
#if IMX233_SUBTARGET >= 3700
|
2013-11-19 19:04:03 +00:00
|
|
|
ADC_VDD5V, /* VDD5V (mV) */
|
2013-06-16 18:59:36 +00:00
|
|
|
#endif
|
2012-05-19 11:08:05 +00:00
|
|
|
#ifdef IMX233_BATT_TEMP_SENSOR
|
2013-11-19 19:04:03 +00:00
|
|
|
ADC_BATT_TEMP, /* Battery temperature (°C) */
|
2012-03-17 16:39:27 +00:00
|
|
|
#endif
|
2013-11-19 19:04:03 +00:00
|
|
|
NUM_ADC_CHANNELS,
|
|
|
|
};
|
2011-09-13 23:40:09 +00:00
|
|
|
|
2013-11-19 19:04:03 +00:00
|
|
|
/* Return channel name */
|
|
|
|
const char *adc_name(int channel);
|
2011-09-13 23:40:09 +00:00
|
|
|
|
|
|
|
#endif
|