/u-boot/drivers/adc/ |
A D | stm32-adc.c | 70 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_stop() local 76 adc->active_channel = -1; in stm32_adc_stop() 85 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_start_channel() local 96 if (!adc->cfg->has_vregready) { in stm32_adc_start_channel() 110 writel(0, adc->regs + STM32H7_ADC_DIFSEL); in stm32_adc_start_channel() 135 adc->active_channel = channel; in stm32_adc_start_channel() 143 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_channel_data() local 147 if (channel != adc->active_channel) { in stm32_adc_channel_data() 160 *data = readl(adc->regs + STM32H7_ADC_DR); in stm32_adc_channel_data() 168 struct stm32_adc *adc = dev_get_priv(dev); in stm32_adc_chan_of_init() local [all …]
|
A D | Makefile | 7 obj-$(CONFIG_ADC) += adc-uclass.o 8 obj-$(CONFIG_ADC_EXYNOS) += exynos-adc.o 12 obj-$(CONFIG_STM32_ADC) += stm32-adc.o stm32-adc-core.o
|
/u-boot/doc/device-tree-bindings/adc/ |
A D | st,stm32-adc.txt | 25 "st,stm32f4-adc-core" 26 "st,stm32h7-adc-core" 27 "st,stm32mp1-adc-core" 57 "st,stm32f4-adc" 58 "st,stm32h7-adc" 59 "st,stm32mp1-adc" 65 2 for adc@200). 97 adc: adc@40012000 { 112 adc@0 { 132 adc: adc@40022000 { [all …]
|
A D | adc.txt | 24 adc@1000000 { 25 compatible = "some-adc"; 55 adc@0 { 56 compatible = "sandbox,adc";
|
/u-boot/board/samsung/universal_c210/ |
A D | universal.c | 53 struct s5p_adc *adc = (struct s5p_adc *)samsung_get_base_adc(); in get_adc_value() local 58 writel(channel & 0xF, &adc->adcmux); in get_adc_value() 59 writel((1 << 14) | (49 << 6), &adc->adccon); in get_adc_value() 60 writel(1000 & 0xffff, &adc->adcdly); in get_adc_value() 61 writel(readl(&adc->adccon) | (1 << 16), &adc->adccon); /* 12 bit */ in get_adc_value() 63 writel(readl(&adc->adccon) | (1 << 0), &adc->adccon); /* Enable */ in get_adc_value() 68 reg = readl(&adc->adccon); in get_adc_value() 71 ret = readl(&adc->adcdat0) & 0xFFF; in get_adc_value()
|
/u-boot/drivers/button/ |
A D | button-adc.c | 26 struct udevice *adc; member 38 ret = adc_start_channel(priv->adc, priv->channel); in button_adc_get_state() 42 ret = adc_channel_data(priv->adc, priv->channel, &val); in button_adc_get_state() 46 ret = adc_raw_to_uV(priv->adc, val, &uV); in button_adc_get_state() 71 ret = uclass_get_device_by_ofnode(UCLASS_ADC, args.node, &priv->adc); in button_adc_of_to_plat()
|
A D | Makefile | 6 obj-$(CONFIG_BUTTON_ADC) += button-adc.o
|
/u-boot/doc/device-tree-bindings/input/ |
A D | adc-keys.txt | 5 - compatible: "adc-keys" 16 Each button (key) is represented as a sub-node of "adc-keys": 32 adc-keys { 33 compatible = "adc-keys";
|
/u-boot/arch/arm/dts/ |
A D | at91sam9x5dm.dtsi | 50 adc0: adc@f804c000 { 51 atmel,adc-ts-wires = <4>; 52 atmel,adc-ts-pressure-threshold = <10000>;
|
A D | sama5d3xdm.dtsi | 51 adc0: adc@f8018000 { 52 atmel,adc-ts-wires = <4>; 53 atmel,adc-ts-pressure-threshold = <10000>;
|
A D | stm32mp157c-odyssey.dts | 36 &adc { 43 adc1: adc@0 { 52 st,adc-channels = <0 1 6 13 18 19>; 55 adc2: adc@100 { 57 st,adc-channels = <0 1 2 6 18 19>;
|
A D | at91sam9g20.dtsi | 38 adc0: adc@fffe0000 { 39 atmel,adc-startup-time = <40>;
|
A D | stm32h743.dtsi | 249 adc_12: adc@40022000 { 250 compatible = "st,stm32h7-adc-core"; 261 adc1: adc@0 { 262 compatible = "st,stm32h7-adc"; 270 adc2: adc@100 { 271 compatible = "st,stm32h7-adc"; 488 adc_3: adc@58026000 { 489 compatible = "st,stm32h7-adc-core"; 500 adc3: adc@0 { 501 compatible = "st,stm32h7-adc";
|
A D | stm32f429.dtsi | 479 adc: adc@40012000 { label 484 clock-names = "adc"; 491 adc1: adc@0 { 492 compatible = "st,stm32f4-adc"; 496 interrupt-parent = <&adc>; 503 adc2: adc@100 { 504 compatible = "st,stm32f4-adc"; 508 interrupt-parent = <&adc>; 515 adc3: adc@200 { 516 compatible = "st,stm32f4-adc"; [all …]
|
A D | at91sam9x5ek.dtsi | 74 adc0: adc@f804c000 { 75 atmel,adc-ts-wires = <4>; 76 atmel,adc-ts-pressure-threshold = <10000>;
|
A D | axp803.dtsi | 19 axp_adc: adc { 20 compatible = "x-powers,axp803-adc", "x-powers,axp813-adc";
|
A D | meson-gxm-wetek-core2.dts | 33 adc-keys { 34 compatible = "adc-keys";
|
A D | rk3308-evb.dts | 19 adc-keys0 { 20 compatible = "adc-keys"; 33 adc-keys1 { 34 compatible = "adc-keys";
|
A D | k3-am65-mcu.dtsi | 95 adc { 97 compatible = "ti,am654-adc", "ti,am3359-adc"; 113 adc { 115 compatible = "ti,am654-adc", "ti,am3359-adc";
|
A D | rk3399-nanopc-t4.dts | 35 adc-keys { 36 compatible = "adc-keys";
|
A D | stm32429i-eval.dts | 124 &adc { 130 adc3: adc@200 { 131 st,adc-channels = <8>;
|
A D | stm32mp157c-odyssey-u-boot.dtsi | 27 &adc {
|
A D | socfpga_arria10_socdk.dtsi | 138 adc@14 { 144 adc@16 {
|
/u-boot/arch/arm/lib/ |
A D | muldi3.S | 40 adc xh, xh, yh, lsr #16 42 adc xh, xh, ip, lsr #16
|
/u-boot/board/st/stm32mp1/ |
A D | stm32mp1.c | 296 struct udevice *adc; in adc_measurement() local 310 &adc); in adc_measurement() 317 ret = adc_channel_single_shot(adc->name, adc_args.args[0], in adc_measurement() 321 adc->name, adc_args.args[0]); in adc_measurement() 325 if (!adc_raw_to_uV(adc, raw, &uV)) { in adc_measurement() 331 adc->name, adc_args.args[0], raw, uV); in adc_measurement() 334 adc->name, adc_args.args[0]); in adc_measurement()
|