xref: /rk3399_ARM-atf/include/drivers/generic_delay_timer.h (revision 0bcedb2212bd2436834117cd956d7b6e16b11673)
1*0bcedb22SAntonio Nino Diaz /*
2*0bcedb22SAntonio Nino Diaz  * Copyright (c) 2016, ARM Limited and Contributors. All rights reserved.
3*0bcedb22SAntonio Nino Diaz  *
4*0bcedb22SAntonio Nino Diaz  * Redistribution and use in source and binary forms, with or without
5*0bcedb22SAntonio Nino Diaz  * modification, are permitted provided that the following conditions are met:
6*0bcedb22SAntonio Nino Diaz  *
7*0bcedb22SAntonio Nino Diaz  * Redistributions of source code must retain the above copyright notice, this
8*0bcedb22SAntonio Nino Diaz  * list of conditions and the following disclaimer.
9*0bcedb22SAntonio Nino Diaz  *
10*0bcedb22SAntonio Nino Diaz  * Redistributions in binary form must reproduce the above copyright notice,
11*0bcedb22SAntonio Nino Diaz  * this list of conditions and the following disclaimer in the documentation
12*0bcedb22SAntonio Nino Diaz  * and/or other materials provided with the distribution.
13*0bcedb22SAntonio Nino Diaz  *
14*0bcedb22SAntonio Nino Diaz  * Neither the name of ARM nor the names of its contributors may be used
15*0bcedb22SAntonio Nino Diaz  * to endorse or promote products derived from this software without specific
16*0bcedb22SAntonio Nino Diaz  * prior written permission.
17*0bcedb22SAntonio Nino Diaz  *
18*0bcedb22SAntonio Nino Diaz  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19*0bcedb22SAntonio Nino Diaz  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20*0bcedb22SAntonio Nino Diaz  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21*0bcedb22SAntonio Nino Diaz  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
22*0bcedb22SAntonio Nino Diaz  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23*0bcedb22SAntonio Nino Diaz  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24*0bcedb22SAntonio Nino Diaz  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25*0bcedb22SAntonio Nino Diaz  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26*0bcedb22SAntonio Nino Diaz  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27*0bcedb22SAntonio Nino Diaz  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28*0bcedb22SAntonio Nino Diaz  * POSSIBILITY OF SUCH DAMAGE.
29*0bcedb22SAntonio Nino Diaz  */
30*0bcedb22SAntonio Nino Diaz 
31*0bcedb22SAntonio Nino Diaz #ifndef __GENERIC_DELAY_TIMER_H__
32*0bcedb22SAntonio Nino Diaz #define __GENERIC_DELAY_TIMER_H__
33*0bcedb22SAntonio Nino Diaz 
34*0bcedb22SAntonio Nino Diaz #include <stdint.h>
35*0bcedb22SAntonio Nino Diaz 
36*0bcedb22SAntonio Nino Diaz void generic_delay_timer_init_args(uint32_t mult, uint32_t div);
37*0bcedb22SAntonio Nino Diaz 
38*0bcedb22SAntonio Nino Diaz void generic_delay_timer_init(void);
39*0bcedb22SAntonio Nino Diaz 
40*0bcedb22SAntonio Nino Diaz #endif /* __GENERIC_DELAY_TIMER_H__ */
41