diff options
| author | Billy Tsai <[email protected]> | 2021-09-22 16:15:16 +0800 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2021-10-19 08:27:32 +0100 |
| commit | 90f9647753de30708da3891296812c4ec97cb404 (patch) | |
| tree | bea3a0ced27b5d2539213a29da57d03004b90610 /tools/perf/scripts/python/stackcollapse.py | |
| parent | 1b5ceb55fec2aac929672eb8e24f98a12a10f695 (diff) | |
iio: adc: aspeed: Fix the calculate error of clock.
The ADC clock formula is
ast2400/2500:
ADC clock period = PCLK * 2 * (ADC0C[31:17] + 1) * (ADC0C[9:0] + 1)
ast2600:
ADC clock period = PCLK * 2 * (ADC0C[15:0] + 1)
They all have one fixed divided 2 and the legacy driver didn't handle it.
This patch register the fixed factory clock device as the parent of ADC
clock scaler to fix this issue.
Signed-off-by: Billy Tsai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions