]> git.dujemihanovic.xyz Git - u-boot.git/commit
clk: imx6q: Add definition for IMX6QDL_CLK_PWM1
authorEmil Kronborg <emil.kronborg@protonmail.com>
Mon, 22 Jul 2024 16:14:58 +0000 (13:14 -0300)
committerFabio Estevam <festevam@gmail.com>
Mon, 22 Jul 2024 20:55:35 +0000 (17:55 -0300)
commit7f39ad5ae41aa0f2339b188823eeb62cd8be9431
tree3d3761b7027a93663007041926f2291bc45c8122
parentadf1b7aea6ef63497737bb289735db6fbb3df7dd
clk: imx6q: Add definition for IMX6QDL_CLK_PWM1

Enabling CONFIG_CMD_PWM, and consequently CONFIG_DM_PWM, causes the pwm
command to fail due to a missing clock.

    => pwm enable 0 0
    Enable clock-controller@20c4000 failed
    Failed to enable per_clk
    pwm: '0' not found
    Command 'pwm' failed: Error -2

Note that it is trivial to also add the clocks for PWM2, PWM3, and PWM4.
However, I only tested PWM1 and thus only added the clock for that
signal.

Signed-off-by: Emil Kronborg <emil.kronborg@protonmail.com>
drivers/clk/imx/clk-imx6q.c