aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorRex-BC Chen <[email protected]>2022-05-23 17:33:32 +0800
committerStephen Boyd <[email protected]>2022-06-15 17:24:12 -0700
commit370bf62869695003c2994d3d98769ccde6b26083 (patch)
tree6e2afb7ac080fa034d8e08c39a79f5cb0f54d3da /tools/perf/util/scripting-engines/trace-event-python.c
parent114257572a0e0d93f770894b9824793901d1fae7 (diff)
clk: mediatek: reset: Merge and revise reset register function
There are two versions for clock reset register control for MediaTek SoCs. The old hardware is one bit per reset control, and does not have separate registers for bit set, clear and read-back operations. This matches the scheme supported by the simple reset driver. However, because we need to use different data structure from reset_simple_data, we can not use the operation of simple reset driver. For this reason, we keep the original functions and name this version as "MTK_RST_SIMPLE". In this patch: - Add a version enumeration to separate different reset hardware. - Merge the reset register function of simple and set_clr into one function "mtk_register_reset_controller". - Rename input variable "num_regs" to "rst_bank_nr" to avoid confusion. This variable is used to define the quantity of reset bank. - Document mtk_reset_version and mtk_register_reset_controller. Signed-off-by: Rex-BC Chen <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Reviewed-by: NĂ­colas F. R. A. Prado <[email protected]> Tested-by: NĂ­colas F. R. A. Prado <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions