summaryrefslogtreecommitdiff
path: root/drivers/clk/socfpga
diff options
context:
space:
mode:
authorJohn Keeping <john@metanate.com>2023-04-20 13:38:04 +0300
committerStephen Boyd <sboyd@kernel.org>2023-10-24 06:20:57 +0300
commite43d31915cc4fca4e04daeca6c0ff25cc57cf956 (patch)
tree47d6133cd16753f97eb293f04d6335fc4234a89e /drivers/clk/socfpga
parentdcce5cc7826e9c6b3a2443e5e6b7f8d02a103c35 (diff)
downloadlinux-e43d31915cc4fca4e04daeca6c0ff25cc57cf956.tar.xz
clk: Allow phase adjustment from debugfs
For testing it may be useful to manually adjust a clock's phase. Add support for writing to the existing clk_phase debugfs file, with the written value clamped to [0, 360) to match the behaviour of the clk_set_phase() function. This is a dangerous feature, so use the existing define CLOCK_ALLOW_WRITE_DEBUGFS to allow it only if the source is modified. Signed-off-by: John Keeping <john@metanate.com> Link: https://lore.kernel.org/r/20230420103805.125246-1-john@metanate.com Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/socfpga')
0 files changed, 0 insertions, 0 deletions