We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b6b3a6 commit 105f7b9Copy full SHA for 105f7b9
edk2-rockchip/Silicon/Rockchip/Library/PWMLib/PWMLib.c
@@ -9,6 +9,7 @@
9
10
#include <Library/DebugLib.h>
11
#include <Library/IoLib.h>
12
+#include <Library/TimerLib.h>
13
#include <Library/PWMLib.h>
14
15
#define PWM_INT_EN(ch) (1 << (ch))
@@ -81,6 +82,7 @@ RkPwmSetConfig (
81
82
Ctrl = MmioRead32(Base + ChannelOffset + PWM_CTRL_OFFSET);
83
Ctrl |= PWM_LOCK;
84
MmioWrite32(Base + ChannelOffset + PWM_CTRL_OFFSET, Ctrl);
85
+ MicroSecondDelay (1);
86
87
MmioWrite32(Base + ChannelOffset + PWM_PERIOD_HPR_OFFSET, PeriodCycle);
88
MmioWrite32(Base + ChannelOffset + PWM_DUTY_LPR_OFFSET, DutyCycle);
edk2-rockchip/Silicon/Rockchip/Library/PWMLib/PWMLib.inf
@@ -21,6 +21,7 @@
21
[LibraryClasses]
22
DebugLib
23
IoLib
24
+ TimerLib
25
26
[Packages]
27
EmbeddedPkg/EmbeddedPkg.dec
0 commit comments