提交 64400c37 编写于 作者: B Bryan Wu 提交者: Thierry Reding

gpu: host1x: export host1x_syncpt_incr_max() function

Tegra V4L2 camera driver needs this function to do frame capture.
Signed-off-by: NBryan Wu <pengw@nvidia.com>
Signed-off-by: NThierry Reding <treding@nvidia.com>
上级 d40326f4
...@@ -102,6 +102,7 @@ u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs) ...@@ -102,6 +102,7 @@ u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs)
{ {
return (u32)atomic_add_return(incrs, &sp->max_val); return (u32)atomic_add_return(incrs, &sp->max_val);
} }
EXPORT_SYMBOL(host1x_syncpt_incr_max);
/* /*
* Write cached syncpoint and waitbase values to hardware. * Write cached syncpoint and waitbase values to hardware.
......
...@@ -136,6 +136,7 @@ u32 host1x_syncpt_id(struct host1x_syncpt *sp); ...@@ -136,6 +136,7 @@ u32 host1x_syncpt_id(struct host1x_syncpt *sp);
u32 host1x_syncpt_read_min(struct host1x_syncpt *sp); u32 host1x_syncpt_read_min(struct host1x_syncpt *sp);
u32 host1x_syncpt_read_max(struct host1x_syncpt *sp); u32 host1x_syncpt_read_max(struct host1x_syncpt *sp);
int host1x_syncpt_incr(struct host1x_syncpt *sp); int host1x_syncpt_incr(struct host1x_syncpt *sp);
u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs);
int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout,
u32 *value); u32 *value);
struct host1x_syncpt *host1x_syncpt_request(struct device *dev, struct host1x_syncpt *host1x_syncpt_request(struct device *dev,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册