/* 2012-09-16: File added by Sony Corporation */
/*
 * icx_adc.h
 *
 * Copyright 2011 Sony Corporation.
 *
 * 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 program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
 *
 */

#ifndef __ICX_ADC_H__
#define __ICX_ADC_H__

/* define */
#define ADC_CH_BATTERY 0
#define ADC_CH_VBUS    1
#define ADC_CH_TEMP    2
#define ADC_CH_3       2
#define ADC_CH_4       3
#define ADC_CH_5       4
#define ADC_CH_6       5
#define ADC_CH_7       6
#define ADC_CH_8       7
#define ADC_CH_NUM     8

/* prototypes */
void adc_init(void);
void adc_exit(void);
int  adc_read(int adsel, unsigned int *data);

#endif /* __ICX_ADC_H__ */

