diff --git a/Targets/LS2K/ls2k/tgt_machdep.c b/Targets/LS2K/ls2k/tgt_machdep.c index 01db901a..2082400c 100644 --- a/Targets/LS2K/ls2k/tgt_machdep.c +++ b/Targets/LS2K/ls2k/tgt_machdep.c @@ -261,6 +261,10 @@ void initmips(unsigned long long raw_memsz) ls2h_m25p_probe(); #endif #endif + /*set pwm1,2 to gpio, gpio21, gpio22 to 1*/ + *(volatile int *)0xbfe10420 &= ~(0x6<<12); + *(volatile int *)0xbfe10500 &= ~(0x3<<21); + *(volatile int *)0xbfe10510 |= 0x3<<21; #ifdef DTB verify_dtb(); #endif