mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 04:15:07 +07:00
d5e550cf9f
The data transfer capability register was defined but its bits were not. Do that now. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
113 lines
3.6 KiB
C
113 lines
3.6 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* drivers/media/i2c/smiapp/smiapp-reg.h
|
|
*
|
|
* Generic driver for SMIA/SMIA++ compliant camera modules
|
|
*
|
|
* Copyright (C) 2011--2012 Nokia Corporation
|
|
* Contact: Sakari Ailus <sakari.ailus@iki.fi>
|
|
*/
|
|
|
|
#ifndef __SMIAPP_REG_H_
|
|
#define __SMIAPP_REG_H_
|
|
|
|
#include <linux/bits.h>
|
|
|
|
#include "smiapp-reg-defs.h"
|
|
|
|
/* Bits for above register */
|
|
#define SMIAPP_IMAGE_ORIENTATION_HFLIP BIT(0)
|
|
#define SMIAPP_IMAGE_ORIENTATION_VFLIP BIT(1)
|
|
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_CTRL_EN BIT(0)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_CTRL_WR_EN BIT(1)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_CTRL_ERR_CLEAR BIT(2)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_STATUS_RD_READY BIT(0)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_STATUS_WR_READY BIT(1)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_STATUS_EDATA BIT(2)
|
|
#define SMIAPP_DATA_TRANSFER_IF_1_STATUS_EUSAGE BIT(3)
|
|
|
|
#define SMIAPP_DATA_TRANSFER_IF_CAPABILITY_SUPPORTED BIT(0)
|
|
#define SMIAPP_DATA_TRANSFER_IF_CAPABILITY_POLL BIT(2)
|
|
|
|
#define SMIAPP_SOFTWARE_RESET BIT(0)
|
|
|
|
#define SMIAPP_FLASH_MODE_CAPABILITY_SINGLE_STROBE BIT(0)
|
|
#define SMIAPP_FLASH_MODE_CAPABILITY_MULTIPLE_STROBE BIT(1)
|
|
|
|
#define SMIAPP_DPHY_CTRL_AUTOMATIC 0
|
|
/* DPHY control based on REQUESTED_LINK_BIT_RATE_MBPS */
|
|
#define SMIAPP_DPHY_CTRL_UI 1
|
|
#define SMIAPP_DPHY_CTRL_REGISTER 2
|
|
|
|
#define SMIAPP_COMPRESSION_MODE_SIMPLE_PREDICTOR 1
|
|
#define SMIAPP_COMPRESSION_MODE_ADVANCED_PREDICTOR 2
|
|
|
|
#define SMIAPP_MODE_SELECT_SOFTWARE_STANDBY 0
|
|
#define SMIAPP_MODE_SELECT_STREAMING 1
|
|
|
|
#define SMIAPP_SCALING_MODE_NONE 0
|
|
#define SMIAPP_SCALING_MODE_HORIZONTAL 1
|
|
#define SMIAPP_SCALING_MODE_BOTH 2
|
|
|
|
#define SMIAPP_SCALING_CAPABILITY_NONE 0
|
|
#define SMIAPP_SCALING_CAPABILITY_HORIZONTAL 1
|
|
#define SMIAPP_SCALING_CAPABILITY_BOTH 2 /* horizontal/both */
|
|
|
|
/* digital crop right before scaler */
|
|
#define SMIAPP_DIGITAL_CROP_CAPABILITY_NONE 0
|
|
#define SMIAPP_DIGITAL_CROP_CAPABILITY_INPUT_CROP 1
|
|
|
|
#define SMIAPP_BINNING_CAPABILITY_NO 0
|
|
#define SMIAPP_BINNING_CAPABILITY_YES 1
|
|
|
|
/* Maximum number of binning subtypes */
|
|
#define SMIAPP_BINNING_SUBTYPES 253
|
|
|
|
#define SMIAPP_PIXEL_ORDER_GRBG 0
|
|
#define SMIAPP_PIXEL_ORDER_RGGB 1
|
|
#define SMIAPP_PIXEL_ORDER_BGGR 2
|
|
#define SMIAPP_PIXEL_ORDER_GBRG 3
|
|
|
|
#define SMIAPP_DATA_FORMAT_MODEL_TYPE_NORMAL 1
|
|
#define SMIAPP_DATA_FORMAT_MODEL_TYPE_EXTENDED 2
|
|
#define SMIAPP_DATA_FORMAT_MODEL_TYPE_NORMAL_N 8
|
|
#define SMIAPP_DATA_FORMAT_MODEL_TYPE_EXTENDED_N 16
|
|
|
|
#define SMIAPP_FRAME_FORMAT_MODEL_TYPE_2BYTE 0x01
|
|
#define SMIAPP_FRAME_FORMAT_MODEL_TYPE_4BYTE 0x02
|
|
#define SMIAPP_FRAME_FORMAT_MODEL_SUBTYPE_NROWS_MASK 0x0f
|
|
#define SMIAPP_FRAME_FORMAT_MODEL_SUBTYPE_NCOLS_MASK 0xf0
|
|
#define SMIAPP_FRAME_FORMAT_MODEL_SUBTYPE_NCOLS_SHIFT 4
|
|
|
|
#define SMIAPP_FRAME_FORMAT_DESC_2_PIXELCODE_MASK 0xf000
|
|
#define SMIAPP_FRAME_FORMAT_DESC_2_PIXELCODE_SHIFT 12
|
|
#define SMIAPP_FRAME_FORMAT_DESC_2_PIXELS_MASK 0x0fff
|
|
|
|
#define SMIAPP_FRAME_FORMAT_DESC_4_PIXELCODE_MASK 0xf0000000
|
|
#define SMIAPP_FRAME_FORMAT_DESC_4_PIXELCODE_SHIFT 28
|
|
#define SMIAPP_FRAME_FORMAT_DESC_4_PIXELS_MASK 0x0000ffff
|
|
|
|
#define SMIAPP_FRAME_FORMAT_DESC_PIXELCODE_EMBEDDED 1
|
|
#define SMIAPP_FRAME_FORMAT_DESC_PIXELCODE_DUMMY 2
|
|
#define SMIAPP_FRAME_FORMAT_DESC_PIXELCODE_BLACK 3
|
|
#define SMIAPP_FRAME_FORMAT_DESC_PIXELCODE_DARK 4
|
|
#define SMIAPP_FRAME_FORMAT_DESC_PIXELCODE_VISIBLE 5
|
|
|
|
#define SMIAPP_FAST_STANDBY_CTRL_COMPLETE_FRAMES 0
|
|
#define SMIAPP_FAST_STANDBY_CTRL_IMMEDIATE 1
|
|
|
|
/* Scaling N factor */
|
|
#define SMIAPP_SCALE_N 16
|
|
|
|
/* Image statistics registers */
|
|
/* Registers 0x2000 to 0x2fff are reserved for future
|
|
* use for statistics features.
|
|
*/
|
|
|
|
/* Manufacturer Specific Registers: 0x3000 to 0x3fff
|
|
* The manufacturer specifies these as a black box.
|
|
*/
|
|
|
|
#endif /* __SMIAPP_REG_H_ */
|