06 Oct, 2015
1 commit
-
Commit dca1a4b5ff6e ("clk: at91: keep slow clk enabled to prevent system
hang") added a workaround for the slow clock as it is not properly handled
by its users.Get and use the slow clock as it is necessary for the timer counters.
Signed-off-by: Boris Brezillon
Signed-off-by: Alexandre Belloni
Acked-by: Greg Kroah-Hartman
Acked-by: Daniel Lezcano
Acked-by: Thierry Reding
20 Jul, 2015
1 commit
-
Some PWM drivers are testing the PWMF_ENABLED flag. Create a helper
function to hide the logic behind enabled test. This will allow us to
smoothly move from the current approach to an atomic PWM update
approach.Signed-off-by: Boris Brezillon
Signed-off-by: Thierry Reding
20 Oct, 2014
1 commit
-
A platform_driver does not need to set an owner, it will be populated by the
driver core.Signed-off-by: Wolfram Sang
08 Sep, 2014
1 commit
-
Move resource retrieval from atmel_tc_alloc to tc_probe to avoid lately
reporting resource related issues when a TC block user request a TC block.Moreover, resources retrieval are usually done in the probe function,
thus moving them add some consistency with other drivers.Initialization is done once, ie not every time a tc block is requested.
If it fails, the device is not appended to the list of tc blocks.Furhermore, the device id is retrieved at probe as well, avoiding parsing
DT every time the user requests of tc block.Signed-off-by: Gaël PORTAY
Acked-by: Thierry Reding
Acked-by: Boris Brezillon
Signed-off-by: Nicolas Ferre
19 Sep, 2013
2 commits
-
Use the the tcb counter width to compute the maximum time that can be
represented using the slow clock source instead of the static 16 bit width.Signed-off-by: Boris BREZILLON
Acked-by: Nicolas Ferre
Signed-off-by: Thierry Reding -
Clock source changes are never applied to the CMR register.
This may lead to wrong period/duty cycle configuration.Signed-off-by: Boris BREZILLON
Acked-by: Nicolas Ferre
Signed-off-by: Thierry Reding
12 Jun, 2013
2 commits
-
Some drivers don't set the .owner fields of the struct device_driver or
struct pwm_ops, which causes the module usage count to become wrong.Signed-off-by: Thierry Reding
-
Replace clk_enable/disable with clk_prepare_enable/disable_unprepare to
avoid common clk framework warnings.Signed-off-by: Boris BREZILLON
Signed-off-by: Thierry Reding
02 Apr, 2013
1 commit
-
Add missing .owner of struct pwm_ops. This prevents the module from being
removed from underneath its users.Signed-off-by: Axel Lin
Signed-off-by: Thierry Reding
08 Jan, 2013
1 commit
-
This patch adds a PWM driver based on Atmel Timer Counter Block. The
Timer Counter Block is used in Waveform generator mode.A Timer Counter Block provides up to 6 PWM devices grouped by 2:
* group 0 = PWM 0 and 1
* group 1 = PWM 2 and 3
* group 2 = PMW 4 and 5PWM devices in a given group must be configured with the same period
value. If a PWM device in a group tries to change the period value and
the other device is already configured with a different value an error
will be returned.This driver requires device tree support. The Timer Counter Block number
used to create a PWM chip is given by the tc-block field in an
"atmel,tcb-pwm" compatible node.This patch was tested on kizbox board (at91sam9g20 SoC) with pwm-leds.
Signed-off-by: Boris BREZILLON
Signed-off-by: Thierry Reding