diff options
| -rw-r--r-- | drivers/gpu/host1x/syncpt.c | 6 | ||||
| -rw-r--r-- | include/linux/host1x.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/drivers/gpu/host1x/syncpt.c b/drivers/gpu/host1x/syncpt.c index b10550ee1d89..6b7fdc1e2ed0 100644 --- a/drivers/gpu/host1x/syncpt.c +++ b/drivers/gpu/host1x/syncpt.c | |||
| @@ -425,6 +425,12 @@ u32 host1x_syncpt_read_min(struct host1x_syncpt *sp) | |||
| 425 | } | 425 | } |
| 426 | EXPORT_SYMBOL(host1x_syncpt_read_min); | 426 | EXPORT_SYMBOL(host1x_syncpt_read_min); |
| 427 | 427 | ||
| 428 | u32 host1x_syncpt_read(struct host1x_syncpt *sp) | ||
| 429 | { | ||
| 430 | return host1x_syncpt_load(sp); | ||
| 431 | } | ||
| 432 | EXPORT_SYMBOL(host1x_syncpt_read); | ||
| 433 | |||
| 428 | int host1x_syncpt_nb_pts(struct host1x *host) | 434 | int host1x_syncpt_nb_pts(struct host1x *host) |
| 429 | { | 435 | { |
| 430 | return host->info->nb_pts; | 436 | return host->info->nb_pts; |
diff --git a/include/linux/host1x.h b/include/linux/host1x.h index 464f33814a94..d2ba7d334039 100644 --- a/include/linux/host1x.h +++ b/include/linux/host1x.h | |||
| @@ -135,6 +135,7 @@ struct host1x_syncpt *host1x_syncpt_get(struct host1x *host, u32 id); | |||
| 135 | u32 host1x_syncpt_id(struct host1x_syncpt *sp); | 135 | 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 | u32 host1x_syncpt_read(struct host1x_syncpt *sp); | ||
| 138 | int host1x_syncpt_incr(struct host1x_syncpt *sp); | 139 | int host1x_syncpt_incr(struct host1x_syncpt *sp); |
| 139 | u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); | 140 | u32 host1x_syncpt_incr_max(struct host1x_syncpt *sp, u32 incrs); |
| 140 | int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, | 141 | int host1x_syncpt_wait(struct host1x_syncpt *sp, u32 thresh, long timeout, |
