* [PATCH 4/7] ARM: S5PC210: I2C1/2 support
@ 2010-09-30 4:48 Kyungmin Park
2010-10-07 2:01 ` Kukjin Kim
0 siblings, 1 reply; 2+ 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>
Define the I2C1/2 physcial address & interrupts.
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
arch/arm/mach-s5pv310/include/mach/irqs.h | 2 ++
arch/arm/mach-s5pv310/include/mach/map.h | 6 ++++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/arch/arm/mach-s5pv310/include/mach/irqs.h b/arch/arm/mach-s5pv310/include/mach/irqs.h
index e81332f..aa17ec7 100644
--- a/arch/arm/mach-s5pv310/include/mach/irqs.h
+++ b/arch/arm/mach-s5pv310/include/mach/irqs.h
@@ -70,6 +70,8 @@
#define IRQ_UART4 COMBINER_IRQ(26, 4)
#define IRQ_IIC COMBINER_IRQ(27, 0)
+#define IRQ_IIC1 COMBINER_IRQ(27, 1)
+#define IRQ_IIC2 COMBINER_IRQ(27, 2)
#define IRQ_HSMMC0 COMBINER_IRQ(29, 0)
#define IRQ_HSMMC1 COMBINER_IRQ(29, 1)
diff --git a/arch/arm/mach-s5pv310/include/mach/map.h b/arch/arm/mach-s5pv310/include/mach/map.h
index eab0ff7..118ad48 100644
--- a/arch/arm/mach-s5pv310/include/mach/map.h
+++ b/arch/arm/mach-s5pv310/include/mach/map.h
@@ -69,7 +69,7 @@
#define S5P_SZ_UART SZ_256
-#define S5PV310_PA_IIC0 (0x13860000)
+#define S5PV310_PA_I2C(x) (0x13860000 + ((x) * 0x10000))
#define S5PV310_PA_TIMER (0x139D0000)
#define S5P_PA_TIMER S5PV310_PA_TIMER
@@ -83,7 +83,9 @@
#define S3C_PA_HSMMC1 S5PV310_PA_HSMMC(1)
#define S3C_PA_HSMMC2 S5PV310_PA_HSMMC(2)
#define S3C_PA_HSMMC3 S5PV310_PA_HSMMC(3)
-#define S3C_PA_IIC S5PV310_PA_IIC0
+#define S3C_PA_IIC S5PV310_PA_I2C(0)
+#define S3C_PA_IIC1 S5PV310_PA_I2C(1)
+#define S3C_PA_IIC2 S5PV310_PA_I2C(2)
#define S3C_PA_RTC S5PV310_PA_RTC
#define S3C_PA_WDT S5PV310_PA_WATCHDOG
--
1.5.3.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH 4/7] ARM: S5PC210: I2C1/2 support
2010-09-30 4:48 [PATCH 4/7] ARM: S5PC210: I2C1/2 support Kyungmin Park
@ 2010-10-07 2:01 ` Kukjin Kim
0 siblings, 0 replies; 2+ messages in thread
From: Kukjin Kim @ 2010-10-07 2:01 UTC (permalink / raw)
To: linux-arm-kernel
Kyungmin Park wrote:
>
> From: Kyungmin Park <kyungmin.park@samsung.com>
>
> Define the I2C1/2 physcial address & interrupts.
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> arch/arm/mach-s5pv310/include/mach/irqs.h | 2 ++
> arch/arm/mach-s5pv310/include/mach/map.h | 6 ++++--
> 2 files changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm/mach-s5pv310/include/mach/irqs.h b/arch/arm/mach-
> s5pv310/include/mach/irqs.h
> index e81332f..aa17ec7 100644
> --- a/arch/arm/mach-s5pv310/include/mach/irqs.h
> +++ b/arch/arm/mach-s5pv310/include/mach/irqs.h
> @@ -70,6 +70,8 @@
> #define IRQ_UART4 COMBINER_IRQ(26, 4)
>
> #define IRQ_IIC COMBINER_IRQ(27, 0)
> +#define IRQ_IIC1 COMBINER_IRQ(27, 1)
> +#define IRQ_IIC2 COMBINER_IRQ(27, 2)
>
> #define IRQ_HSMMC0 COMBINER_IRQ(29, 0)
> #define IRQ_HSMMC1 COMBINER_IRQ(29, 1)
> diff --git a/arch/arm/mach-s5pv310/include/mach/map.h b/arch/arm/mach-
> s5pv310/include/mach/map.h
> index eab0ff7..118ad48 100644
> --- a/arch/arm/mach-s5pv310/include/mach/map.h
> +++ b/arch/arm/mach-s5pv310/include/mach/map.h
> @@ -69,7 +69,7 @@
>
> #define S5P_SZ_UART SZ_256
>
> -#define S5PV310_PA_IIC0 (0x13860000)
> +#define S5PV310_PA_I2C(x) (0x13860000 + ((x) * 0x10000))
How about S5PV310_PA_IIC(x) like other Samsung SoCs.
>
> #define S5PV310_PA_TIMER (0x139D0000)
> #define S5P_PA_TIMER S5PV310_PA_TIMER
> @@ -83,7 +83,9 @@
> #define S3C_PA_HSMMC1 S5PV310_PA_HSMMC(1)
> #define S3C_PA_HSMMC2 S5PV310_PA_HSMMC(2)
> #define S3C_PA_HSMMC3 S5PV310_PA_HSMMC(3)
> -#define S3C_PA_IIC S5PV310_PA_IIC0
> +#define S3C_PA_IIC S5PV310_PA_I2C(0)
> +#define S3C_PA_IIC1 S5PV310_PA_I2C(1)
> +#define S3C_PA_IIC2 S5PV310_PA_I2C(2)
> #define S3C_PA_RTC S5PV310_PA_RTC
> #define S3C_PA_WDT S5PV310_PA_WATCHDOG
>
> --
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] 2+ messages in thread
end of thread, other threads:[~2010-10-07 2:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-30 4:48 [PATCH 4/7] ARM: S5PC210: I2C1/2 support Kyungmin Park
2010-10-07 2:01 ` 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).