![]() |
coreboot
coreboot is an Open Source project aimed at replacing the proprietary BIOS found in most computers.
|
Go to the source code of this file.
Functions | |
u32 | get_saradc_value (u32 chn) |
Definition at line 39 of file saradc.c.
References ADC_CHN_SEL_MASK, ADC_CHN_SEL_SHIFT, ADC_PWR_CTRL, ADC_STOP, assert, clrbits32, clrsetbits32, rk3399_saradc_regs::ctrl, rk3399_saradc_regs::data, DATA_MASK, read32(), rk3399_saradc, rkclk_configure_saradc(), SARADC_DELAY_PU, SARADC_HZ, SARADC_MAX_CHANNEL, setbits32, rk3399_saradc_regs::stas, stopwatch_expired(), stopwatch_init_msecs_expire(), and udelay().
Referenced by get_index().