Skip to content

Commit 8158940

Browse files
xry111MingcongBai
authored andcommitted
FROMLIST: pwm: loongson: Fix LOONGSON_PWM_FREQ_DEFAULT
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") Link: https://lore.kernel.org/all/[email protected]/ Signed-off-by: Xi Ruoyao <[email protected]>
1 parent effe9bc commit 8158940

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)