diff -drupN a/tools/pm-sleep/include/uart.h b/tools/pm-sleep/include/uart.h --- a/tools/pm-sleep/include/uart.h 1970-01-01 03:00:00.000000000 +0300 +++ b/tools/pm-sleep/include/uart.h 2022-06-09 05:02:37.000000000 +0300 @@ -0,0 +1,17 @@ +#ifndef __UART_H__ +#define __UART_H__ +#define TCSM_DELAY(x) \ + do{ \ + register unsigned int i = x; \ + while(i--) \ + __asm__ volatile(".set push \n\t" \ + ".set mips32\n\t" \ + "nop\n\t" \ + ".set mips32\n\t" \ + ".set pop \n\t"); \ + }while(0) + +void serial_putc(char x); +void serial_put_hex(unsigned int x); +void serial_setid(int uart_id); +#endif /* __UART_H__ */