-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
V4L/DVB (11350): Add camera (CSI) driver for MX1
Add support for CMOS Sensor Interface on i.MX1 and i.MXL SoCs. create mode 100644 arch/arm/mach-mx1/ksym_mx1.c create mode 100644 arch/arm/mach-mx1/mx1_camera_fiq.S create mode 100644 arch/arm/plat-mxc/include/mach/mx1_camera.h create mode 100644 drivers/media/video/mx1_camera.c Signed-off-by: Paulius Zaleckas <paulius.zaleckas@teltonika.lt> Signed-off-by: Darius Augulis <augulis.darius@gmail.com> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
- Loading branch information
Paulius Zaleckas
authored and
Mauro Carvalho Chehab
committed
Apr 7, 2009
1 parent
b71df97
commit 6acc81c
Showing
9 changed files
with
940 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
/* | ||
* Exported ksyms of ARCH_MX1 | ||
* | ||
* Copyright (C) 2008, Darius Augulis <augulis.darius@gmail.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. | ||
*/ | ||
|
||
#include <linux/platform_device.h> | ||
#include <linux/module.h> | ||
|
||
#include <mach/mx1_camera.h> | ||
|
||
/* IMX camera FIQ handler */ | ||
EXPORT_SYMBOL(mx1_camera_sof_fiq_start); | ||
EXPORT_SYMBOL(mx1_camera_sof_fiq_end); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* Copyright (C) 2008 Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | ||
* | ||
* Based on linux/arch/arm/lib/floppydma.S | ||
* Copyright (C) 1995, 1996 Russell King | ||
* | ||
* 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. | ||
*/ | ||
#include <linux/linkage.h> | ||
#include <asm/assembler.h> | ||
|
||
.text | ||
.global mx1_camera_sof_fiq_end | ||
.global mx1_camera_sof_fiq_start | ||
mx1_camera_sof_fiq_start: | ||
@ enable dma | ||
ldr r12, [r9] | ||
orr r12, r12, #0x00000001 | ||
str r12, [r9] | ||
@ unmask DMA interrupt | ||
ldr r12, [r8] | ||
bic r12, r12, r13 | ||
str r12, [r8] | ||
@ disable SOF interrupt | ||
ldr r12, [r10] | ||
bic r12, r12, #0x00010000 | ||
str r12, [r10] | ||
@ clear SOF flag | ||
mov r12, #0x00010000 | ||
str r12, [r11] | ||
@ return from FIQ | ||
subs pc, lr, #4 | ||
mx1_camera_sof_fiq_end: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* | ||
* mx1_camera.h - i.MX1/i.MXL camera driver header file | ||
* | ||
* Copyright (c) 2008, Paulius Zaleckas <paulius.zaleckas@teltonika.lt> | ||
* Copyright (C) 2009, Darius Augulis <augulis.darius@gmail.com> | ||
* | ||
* Based on PXA camera.h file: | ||
* Copyright (C) 2003, Intel Corporation | ||
* Copyright (C) 2008, Guennadi Liakhovetski <kernel@pengutronix.de> | ||
* | ||
* 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 __ASM_ARCH_CAMERA_H_ | ||
#define __ASM_ARCH_CAMERA_H_ | ||
|
||
#define MX1_CAMERA_DATA_HIGH 1 | ||
#define MX1_CAMERA_PCLK_RISING 2 | ||
#define MX1_CAMERA_VSYNC_HIGH 4 | ||
|
||
extern unsigned char mx1_camera_sof_fiq_start, mx1_camera_sof_fiq_end; | ||
|
||
/** | ||
* struct mx1_camera_pdata - i.MX1/i.MXL camera platform data | ||
* @mclk_10khz: master clock frequency in 10kHz units | ||
* @flags: MX1 camera platform flags | ||
*/ | ||
struct mx1_camera_pdata { | ||
unsigned long mclk_10khz; | ||
unsigned long flags; | ||
}; | ||
|
||
#endif /* __ASM_ARCH_CAMERA_H_ */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.