Tidy ADC channel definitions

We moved a while ago to a table of ADC channels, so having a
meaningless constant defined in board.h is more harmful than helpful.

BUG=none
TEST=build link, bds

Change-Id: I651a609c9ed13f879bb943c90731275407d77e50
Signed-off-by: Randall Spangler <rspangler@chromium.org>
This commit is contained in:
Randall Spangler
2012-03-16 16:15:23 -07:00
parent 9ff6f390b9
commit 1fd7062b29
4 changed files with 5 additions and 10 deletions

View File

@@ -29,9 +29,12 @@ const struct adc_t adc_channels[ADC_CH_COUNT] =
/* Charger current is mapped from 0~4000mA to 0~1.6V.
* And ADC maps 0~3.3V to ADC_READ_MAX.
*
* Note that on BDS, this is really just the turn pot on the Badger
* board, but that's good enough for debugging the ADC.
*/
{"ChargerCurrent", LM4_ADC_SEQ1, 33 * 4000, ADC_READ_MAX * 16, 0,
LM4_AIN(ADC_IN0), 0x06 /* IE0 | END0 */},
LM4_AIN(0), 0x06 /* IE0 | END0 */},
};

View File

@@ -45,10 +45,6 @@
/* LPC COMx I/O address (in x86 I/O address space) */
#define LPC_COMX_ADDR 0x2f8 /* COM2, since superIO uses COM1 */
/* ADC inputs */
/* TODO: really just need a lookup table for channels to inputs */
#define ADC_IN0 0 /* Turn POT on badger board */
enum adc_channel
{
/* EC internal die temperature in degrees K. */

View File

@@ -118,7 +118,7 @@ const struct adc_t adc_channels[ADC_CH_COUNT] =
* And ADC maps 0~3.3V to ADC_READ_MAX.
*/
{"ChargerCurrent", LM4_ADC_SEQ1, 33 * 4000, ADC_READ_MAX * 16, 0,
LM4_AIN(ADC_IN0), 0x06 /* IE0 | END0 */},
LM4_AIN(11), 0x06 /* IE0 | END0 */},
};
void configure_board(void)

View File

@@ -55,10 +55,6 @@
/* LPC COMx I/O address (in x86 I/O address space) */
#define LPC_COMX_ADDR 0x3f8 /* COM1 */
/* ADC inputs */
/* TODO: assign real ADC inputs */
#define ADC_IN0 11 /* Charger current */
enum adc_channel
{
/* EC internal die temperature in degrees K. */