ADC line reads in u-boot for REV C boards

Hi Gerald,

Here are my findings on reading the ADC lines for power measurements

Read the CARKIT_ANA_CTRL

OMAP3 beagleboard.org # imd 0x48 0xBB 10

00bb: 00 00 00 00 00 1f 34 64 7f 6c 75 64 20 01 17 01 …4d.lud …

Write 0x08 to CARKIT_ANA_CTRL (SEL_MADC_MCPC Routes all four MCPC pins to the MADC for)

OMAP3 beagleboard.org # imw 0x48 0xBB 0x08 1

Read the CARKIT_ANA_CTRL

OMAP3 beagleboard.org # imd 0x48 0xBB 10

00bb: 08 08 08 00 00 1f 34 64 7f 6c 75 64 20 01 17 01 …4d.lud …

Read the ADCIN3 and ADCIN5

GPCH3_LSB 0x0000 003D

GPCH3_MSB 0x0000 003E

GPCH5_LSB 0x0000 0041

GPCH5_MSB 0x0000 0042

OMAP3 beagleboard.org # imd 0x4A 0x3D 10

003d: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 …

Reads all zeros

Please review the sequence, the reg details.

Thanks & Regards,

Khasim