| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * 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. |
|---|
| 12 | 4 | */ |
|---|
| 13 | 5 | |
|---|
| 14 | 6 | #include <drm/drm_fourcc.h> |
|---|
| .. | .. |
|---|
| 265 | 257 | writel(IPU_PRE_CTRL_SDW_UPDATE, pre->regs + IPU_PRE_CTRL_SET); |
|---|
| 266 | 258 | } |
|---|
| 267 | 259 | |
|---|
| 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 | + |
|---|
| 268 | 266 | u32 ipu_pre_get_baddr(struct ipu_pre *pre) |
|---|
| 269 | 267 | { |
|---|
| 270 | 268 | return (u32)pre->buffer_paddr; |
|---|