aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorMaxime Ripard <[email protected]>2018-12-03 03:44:17 -0500
committerMauro Carvalho Chehab <[email protected]>2018-12-05 06:45:19 -0500
commitaa2882481cadaaf1e91236e43d700717cbe68712 (patch)
treed92f53028a3f0a3e07c1c39d70b0de8864d2cd12 /tools/perf/scripts/python/stackcollapse.py
parent07115449919383548d094ff83cc27bd08639a8a1 (diff)
media: ov5640: Adjust the clock based on the expected rate
The clock structure for the PCLK is quite obscure in the documentation, and was hardcoded through the bytes array of each and every mode. This is troublesome, since we cannot adjust it at runtime based on other parameters (such as the number of bytes per pixel), and we can't support either framerates that have not been used by the various vendors, since we don't have the needed initialization sequence. We can however understand how the clock tree works, and then implement some functions to derive the various parameters from a given rate. And now that those parameters are calculated at runtime, we can remove them from the initialization sequence. The modes also gained a new parameter which is the clock that they are running at, from the register writes they were doing, so for now the switch to the new algorithm should be transparent. Co-Developed-by: Jacopo Mondi <[email protected]> Tested-by: Adam Ford <[email protected]> #imx6dq Signed-off-by: Jacopo Mondi <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions