diff options
author | Tom Rini | 2016-02-26 16:22:28 -0500 |
---|---|---|
committer | Tom Rini | 2016-02-26 16:22:28 -0500 |
commit | d5c6144fe326e255e42ec273fc5d88f45cd61548 (patch) | |
tree | 470446ad6c9d5580b0ff778d5adc77ee05f6e1b8 /include | |
parent | 38e65aeb70b72132c0d2ec0ed389f7fc8b7bdf4c (diff) | |
parent | 6796704b0dfb4f98cb4a026988e9739884812b5c (diff) |
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'include')
-rw-r--r-- | include/image.h | 5 | ||||
-rw-r--r-- | include/timer.h | 21 |
2 files changed, 22 insertions, 4 deletions
diff --git a/include/image.h b/include/image.h index 299d6d2a13d..518a4f5291f 100644 --- a/include/image.h +++ b/include/image.h @@ -818,10 +818,7 @@ static inline ulong fit_get_size(const void *fit) * returns: * end address of the FIT image (blob) in memory */ -static inline ulong fit_get_end(const void *fit) -{ - return (ulong)fit + fdt_totalsize(fit); -} +ulong fit_get_end(const void *fit); /** * fit_get_name - get FIT node name diff --git a/include/timer.h b/include/timer.h index f14725cc280..dcc803c392a 100644 --- a/include/timer.h +++ b/include/timer.h @@ -67,4 +67,25 @@ struct timer_dev_priv { unsigned long clock_rate; }; +/** + * timer_early_get_count() - Implement timer_get_count() before driver model + * + * If CONFIG_TIMER_EARLY is enabled, this function wil be called to return + * the current timer value before the proper driver model timer is ready. + * It should be implemented by one of the timer values. This is mostly useful + * for tracing. + */ +u64 timer_early_get_count(void); + +/** + * timer_early_get_rate() - Get the timer rate before driver model + * + * If CONFIG_TIMER_EARLY is enabled, this function wil be called to return + * the current timer rate in Hz before the proper driver model timer is ready. + * It should be implemented by one of the timer values. This is mostly useful + * for tracing. This corresponds to the clock_rate value in struct + * timer_dev_priv. + */ +unsigned long timer_early_get_rate(void); + #endif /* _TIMER_H_ */ |