pwm: kona: Modify settings application sequence
authorJonathan Richardson <jonathar@broadcom.com>
Mon, 15 Jun 2015 21:21:01 +0000 (14:21 -0700)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 17 Aug 2015 14:19:41 +0000 (16:19 +0200)
commitfe0aea7978d25d8df6c128481b8111e76d972657
tree3ea12caf1dcce52f795951013b49709221de596f
parent09c14459f2622ccacdff13461c5c864bff80cc07
pwm: kona: Modify settings application sequence

Update the driver so that settings are applied in accordance with the
most recent version of the hardware spec.  The revised sequence clears
the trigger bit, waits 400ns, writes settings, sets the trigger bit,
and waits another 400ns.  This corrects an issue where occasionally a
requested change was not properly reflected in the PWM output.

Reviewed-by: Arun Ramamurthy <arunrama@broadcom.com>
Reviewed-by: Scott Branden <sbranden@broadcom.com>
Tested-by: Scott Branden <sbranden@broadcom.com>
Reviewed-by: Tim Kryger <tim.kryger@gmail.com>
Signed-off-by: Jonathan Richardson <jonathar@broadcom.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-bcm-kona.c