Browse Source

ls2k set pwm to gpio, gpio21, gpio22 to 1.

Change-Id: I6ce87c675d5efd8679e5b3176ed60de2ea93f16f
Signed-off-by: QiaoChong <qiaochong@loongson.cn>
master
QiaoChong 7 years ago
committed by Chong Qiao
parent
commit
86040889d9
  1. 4
      Targets/LS2K/ls2k/tgt_machdep.c

4
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

Loading…
Cancel
Save