mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-09-02 18:06:13 +02:00

This patch forwards IPUv3 common driver from imx_4.19.y kernel. This includs IPUv3 common, IPUv3 prefetch engine and VDOA support. Reviewed-by: Sandor Yu <Sandor.yu@nxp.com> Signed-off-by: Liu Ying <victor.liu@nxp.com> [ Aisheng: squash legacy patches ] Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com> [ Liu Ying: Use platform_get_irq() to get vdoa irq, not platform_get_resource() ] [ Liu Ying: Check bypass_reset to do internal reset in ipu_probe() ] Signed-off-by: Liu Ying <victor.liu@nxp.com> [ Liu Ying: Set ipu->online to false if device_reset() fails ] Signed-off-by: Liu Ying <victor.liu@nxp.com> [ Liu Ying: Call dev_err_probe() if device_reset() fails in ipu_probe() ] Signed-off-by: Liu Ying <victor.liu@nxp.com> [ Robby Cai: Update class_create() api ] Signed-off-by: Robby Cai <robby.cai@nxp.com>
39 lines
872 B
C
39 lines
872 B
C
/*
|
|
* Copyright 2005-2015 Freescale Semiconductor, Inc.
|
|
*/
|
|
|
|
/*
|
|
* The code contained herein is licensed under the GNU Lesser General
|
|
* Public License. You may obtain a copy of the GNU Lesser General
|
|
* Public License Version 2.1 or later at the following locations:
|
|
*
|
|
* http://www.opensource.org/licenses/lgpl-license.html
|
|
* http://www.gnu.org/copyleft/lgpl.html
|
|
*/
|
|
|
|
/*!
|
|
* @defgroup IPU MXC Image Processing Unit (IPU) Driver
|
|
*/
|
|
/*!
|
|
* @file linux/ipu.h
|
|
*
|
|
* @brief This file contains the IPU driver API declarations.
|
|
*
|
|
* @ingroup IPU
|
|
*/
|
|
|
|
#ifndef __LINUX_IPU_H__
|
|
#define __LINUX_IPU_H__
|
|
|
|
#include <linux/interrupt.h>
|
|
#include <uapi/linux/ipu.h>
|
|
|
|
unsigned int fmt_to_bpp(unsigned int pixelformat);
|
|
cs_t colorspaceofpixel(int fmt);
|
|
int need_csc(int ifmt, int ofmt);
|
|
|
|
int ipu_queue_task(struct ipu_task *task);
|
|
int ipu_check_task(struct ipu_task *task);
|
|
|
|
#endif
|