counter: microchip-tcb-capture: Fix the use of internal GCLK logic
authorDharma Balasubiramani <dharma.b@microchip.com>
Tue, 5 Sep 2023 10:08:35 +0000 (15:38 +0530)
committerWilliam Breathitt Gray <william.gray@linaro.org>
Tue, 5 Sep 2023 16:25:14 +0000 (12:25 -0400)
commitdf8fdd01c98b99d04915c04f3a5ce73f55456b7c
tree84e559ff889c6a1c008394f86649dcd10f4ee2d5
parent3170256d7bc1ef81587caf4b83573eb1f5bb4fb6
counter: microchip-tcb-capture: Fix the use of internal GCLK logic

As per the datasheet, the clock selection Bits 2:0 – TCCLKS[2:0] should
be set to 0 while using the internal GCLK (TIMER_CLOCK1).

Fixes: 106b104137fd ("counter: Add microchip TCB capture counter")
Signed-off-by: Dharma Balasubiramani <dharma.b@microchip.com>
Link: https://lore.kernel.org/r/20230905100835.315024-1-dharma.b@microchip.com
Signed-off-by: William Breathitt Gray <william.gray@linaro.org>
drivers/counter/microchip-tcb-capture.c