aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mipi_csi2.h
Commit message (Collapse)AuthorAge
* ENGR00292775 mipi csi2: Refine register accessLiu Ying2014-04-16
| | | | | | | | | | | | | | | | | | | | | | | | | The original mipi csi2 driver uses readl()/writel() to access the 32 bit mipi csi2 registers in the following way where info->mipi_csi2_base is a pointer which points to a 32 bit I/O memory cell of the mipi csi2's base address: writel(value, info->mipi_csi2_base + offset); readl(info->mipi_csi2_base + offset); This makes the register offset values shrink 4 times, comparing to the offset values documented in the reference manual. For example, we need to change the offset value from 0x004 to 0x001 so that we may access the register MIPI_CSI2_N_LANES correctly. This patch redefines the type of info->mipi_csi2_base to 'void __iomem *', then the offset values can be the same to what they are documented. Also, the macro names for the registers are aligned to the documentation. Acked-by: Robby Cai <R63905@freescale.com> Cc: Oliver Brown <oliver.brown@freescale.com> Signed-off-by: Liu Ying <Ying.Liu@freescale.com>
* ENGR00278652-1 [Media]: Add MIPI CSI2 driver filesOliver Brown2014-04-16
Copied mipi_csi.h from: commit 50ca92f4010a93be265de7aad501b4dcae095a63 Author: Sheng Nan <b38800@freescale.com> Date: Thu Mar 7 13:39:54 2013 +0800 ARM: include: remove definition of mipi-csi2 platform data Other files copied files from: commit 1fb93870965b7d8d67b4db6233a30c06d82f84fc Author: Liu Ying <Ying.Liu@freescale.com> Date: Thu Mar 21 12:15:52 2013 +0800 MIPI-CSI2:Fix a build warning - Changed includes files for 3.10 - Dropped deprecated __devexit - Added generic error message if probe fails - Added configuration and set default to 'n' Signed-off-by: Oliver Brown <oliver.brown@freescale.com>