hc
2024-05-16 8d2a02b24d66aa359e83eebc1ed3c0f85367a1cb
kernel/drivers/gpu/ipu-v3/ipu-pre.c
....@@ -1,14 +1,6 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Copyright (c) 2017 Lucas Stach, Pengutronix
3
- *
4
- * This program is free software; you can redistribute it and/or modify it
5
- * under the terms and conditions of the GNU General Public License,
6
- * version 2, as published by the Free Software Foundation.
7
- *
8
- * This program is distributed in the hope it will be useful, but WITHOUT
9
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
10
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
11
- * more details.
124 */
135
146 #include <drm/drm_fourcc.h>
....@@ -265,6 +257,12 @@
265257 writel(IPU_PRE_CTRL_SDW_UPDATE, pre->regs + IPU_PRE_CTRL_SET);
266258 }
267259
260
+bool ipu_pre_update_pending(struct ipu_pre *pre)
261
+{
262
+ return !!(readl_relaxed(pre->regs + IPU_PRE_CTRL) &
263
+ IPU_PRE_CTRL_SDW_UPDATE);
264
+}
265
+
268266 u32 ipu_pre_get_baddr(struct ipu_pre *pre)
269267 {
270268 return (u32)pre->buffer_paddr;