Skip to content

Commit

Permalink
gpu: host1x: export host1x_syncpt_incr_max() function
Browse files Browse the repository at this point in the history
Tegra V4L2 camera driver needs this function to do frame capture.

Signed-off-by: Bryan Wu <pengw@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
  • Loading branch information
Bryan Wu authored and Thierry Reding committed Apr 4, 2014
1 parent d40326f commit 64400c3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/host1x/syncpt.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs)
{
return (u32)atomic_add_return(incrs, &sp->max_val);
}
EXPORT_SYMBOL(host1x_syncpt_incr_max);

/*
* Write cached syncpoint and waitbase values to hardware.
Expand Down
1 change: 1 addition & 0 deletions include/linux/host1x.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_max(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,
u32 *value);
struct host1x_syncpt *host1x_syncpt_request(struct device *dev,
Expand Down

0 comments on commit 64400c3

Please sign in to comment.