mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-26 01:25:40 +07:00
1ccea77e2a
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details you should have received a copy of the gnu general public license along with this program if not see http www gnu org licenses this program is free software you can redistribute it and or modify it under the terms of the gnu general public license as published by the free software foundation either version 2 of the license or at your option any later version this program is distributed in the hope that it will be useful but without any warranty without even the implied warranty of merchantability or fitness for a particular purpose see the gnu general public license for more details [based] [from] [clk] [highbank] [c] you should have received a copy of the gnu general public license along with this program if not see http www gnu org licenses extracted by the scancode license scanner the SPDX license identifier GPL-2.0-or-later has been chosen to replace the boilerplate/reference in 355 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Jilayne Lovejoy <opensource@jilayne.com> Reviewed-by: Steve Winslow <swinslow@gmail.com> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190519154041.837383322@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
54 lines
1.3 KiB
C
54 lines
1.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
/*
|
|
* Copyright (C) 2016 BayLibre, SAS
|
|
* Author: Neil Armstrong <narmstrong@baylibre.com>
|
|
*/
|
|
|
|
/* Video Input Unit */
|
|
|
|
#ifndef __MESON_VIU_H
|
|
#define __MESON_VIU_H
|
|
|
|
/* OSDx_BLKx_CFG */
|
|
#define OSD_CANVAS_SEL 16
|
|
|
|
#define OSD_ENDIANNESS_LE BIT(15)
|
|
#define OSD_ENDIANNESS_BE (0)
|
|
|
|
#define OSD_BLK_MODE_422 (0x03 << 8)
|
|
#define OSD_BLK_MODE_16 (0x04 << 8)
|
|
#define OSD_BLK_MODE_32 (0x05 << 8)
|
|
#define OSD_BLK_MODE_24 (0x07 << 8)
|
|
|
|
#define OSD_OUTPUT_COLOR_RGB BIT(7)
|
|
#define OSD_OUTPUT_COLOR_YUV (0)
|
|
|
|
#define OSD_COLOR_MATRIX_32_RGBA (0x00 << 2)
|
|
#define OSD_COLOR_MATRIX_32_ARGB (0x01 << 2)
|
|
#define OSD_COLOR_MATRIX_32_ABGR (0x02 << 2)
|
|
#define OSD_COLOR_MATRIX_32_BGRA (0x03 << 2)
|
|
|
|
#define OSD_COLOR_MATRIX_24_RGB (0x00 << 2)
|
|
|
|
#define OSD_COLOR_MATRIX_16_RGB655 (0x00 << 2)
|
|
#define OSD_COLOR_MATRIX_16_RGB565 (0x04 << 2)
|
|
|
|
#define OSD_INTERLACE_ENABLED BIT(1)
|
|
#define OSD_INTERLACE_ODD BIT(0)
|
|
#define OSD_INTERLACE_EVEN (0)
|
|
|
|
/* OSDx_CTRL_STAT */
|
|
#define OSD_ENABLE BIT(21)
|
|
#define OSD_BLK0_ENABLE BIT(0)
|
|
|
|
#define OSD_GLOBAL_ALPHA_SHIFT 12
|
|
|
|
/* OSDx_CTRL_STAT2 */
|
|
#define OSD_REPLACE_EN BIT(14)
|
|
#define OSD_REPLACE_SHIFT 6
|
|
|
|
void meson_viu_osd1_reset(struct meson_drm *priv);
|
|
void meson_viu_init(struct meson_drm *priv);
|
|
|
|
#endif /* __MESON_VIU_H */
|