summaryrefslogtreecommitdiff
path: root/arch/arm/mach-ux500/timer-rtt.h
blob: 68fc20da2d6b2e8808f37192a4a4405224fc3199 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
 * Copyright (C) ST-Ericsson SA 2010
 *
 * License Terms: GNU General Public License v2
 * Author: Jonas Aaberg <jonas.aberg@stericsson.com>
 *
 */
#ifndef TIMER_RTT_H
#define TIMER_RTT_H

/**
 * rtc_rtt_timer_init()
 */
void rtc_rtt_timer_init(unsigned int cpu);

/**
 * rtc_rtt_adjust_next_wakeup()
 *
 * @delta_in_us: delta time to wake up. Can be negative, to wake up closer
 * in time.
 *
 * This function is needed due to there is no other timer available and in
 * some sleep cases the PRCMU need to wake up earlier than the scheduler
 * wants just to have enough time to start one or more PLLs before the
 * ARM can start executing.
 * Returns -EINVAL if the wake up time can't be adjusted.
 */
int rtc_rtt_adjust_next_wakeup(int delta_in_us);

#endif