* [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board
@ 2010-09-30 4:48 Kyungmin Park
2010-10-04 23:44 ` Kyungmin Park
2010-10-05 9:26 ` Kukjin Kim
0 siblings, 2 replies; 3+ messages in thread
From: Kyungmin Park @ 2010-09-30 4:48 UTC (permalink / raw)
To: linux-arm-kernel
From: Kyungmin Park <kyungmin.park@samsung.com>
Camera devices use the I2C0 and Gyro uese the I2C1 on universal board.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
arch/arm/mach-s5pv310/Kconfig | 2 ++
arch/arm/mach-s5pv310/mach-universal_c210.c | 14 ++++++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig
index 178eab9..c207426 100644
--- a/arch/arm/mach-s5pv310/Kconfig
+++ b/arch/arm/mach-s5pv310/Kconfig
@@ -41,6 +41,8 @@ config MACH_UNIVERSAL_C210
bool "Mobile UNIVERSAL_C210 Board"
select CPU_S5PV310
select S5P_DEV_ONENAND
+ select S3C_DEV_I2C1
+ select S5PV310_SETUP_I2C1
help
Machine support for Samsung Mobile Universal S5PC210 Reference
Board. S5PC210(MCP) is one of package option of S5PV310
diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-s5pv310/mach-universal_c210.c
index e169849..deffeb1 100644
--- a/arch/arm/mach-s5pv310/mach-universal_c210.c
+++ b/arch/arm/mach-s5pv310/mach-universal_c210.c
@@ -10,6 +10,7 @@
#include <linux/platform_device.h>
#include <linux/serial_core.h>
#include <linux/input.h>
+#include <linux/i2c.h>
#include <linux/gpio_keys.h>
#include <linux/gpio.h>
@@ -116,6 +117,16 @@ static struct platform_device universal_gpio_keys = {
},
};
+/* I2C0 */
+static struct i2c_board_info i2c0_devs[] __initdata = {
+ /* Camera, To be updated */
+};
+
+/* I2C1 */
+static struct i2c_board_info i2c1_devs[] __initdata = {
+ /* Gyro, To be updated */
+};
+
static struct platform_device *universal_devices[] __initdata = {
&universal_gpio_keys,
&s5p_device_onenand,
@@ -134,6 +145,9 @@ static void __init universal_machine_init(void)
l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
#endif
+ i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs));
+ i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs));
+
/* Last */
platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices));
}
--
1.5.3.3
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board
2010-09-30 4:48 [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board Kyungmin Park
@ 2010-10-04 23:44 ` Kyungmin Park
2010-10-05 9:26 ` Kukjin Kim
1 sibling, 0 replies; 3+ messages in thread
From: Kyungmin Park @ 2010-10-04 23:44 UTC (permalink / raw)
To: linux-arm-kernel
Ping?
On Thu, Sep 30, 2010 at 1:48 PM, Kyungmin Park <kmpark@infradead.org> wrote:
> From: Kyungmin Park <kyungmin.park@samsung.com>
>
> Camera devices use the I2C0 and Gyro uese the I2C1 on universal board.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> ?arch/arm/mach-s5pv310/Kconfig ? ? ? ? ? ? ? | ? ?2 ++
> ?arch/arm/mach-s5pv310/mach-universal_c210.c | ? 14 ++++++++++++++
> ?2 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig
> index 178eab9..c207426 100644
> --- a/arch/arm/mach-s5pv310/Kconfig
> +++ b/arch/arm/mach-s5pv310/Kconfig
> @@ -41,6 +41,8 @@ config MACH_UNIVERSAL_C210
> ? ? ? ?bool "Mobile UNIVERSAL_C210 Board"
> ? ? ? ?select CPU_S5PV310
> ? ? ? ?select S5P_DEV_ONENAND
> + ? ? ? select S3C_DEV_I2C1
> + ? ? ? select S5PV310_SETUP_I2C1
> ? ? ? ?help
> ? ? ? ? ?Machine support for Samsung Mobile Universal S5PC210 Reference
> ? ? ? ? ?Board. S5PC210(MCP) is one of package option of S5PV310
> diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-s5pv310/mach-universal_c210.c
> index e169849..deffeb1 100644
> --- a/arch/arm/mach-s5pv310/mach-universal_c210.c
> +++ b/arch/arm/mach-s5pv310/mach-universal_c210.c
> @@ -10,6 +10,7 @@
> ?#include <linux/platform_device.h>
> ?#include <linux/serial_core.h>
> ?#include <linux/input.h>
> +#include <linux/i2c.h>
> ?#include <linux/gpio_keys.h>
> ?#include <linux/gpio.h>
>
> @@ -116,6 +117,16 @@ static struct platform_device universal_gpio_keys = {
> ? ? ? ?},
> ?};
>
> +/* I2C0 */
> +static struct i2c_board_info i2c0_devs[] __initdata = {
> + ? ? ? /* Camera, To be updated */
> +};
> +
> +/* I2C1 */
> +static struct i2c_board_info i2c1_devs[] __initdata = {
> + ? ? ? /* Gyro, To be updated */
> +};
> +
> ?static struct platform_device *universal_devices[] __initdata = {
> ? ? ? ?&universal_gpio_keys,
> ? ? ? ?&s5p_device_onenand,
> @@ -134,6 +145,9 @@ static void __init universal_machine_init(void)
> ? ? ? ?l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
> ?#endif
>
> + ? ? ? i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs));
> + ? ? ? i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs));
> +
> ? ? ? ?/* Last */
> ? ? ? ?platform_add_devices(universal_devices, ARRAY_SIZE(universal_devices));
> ?}
> --
> 1.5.3.3
>
>
> _______________________________________________
> linux-arm-kernel mailing list
> linux-arm-kernel at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board
2010-09-30 4:48 [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board Kyungmin Park
2010-10-04 23:44 ` Kyungmin Park
@ 2010-10-05 9:26 ` Kukjin Kim
1 sibling, 0 replies; 3+ messages in thread
From: Kukjin Kim @ 2010-10-05 9:26 UTC (permalink / raw)
To: linux-arm-kernel
Kyungmin Park wrote:
>
> From: Kyungmin Park <kyungmin.park@samsung.com>
>
> Camera devices use the I2C0 and Gyro uese the I2C1 on universal board.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> arch/arm/mach-s5pv310/Kconfig | 2 ++
> arch/arm/mach-s5pv310/mach-universal_c210.c | 14 ++++++++++++++
> 2 files changed, 16 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv310/Kconfig b/arch/arm/mach-s5pv310/Kconfig
> index 178eab9..c207426 100644
> --- a/arch/arm/mach-s5pv310/Kconfig
> +++ b/arch/arm/mach-s5pv310/Kconfig
> @@ -41,6 +41,8 @@ config MACH_UNIVERSAL_C210
> bool "Mobile UNIVERSAL_C210 Board"
> select CPU_S5PV310
> select S5P_DEV_ONENAND
> + select S3C_DEV_I2C1
> + select S5PV310_SETUP_I2C1
> help
> Machine support for Samsung Mobile Universal S5PC210 Reference
> Board. S5PC210(MCP) is one of package option of S5PV310
> diff --git a/arch/arm/mach-s5pv310/mach-universal_c210.c b/arch/arm/mach-
> s5pv310/mach-universal_c210.c
> index e169849..deffeb1 100644
> --- a/arch/arm/mach-s5pv310/mach-universal_c210.c
> +++ b/arch/arm/mach-s5pv310/mach-universal_c210.c
> @@ -10,6 +10,7 @@
> #include <linux/platform_device.h>
> #include <linux/serial_core.h>
> #include <linux/input.h>
> +#include <linux/i2c.h>
> #include <linux/gpio_keys.h>
> #include <linux/gpio.h>
>
> @@ -116,6 +117,16 @@ static struct platform_device universal_gpio_keys = {
> },
> };
>
> +/* I2C0 */
> +static struct i2c_board_info i2c0_devs[] __initdata = {
> + /* Camera, To be updated */
> +};
> +
> +/* I2C1 */
> +static struct i2c_board_info i2c1_devs[] __initdata = {
> + /* Gyro, To be updated */
> +};
> +
> static struct platform_device *universal_devices[] __initdata = {
> &universal_gpio_keys,
> &s5p_device_onenand,
> @@ -134,6 +145,9 @@ static void __init universal_machine_init(void)
> l2x0_init(S5P_VA_L2CC, 1 << 28, 0xffffffff);
> #endif
>
> + i2c_register_board_info(0, i2c0_devs, ARRAY_SIZE(i2c0_devs));
> + i2c_register_board_info(1, i2c1_devs, ARRAY_SIZE(i2c1_devs));
> +
> /* Last */
> platform_add_devices(universal_devices,
> ARRAY_SIZE(universal_devices));
> }
> --
Ok...will apply.
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <kgene.kim@samsung.com>, Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-10-05 9:26 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 4:48 [PATCH 5/7] ARM: S5PC210: I2C0/1 devices support on Universal board Kyungmin Park
2010-10-04 23:44 ` Kyungmin Park
2010-10-05 9:26 ` Kukjin Kim
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).