Searched refs:lradc (Results 1 – 7 of 7) sorted by relevance
/drivers/iio/adc/ |
D | mxs-lradc.c | 354 static void mxs_lradc_reg_set(struct mxs_lradc *lradc, u32 val, u32 reg) in mxs_lradc_reg_set() argument 356 writel(val, lradc->base + reg + STMP_OFFSET_REG_SET); in mxs_lradc_reg_set() 359 static void mxs_lradc_reg_clear(struct mxs_lradc *lradc, u32 val, u32 reg) in mxs_lradc_reg_clear() argument 361 writel(val, lradc->base + reg + STMP_OFFSET_REG_CLR); in mxs_lradc_reg_clear() 364 static void mxs_lradc_reg_wrt(struct mxs_lradc *lradc, u32 val, u32 reg) in mxs_lradc_reg_wrt() argument 366 writel(val, lradc->base + reg); in mxs_lradc_reg_wrt() 369 static u32 mxs_lradc_plate_mask(struct mxs_lradc *lradc) in mxs_lradc_plate_mask() argument 371 if (lradc->soc == IMX23_LRADC) in mxs_lradc_plate_mask() 376 static u32 mxs_lradc_irq_mask(struct mxs_lradc *lradc) in mxs_lradc_irq_mask() argument 378 if (lradc->soc == IMX23_LRADC) in mxs_lradc_irq_mask() [all …]
|
D | Makefile | 37 obj-$(CONFIG_MXS_LRADC) += mxs-lradc.o
|
D | Kconfig | 364 module will be called mxs-lradc.
|
/drivers/input/keyboard/ |
D | sun4i-lradc-keys.c | 84 struct sun4i_lradc_data *lradc = dev_id; in sun4i_lradc_irq() local 87 ints = readl(lradc->base + LRADC_INTS); in sun4i_lradc_irq() 95 input_report_key(lradc->input, lradc->chan0_keycode, 0); in sun4i_lradc_irq() 96 lradc->chan0_keycode = 0; in sun4i_lradc_irq() 99 if ((ints & CHAN0_KEYDOWN_IRQ) && lradc->chan0_keycode == 0) { in sun4i_lradc_irq() 100 val = readl(lradc->base + LRADC_DATA0) & 0x3f; in sun4i_lradc_irq() 101 voltage = val * lradc->vref / 63; in sun4i_lradc_irq() 103 for (i = 0; i < lradc->chan0_map_count; i++) { in sun4i_lradc_irq() 104 diff = abs(lradc->chan0_map[i].voltage - voltage); in sun4i_lradc_irq() 107 keycode = lradc->chan0_map[i].keycode; in sun4i_lradc_irq() [all …]
|
D | Makefile | 60 obj-$(CONFIG_KEYBOARD_SUN4I_LRADC) += sun4i-lradc-keys.o
|
D | Kconfig | 606 module will be called sun4i-lradc-keys.
|
/drivers/clk/mxs/ |
D | clk-imx28.c | 145 clk32k_div, rtc, lradc, spdif_div, clk32k, pwm, uart, ssp0, enumerator 214 clks[lradc] = mxs_clk_fixed_factor("lradc", "clk32k", 1, 16); in mx28_clocks_init()
|