diff options
author | Bryan Wu <pengw@nvidia.com> | 2014-02-19 17:48:36 -0500 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2014-04-04 03:12:49 -0400 |
commit | 64400c3791d9fcebf23318a289f9da964547a6f3 (patch) | |
tree | f08c8a638ece175432931e4ef713e4f9f8460b0b | |
parent | d40326f4b9f9617cdfd30f83a2db57d47e9c5bac (diff) |
gpu: host1x: export host1x_syncpt_incr_max() function
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>
-rw-r--r-- | drivers/gpu/host1x/syncpt.c | 1 | ||||
-rw-r--r-- | include/linux/host1x.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/syncpt.c b/drivers/gpu/host1x/syncpt.c index bfb09d802abd..b10550ee1d89 100644 --- a/drivers/gpu/host1x/syncpt.c +++ b/drivers/gpu/host1x/syncpt.c | |||
@@ -102,6 +102,7 @@ u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs) | |||
102 | { | 102 | { |
103 | return (u32)atomic_add_return(incrs, &sp->max_val); | 103 | return (u32)atomic_add_return(incrs, &sp->max_val); |
104 | } | 104 | } |
105 | EXPORT_SYMBOL(host1x_syncpt_incr_max); | ||
105 | 106 | ||
106 | /* | 107 | /* |
107 | * Write cached syncpoint and waitbase values to hardware. | 108 | * Write cached syncpoint and waitbase values to hardware. |
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 3af847273277..d2b52999e771 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h | |||
@@ -136,6 +136,7 @@ u32 host1x_syncpt_id(struct host1x_syncpt *sp); | |||
136 | u32 host1x_syncpt_read_min(struct host1x_syncpt *sp); | 136 | u32 host1x_syncpt_read_min(struct host1x_syncpt *sp); |
137 | u32 host1x_syncpt_read_max(struct host1x_syncpt *sp); | 137 | u32 host1x_syncpt_read_max(struct host1x_syncpt *sp); |
138 | int host1x_syncpt_incr(struct host1x_syncpt *sp); | 138 | int host1x_syncpt_incr(struct host1x_syncpt *sp); |
139 | u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); | ||
139 | int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, | 140 | int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, |
140 | u32 *value); | 141 | u32 *value); |
141 | struct host1x_syncpt *host1x_syncpt_request(struct device *dev, | 142 | struct host1x_syncpt *host1x_syncpt_request(struct device *dev, |