/*
 * Copyright (C) 2021 Alibaba Group Holding Limited
 * Author: Shenwuyi <shenwuyi.swy@alibaba-inc.com>
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
 * published by the Free Software Foundation.
 */

#ifndef _VI_PRE_REG_H_
#define _VI_PRE_REG_H_
#define		G1_MUX3_2			0x0
#define		G1_MODSEL			0x4
#define		G1_IDNUM			0x8
#define		G1_RESCFG			0xC
#define		G1_HDRCTRL0			0x10
#define		G1_HDRCTRL1			0x14
#define		G1_HDRCTRL2			0x18
#define		G1_HDRCTRL3			0x1C
#define		G1_HDRCTRL4			0x20
#define		G1_ERR_MAKS			0x24
#define		G1_VMARGINCFG_IPI1	0x28
#define		G1_HMARGINCFG_IPI1	0x2C
#define		G1_VMARGINCFG_IPI2	0x30
#define		G1_HMARGINCFG_IPI2	0x34
#define		G1_VMARGINCFG_IPI3	0x38
#define		G1_HMARGINCFG_IPI3	0x3C
#define		G1_RESCFG2			0x40
#define		G1_RESCFG3			0x44
#define		G2_RESEV			0x48
#define		G2_MODSEL			0x4C
#define		G2_IDNUM			0x50
#define		G2_RESCFG			0x54
#define		G2_HDRCTRL0			0x58
#define		G2_HDRCTRL1			0x5C
#define		G2_HDRCTRL2			0x60
#define		G2_HDRCTRL3			0x64
#define		G2_HDRCTRL4			0x68
#define		G2_ERR_MAKS			0x6C
#define		G2_VMARGINCFG_IPI1	0x70
#define		G2_HMARGINCFG_IPI1	0x74
#define		G2_VMARGINCFG_IPI2	0x78
#define		G2_HMARGINCFG_IPI2	0x7C
#define		G2_VMARGINCFG_IPI3	0x80
#define		G2_HMARGINCFG_IPI3	0x84
#define		G2_RESCFG2			0x88
#define		G2_RESCFG3			0x8C
#define		ISPSEL				0x90
#define		HDRPRO_CTRL1		0x94
#define		HDRPRO_CTRL2		0x98
#define		HDRPRO_COE1			0x9C
#define		HDRPRO_COE2			0xA0
#define		HDRPRO_COE3			0xA4
#define		HDRPRO_COE4			0xA8
#define		HDRPRO_COE5			0xAC
#define		HDRPRO_LINW1		0xB0
#define		HDRPRO_LINW2		0xB4
#define		HDRPRO_LINW3		0xB8
#define		HDRPRO_LINW4		0xBC
#define		HDRPRO_LINW5		0xC0
#define		HDRPRO_LINW6		0xC4
#define		HDRPRO_LINW7		0xC8
#define		HDRPRO_LINW8		0xCC
#define		HDRPRO_LINA1		0xD0
#define		HDRPRO_LINA2		0xD4
#define		HDRPRO_LINA3		0xD8
#define		HDRPRO_LINA4		0xDC
#define		HDRPRO_LINA5		0xE0
#define		HDRPRO_LINA6		0xE4
#define		HDRPRO_LINA7		0xE8
#define		HDRPRO_LINA8		0xEC
#define		HDRPRO_LINA9		0xF0
#define		HDRPRO_LINA10		0xF4
#define		HDRPRO_LINA11		0xF8
#define		HDRPRO_LINA12		0xFC
#define		HDRPRO_LINA13		0x100
#define		HDRPRO_LINA14		0x104
#define		HDRPRO_LINA15		0x108
#define		HDRPRO_LINA16		0x10C
#define		HDRPRO_LINB1		0x110
#define		HDRPRO_LINB2		0x114
#define		HDRPRO_LINB3		0x118
#define		HDRPRO_LINB4		0x11C
#define		HDRPRO_LINB5		0x120
#define		HDRPRO_LINB6		0x124
#define		HDRPRO_LINB7		0x128
#define		HDRPRO_LINB8		0x12C
#define		HDRPRO_LINB9		0x130
#define		HDRPRO_LINB10		0x134
#define		HDRPRO_LINB11		0x138
#define		HDRPRO_LINB12		0x13C
#define		HDRPRO_LINB13		0x140
#define		HDRPRO_LINB14		0x144
#define		HDRPRO_LINB15		0x148
#define		HDRPRO_LINB16		0x14C
#define		G0_RESEV			0x150
#define		G0_MODSEL			0x154
#define		G0_IDNUM			0x158
#define		G0_RESCFG			0x15C
#define		G0_HDRCTRL0			0x160
#define		G0_HDRCTRL1			0x164
#define		G0_HDRCTRL2			0x168
#define		G0_HDRCTRL3			0x16C
#define		G0_HDRCTRL4			0x170
#define		G0_ERR_MAKS			0x174
#define		G0_VMARGINCFG_IPI1	0x178
#define		G0_HMARGINCFG_IPI1	0x17C
#define		G0_VMARGINCFG_IPI2	0x180
#define		G0_HMARGINCFG_IPI2	0x184
#define		G0_VMARGINCFG_IPI3	0x188
#define		G0_HMARGINCFG_IPI3	0x18C
#define		G0_RESCFG2			0x190
#define		G0_RESCFG3			0x194
#define		MIPI2DMA_CTRL0		0x198
#define		MIPI2DMA_CTRL1		0x19C
#define		MIPI2DMA_CTRL2		0x1A0
#define		MIPI2DMA_CTRL3		0x1A4
#define		MIPI2DMA_CTRL4		0x1A8
#define		MIPI2DMA_CTRL5		0x1AC
#define		MIPI2DMA_CTRL6		0x1B0
#define		MIPI2DMA_CTRL7		0x1B4
#define		MIPI2DMA_CTRL8		0x1B8
#define		MIPI2DMA_CTRL9		0x1BC
#define		MIPI2DMA_CTRL10		0x1C0
#define		MIPI2DMA_CTRL11		0x1C4
#define		MIPI2DMA_CTRL12		0x1C8
#define		MIPI2DMA_CTRL13		0x1CC
#define		MIPI2DMA_CTRL14		0x1D0
#define		MIPI2DMA_CTRL15		0x1D4
#define		MIPI2DMA_CTRL16		0x1D8
#define		MIPI2DMA_CTRL17		0x1DC
#define		MIPI2DMA_CTRL18		0x1E0
#define		MIPI2DMA_CTRL19		0x1E4
#define		MIPI2DMA_CTRL20		0x1E8
#define		MIPI2DMA_CTRL21		0x1EC
#define		MIPI2DMA_CTRL22		0x1F0
#define		MIPI2DMA_CTRL23		0x1F4
#define		MIPI2DMA_CTRL24		0x1F8
#define		MIPI2DMA_CTRL25		0x1FC
#define		MIPI2DMA_CTRL26		0x200
#define		MIPI2DMA_CTRL27		0x204
#define		MIPI2DMA_CTRL28		0x208
#define		MIPI2DMA_CTRL29		0x20C
#define		MIPI2DMA_CTRL30		0x210
#define		MIPI2DMA_CTRL31		0x214
#define		MIPI2DMA_CTRL32		0x218
#define		MIPI2DMA_CTRL33		0x21C
#define		MIPI2DMA_CTRL34		0x220
#define		MIPI2DMA_CTRL35		0x224
#define		MIPI2DMA_CTRL36		0x228
#define		MIPI2DMA_CTRL37		0x22C
#define		MIPI2DMA_CTRL38		0x230
#define		MIPI2DMA_CTRL39		0x234
#define		MIPI2DMA_CTRL40		0x238
#define		MIPI2DMA_CTRL41		0x23C
#define		MIPI2DMA_CTRL42		0x240
#define		MIPI2DMA_CTRL43		0x244
#define		MIPI2DMA_CTRL44		0x248
#define		MIPI2DMA_CTRL45		0x24C
#define		MIPI2DMA_CTRL46		0x250
#define		MIPI2DMA_CTRL47		0x254
#define		MIPI2DMA_CTRL48		0x258
#define		MIPI2DMA_CTRL49		0x25C
#define		MIPI2DMA_CTRL50		0x260
#define		MIPI2DMA_CTRL51		0x264
#endif /*_VI_PRE_REG_H_*/
