Skip to content

Commit 366dff8

Browse files
xry111gregkh
authored andcommitted
pwm: loongson: Fix LOONGSON_PWM_FREQ_DEFAULT
commit 75604e9 upstream. Per the 7A1000 and 7A2000 user manual, the clock frequency of their PWM controllers is 50 MHz, not 50 kHz. Fixes: 2b62c89 ("pwm: Add Loongson PWM controller support") Signed-off-by: Xi Ruoyao <[email protected]> Reviewed-by: Binbin Zhou <[email protected]> Reviewed-by: Huacai Chen <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: [email protected] Signed-off-by: Uwe Kleine-König <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e53ef27 commit 366dff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/pwm/pwm-loongson.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
#define LOONGSON_PWM_CTRL_REG_DZONE BIT(10) /* Anti-dead Zone Enable Bit */
5050

5151
/* default input clk frequency for the ACPI case */
52-
#define LOONGSON_PWM_FREQ_DEFAULT 50000 /* Hz */
52+
#define LOONGSON_PWM_FREQ_DEFAULT 50000000 /* Hz */
5353

5454
struct pwm_loongson_ddata {
5555
struct clk *clk;

0 commit comments

Comments
 (0)