-
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.
ARM: S5P: Add platform support for MIPI CSIS devices
There may be up to two MIPI CSI slave interfaces depending on the SoC version. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
- Loading branch information
Sylwester Nawrocki
authored and
Kukjin Kim
committed
Dec 30, 2010
1 parent
7db8cb2
commit 3bbef1b
Showing
6 changed files
with
111 additions
and
0 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,34 @@ | ||
/* | ||
* Copyright (C) 2010 Samsung Electronics | ||
* | ||
* S5P series device definition for MIPI-CSIS channel 0 | ||
* | ||
* 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/kernel.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/platform_device.h> | ||
#include <mach/map.h> | ||
|
||
static struct resource s5p_mipi_csis0_resource[] = { | ||
[0] = { | ||
.start = S5P_PA_MIPI_CSIS0, | ||
.end = S5P_PA_MIPI_CSIS0 + SZ_4K - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = IRQ_MIPI_CSIS0, | ||
.end = IRQ_MIPI_CSIS0, | ||
.flags = IORESOURCE_IRQ, | ||
} | ||
}; | ||
|
||
struct platform_device s5p_device_mipi_csis0 = { | ||
.name = "s5p-mipi-csis", | ||
.id = 0, | ||
.num_resources = ARRAY_SIZE(s5p_mipi_csis0_resource), | ||
.resource = s5p_mipi_csis0_resource, | ||
}; |
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,34 @@ | ||
/* | ||
* Copyright (C) 2010 Samsung Electronics | ||
* | ||
* S5P series device definition for MIPI-CSIS channel 1 | ||
* | ||
* 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/kernel.h> | ||
#include <linux/interrupt.h> | ||
#include <linux/platform_device.h> | ||
#include <mach/map.h> | ||
|
||
static struct resource s5p_mipi_csis1_resource[] = { | ||
[0] = { | ||
.start = S5P_PA_MIPI_CSIS1, | ||
.end = S5P_PA_MIPI_CSIS1 + SZ_4K - 1, | ||
.flags = IORESOURCE_MEM, | ||
}, | ||
[1] = { | ||
.start = IRQ_MIPI_CSIS1, | ||
.end = IRQ_MIPI_CSIS1, | ||
.flags = IORESOURCE_IRQ, | ||
}, | ||
}; | ||
|
||
struct platform_device s5p_device_mipi_csis1 = { | ||
.name = "s5p-mipi-csis", | ||
.id = 1, | ||
.num_resources = ARRAY_SIZE(s5p_mipi_csis1_resource), | ||
.resource = s5p_mipi_csis1_resource, | ||
}; |
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,28 @@ | ||
/* | ||
* Copyright (C) 2010 Samsung Electronics | ||
* | ||
* S5P series MIPI CSI slave device support | ||
* | ||
* 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 PLAT_S5P_CSIS_H_ | ||
#define PLAT_S5P_CSIS_H_ __FILE__ | ||
|
||
/** | ||
* struct s5p_platform_mipi_csis - platform data for MIPI-CSIS | ||
* @clk_rate: bus clock frequency | ||
* @lanes: number of data lanes used | ||
* @alignment: data alignment in bits | ||
* @hs_settle: HS-RX settle time | ||
*/ | ||
struct s5p_platform_mipi_csis { | ||
unsigned long clk_rate; | ||
u8 lanes; | ||
u8 alignment; | ||
u8 hs_settle; | ||
}; | ||
|
||
#endif /* PLAT_S5P_CSIS_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