.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Tegra host1x Syncpoints |
---|
3 | 4 | * |
---|
4 | 5 | * Copyright (c) 2010-2013, NVIDIA Corporation. |
---|
5 | | - * |
---|
6 | | - * This program is free software; you can redistribute it and/or modify it |
---|
7 | | - * under the terms and conditions of the GNU General Public License, |
---|
8 | | - * version 2, as published by the Free Software Foundation. |
---|
9 | | - * |
---|
10 | | - * This program is distributed in the hope it will be useful, but WITHOUT |
---|
11 | | - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
---|
12 | | - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
---|
13 | | - * more details. |
---|
14 | | - * |
---|
15 | | - * You should have received a copy of the GNU General Public License |
---|
16 | | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
---|
17 | 6 | */ |
---|
18 | 7 | |
---|
19 | 8 | #include <linux/io.h> |
---|
.. | .. |
---|
37 | 26 | */ |
---|
38 | 27 | static void syncpt_restore_wait_base(struct host1x_syncpt *sp) |
---|
39 | 28 | { |
---|
| 29 | +#if HOST1X_HW < 7 |
---|
40 | 30 | struct host1x *host = sp->host; |
---|
41 | 31 | |
---|
42 | 32 | host1x_sync_writel(host, sp->base_val, |
---|
43 | 33 | HOST1X_SYNC_SYNCPT_BASE(sp->id)); |
---|
| 34 | +#endif |
---|
44 | 35 | } |
---|
45 | 36 | |
---|
46 | 37 | /* |
---|
.. | .. |
---|
48 | 39 | */ |
---|
49 | 40 | static void syncpt_read_wait_base(struct host1x_syncpt *sp) |
---|
50 | 41 | { |
---|
| 42 | +#if HOST1X_HW < 7 |
---|
51 | 43 | struct host1x *host = sp->host; |
---|
52 | 44 | |
---|
53 | 45 | sp->base_val = |
---|
54 | 46 | host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(sp->id)); |
---|
| 47 | +#endif |
---|
55 | 48 | } |
---|
56 | 49 | |
---|
57 | 50 | /* |
---|
.. | .. |
---|
112 | 105 | { |
---|
113 | 106 | #if HOST1X_HW >= 6 |
---|
114 | 107 | struct host1x *host = sp->host; |
---|
115 | | - |
---|
116 | | - if (!host->hv_regs) |
---|
117 | | - return; |
---|
118 | 108 | |
---|
119 | 109 | host1x_sync_writel(host, |
---|
120 | 110 | HOST1X_SYNC_SYNCPT_CH_APP_CH(ch ? ch->id : 0xff), |
---|