1 /*
2  * Copyright (C) 2015-2020 Alibaba Group Holding Limited
3  */
4 #ifndef __USBPHY_HAAS1000_H__
5 #define __USBPHY_HAAS1000_H__
6 
7 #ifdef __cplusplus
8 extern "C" {
9 #endif
10 
11 #define SPIPHY_USB_CS                       0
12 
13 #define SPIPHY_USB_REG(reg)                 (((reg) & 0xFFF) | (SPIPHY_USB_CS << 12))
14 
15 void usbphy_div_reset_set();
16 
17 void usbphy_div_reset_clear(uint32_t div);
18 
19 void usbphy_div_set(uint32_t div);
20 
21 #ifdef __cplusplus
22 }
23 #endif
24 
25 #endif
26 
27