1 2 /* 3 * Hawkview ISP - sun8iw12p1_vin_cfg.h module 4 * 5 * Copyright (c) 2016 by Allwinnertech Co., Ltd. http://www.allwinnertech.com 6 * 7 * Authors: Zhao Wei <zhaowei@allwinnertech.com> 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License version 2 as 11 * published by the Free Software Foundation. 12 */ 13 14 #ifndef _SUN8IW12P1_VIN_CFG_H_ 15 #define _SUN8IW12P1_VIN_CFG_H_ 16 17 #define CSI_TOP_REGS_BASE 0x06600000 18 19 #define CSI0_REGS_BASE 0x06601000 20 #define CSI1_REGS_BASE 0x06602000 21 #define CSI2_REGS_BASE 0x06603000 22 #define CSI3_REGS_BASE 0x06604000 23 24 #define CSI_CCI0_REG_BASE 0x06614000 25 #define CSI_CCI1_REG_BASE 0x06614400 26 #define CSI_CCI2_REG_BASE 0x06614800 27 #define CSI_CCI3_REG_BASE 0x06614c00 28 29 #define VIPP0_REGS_BASE 0x02101000 30 #define VIPP1_REGS_BASE 0x02101400 31 #define VIPP2_REGS_BASE 0x02101800 32 #define VIPP3_REGS_BASE 0x02101c00 33 #define VIPP4_REGS_BASE 0x02102000 34 #define VIPP5_REGS_BASE 0x02102400 35 #define VIPP6_REGS_BASE 0x02102800 36 #define VIPP7_REGS_BASE 0x02102c00 37 38 #define ISP_REGS_BASE 0x02100000 39 #define ISP0_REGS_BASE 0x02100000 40 #define ISP1_REGS_BASE 0x02100800 41 42 #define GPIO_REGS_VBASE 0x0300b000 43 44 #define CPU_DRAM_PADDR_ORG 0x40000000 45 #define HW_DMA_OFFSET 0x00000000 46 47 /*set vin core clk base on sensor size*/ 48 #define CORE_CLK_RATE_FOR_2M (108*1000*1000) 49 #define CORE_CLK_RATE_FOR_3M (216*1000*1000) 50 #define CORE_CLK_RATE_FOR_5M (216*1000*1000) 51 #define CORE_CLK_RATE_FOR_8M (432*1000*1000) 52 #define CORE_CLK_RATE_FOR_16M (432*1000*1000) 53 54 /*CSI & ISP size configs*/ 55 56 #define CSI_REG_SIZE 0x1000 57 #define CSI_CCI_REG_SIZE 0x0400 58 59 #define MIPI_CSI2_REG_SIZE 0x1000 60 #define MIPI_DPHY_REG_SIZE 0x1000 61 62 #define VIN_MAX_DEV 8 63 #define VIN_MAX_CSI 4 64 #define VIN_MAX_CCI 4 65 #define VIN_MAX_TDM 0 66 #define VIN_MAX_MIPI 2 67 #define VIN_MAX_ISP 4 68 #define VIN_MAX_SCALER 8 69 70 #define MAX_CH_NUM 4 71 72 #endif /*_SUN8IW12P1_VIN_CFG_H_*/ 73