Loading...
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 | # Kconfig - ADC configuration options # # Copyright (c) 2015 Intel Corporation # # SPDX-License-Identifier: Apache-2.0 # menuconfig ADC_DW bool "ARC Designware Driver" depends on ARC select ADC_0 default n help Enable the driver implementation of the Designware ADC IP. if ADC_DW config ADC_DW_CALIBRATION bool "Enable Calibration" default y help Enables ADC to run with a calibrated output at the expense of execution speed when exiting low power states. If disabled, the ADC will require the application/system-integrator to provide a calibration method. config ADC_DW_DUMMY_CONVERSION bool "Enable dummy conversion" default y help After awaking from low power state a dummy conversion must be performed and discarded. If disabled the user will have to discard the first sample after a resume from a low power state. choice prompt "Output Mode" default ADC_DW_SERIAL help ADC output mode: parallel or serial. config ADC_DW_SERIAL bool "Serial" config ADC_DW_PARALLEL bool "Parallel" endchoice choice prompt "Sequence Mode" default ADC_DW_SINGLESHOT help ADC sequence mode - single run/repetitive config ADC_DW_SINGLESHOT bool "Single Ended" config ADC_DW_REPETITIVE bool "Differential" endchoice choice prompt "Capture Mode" default ADC_DW_RISING_EDGE help ADC controller capture mode: by rising or falling edge of adc_clk config ADC_DW_RISING_EDGE bool "Rising Edge" config ADC_DW_FALLING_EDGE bool "Falling Edge" endchoice config ADC_DW_SAMPLE_WIDTH int "Sample Width" default 31 help Defines ADC device data sample width (resolution): - 0 = 6 bits resolution - 1 = 8 bits resolution - 2 = 10 bits resolution - 3 = 12 bits resolution config ADC_DW_SERIAL_DELAY int "Serial Delay" default 1 help Number of ADC clock ticks that the first bit of the serial output is delayed after the conversion has started. config ADC_DW_CLOCK_RATIO int "Clock Ratio" default 1024 help ADC Clock Ratio endif # ADC_DW |