diff options
author | Yang Xiwen <forbidden405@outlook.com> | 2023-12-16 02:28:52 +0800 |
---|---|---|
committer | Sean Anderson <seanga2@gmail.com> | 2023-12-15 13:50:44 -0500 |
commit | d30618243990457d219ab81955c2738580d26cd2 (patch) | |
tree | 352deb3a05a370164efbfd7e7d9aa7ff9c90be42 /drivers/clk/clk_sandbox_test.c | |
parent | 9e0250321a0d7c7b17fcbac172dd3d3c000ee53a (diff) | |
download | u-boot-d30618243990457d219ab81955c2738580d26cd2.tar.gz u-boot-d30618243990457d219ab81955c2738580d26cd2.tar.bz2 u-boot-d30618243990457d219ab81955c2738580d26cd2.zip |
test: dm: clk_ccf: test ccf_clk_ops
Assign ccf_clk_ops to .ops of clk_ccf driver so that it can act as an
clk provider. Also add "#clock-cells=<1>" to its device tree node.
Add "i2c_root" to clk_test in the device tree and driver for testing.
Get "i2c_root" clock in CCF unit tests and add tests for it.
Signed-off-by: Yang Xiwen <forbidden405@outlook.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Link: https://lore.kernel.org/r/20231111-enable_count-v3-2-08a821892fa9@outlook.com
Diffstat (limited to 'drivers/clk/clk_sandbox_test.c')
-rw-r--r-- | drivers/clk/clk_sandbox_test.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/clk/clk_sandbox_test.c b/drivers/clk/clk_sandbox_test.c index 5807a454f3..c695b69321 100644 --- a/drivers/clk/clk_sandbox_test.c +++ b/drivers/clk/clk_sandbox_test.c @@ -15,6 +15,7 @@ static const char * const sandbox_clk_test_names[] = { [SANDBOX_CLK_TEST_ID_FIXED] = "fixed", [SANDBOX_CLK_TEST_ID_SPI] = "spi", [SANDBOX_CLK_TEST_ID_I2C] = "i2c", + [SANDBOX_CLK_TEST_ID_I2C_ROOT] = "i2c_root", }; int sandbox_clk_test_get(struct udevice *dev) |