Thread (34 messages) read the whole thread 34 messages, 7 authors, 2010-08-09
STALE5835d

[PATCH v4 3/8] ARM: Samsung: Add platform definitions and helpers for FIMC driver

From: kyungmin.park@samsung.com (Kyungmin Park)
Date: 2010-08-03 01:12:05
Also in: linux-samsung-soc

On Tue, Aug 3, 2010 at 10:05 AM, Kukjin Kim [off-list ref] wrote:
Kyungmin Park wrote:
quoted
On Tue, Aug 3, 2010 at 9:46 AM, Kukjin Kim [off-list ref] wrote:
quoted
Kyungmin Park wrote:
quoted
On Tue, Aug 3, 2010 at 8:58 AM, Kukjin Kim [off-list ref]
wrote:
quoted
quoted
quoted
quoted
Marek Szyprowski wrote:
quoted
From: Sylwester Nawrocki <s.nawrocki@samsung.com>

FIMC (CAMIF) device is a camera interface embedded in S3C/S5P
Samsung
quoted
quoted
quoted
quoted
quoted
SOC series. It supports ITU-R BT.601/656 and MIPI-CSI2 standards,
memory to memory operations, color conversion, resizing and
rotation.
quoted
quoted
quoted
quoted
quoted
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
---

This is patch is a v3 version rebased onto latest kgene/for-next
tree.
quoted
quoted
quoted
quoted
quoted
New entries in map.h files has been sorted by the physicall address.
Thanks for your addressing.
quoted
I'm resending this patch on behalf of Sylwester who is on holidays
this
quoted
quoted
quoted
quoted
quoted
week.

Best regards
--
Marek Szyprowski
Samsung Poland R&D Center
---
(snip)
quoted
quoted
quoted
quoted
quoted
diff --git a/arch/arm/mach-s5pc100/include/mach/map.h
b/arch/arm/mach-
quoted
quoted
quoted
quoted
quoted
s5pc100/include/mach/map.h
index c018697..3abe7f5 100644
--- a/arch/arm/mach-s5pc100/include/mach/map.h
+++ b/arch/arm/mach-s5pc100/include/mach/map.h
@@ -99,6 +99,10 @@
?#define S5PC100_PA_FB ? ? ? ? ? ? ? ?(0xEE000000)

+#define S5PC100_PA_FIMC0 ? ? (0xEE200000)
+#define S5PC100_PA_FIMC1 ? ? (0xEE300000)
+#define S5PC100_PA_FIMC2 ? ? (0xEE400000)
+
?#define S5PC100_PA_I2S0 ? ? ? ? ? ? ?(0xF2000000)
?#define S5PC100_PA_I2S1 ? ? ? ? ? ? ?(0xF2100000)
?#define S5PC100_PA_I2S2 ? ? ? ? ? ? ?(0xF2200000)
@@ -143,6 +147,9 @@
?#define S3C_PA_ONENAND_BUF ? S5PC100_PA_ONENAND_BUF
?#define S3C_SZ_ONENAND_BUF ? S5PC100_SZ_ONENAND_BUF
?#define S3C_PA_RTC ? ? ? ? ? S5PC100_PA_RTC
+#define S5P_PA_FIMC0 ? ? ? ? S5PC100_PA_FIMC0
+#define S5P_PA_FIMC1 ? ? ? ? S5PC100_PA_FIMC1
+#define S5P_PA_FIMC2 ? ? ? ? S5PC100_PA_FIMC2

?#define SAMSUNG_PA_ADC ? ? ? ? ? ? ? S5PC100_PA_TSADC
?#define SAMSUNG_PA_CFCON ? ? S5PC100_PA_CFCON
diff --git a/arch/arm/mach-s5pv210/cpu.c
b/arch/arm/mach-s5pv210/cpu.c

(snip)
quoted
quoted
quoted
quoted
quoted
diff --git a/arch/arm/mach-s5pv210/include/mach/map.h
b/arch/arm/mach-
quoted
quoted
quoted
quoted
quoted
s5pv210/include/mach/map.h
index 986b285..6a07e55 100644
--- a/arch/arm/mach-s5pv210/include/mach/map.h
+++ b/arch/arm/mach-s5pv210/include/mach/map.h
@@ -65,6 +65,10 @@
?#define S5PV210_PA_FB ? ? ? ? ? ? ? ?(0xF8000000)

+#define S5PV210_PA_FIMC0 ? ? (0xFB200000)
+#define S5PV210_PA_FIMC1 ? ? (0xFB300000)
+#define S5PV210_PA_FIMC2 ? ? (0xFB400000)
+
?#define S5PV210_PA_HSMMC(x) ?(0xEB000000 + ((x) * 0x100000))

?#define S5PV210_PA_VIC0 ? ? ? ? ? ? ?(0xF2000000)
@@ -114,4 +118,8 @@
?#define SAMSUNG_PA_CFCON ? ? S5PV210_PA_CFCON
?#define SAMSUNG_PA_KEYPAD ? ?S5PV210_PA_KEYPAD

+#define S5P_PA_FIMC0 ? ? ? ? S5PV210_PA_FIMC0
+#define S5P_PA_FIMC1 ? ? ? ? S5PV210_PA_FIMC1
+#define S5P_PA_FIMC2 ? ? ? ? S5PV210_PA_FIMC2
To use one style is better for reading, merge conflict handling and
so
quoted
quoted
on...
quoted
quoted
The style means to add S5P_PA_XXX after S3C_PA_XXX with C100 case or
to
quoted
quoted
quoted
modify above C100 case like this.
Use the same conversion as previous one. are you okay?

#define S5PV210_PA_VIC0 ? ? ? ? (0xF2000000)
#define S5P_PA_VIC0 ? ? ? ? ? ? S5PV210_PA_VIC0

#define S5PV210_PA_VIC1 ? ? ? ? (0xF2100000)
#define S5P_PA_VIC1 ? ? ? ? ? ? S5PV210_PA_VIC1

#define S5PV210_PA_VIC2 ? ? ? ? (0xF2200000)
#define S5P_PA_VIC2 ? ? ? ? ? ? S5PV210_PA_VIC2

#define S5PV210_PA_VIC3 ? ? ? ? (0xF2300000)
#define S5P_PA_VIC3 ? ? ? ? ? ? S5PV210_PA_VIC3

#define S5PV210_PA_SDRAM ? ? ? ?(0x30000000)
#define S5P_PA_SDRAM ? ? ? ? ? ?S5PV210_PA_SDRAM
No.

Did you see above C100?
--- C100
?#define S3C_PA_ONENAND_BUF ? ? ? ? ? ? S5PC100_PA_ONENAND_BUF
?#define S3C_SZ_ONENAND_BUF ? ? ? ? ? ? S5PC100_SZ_ONENAND_BUF
?#define S3C_PA_RTC ? ? ? ? ? ? S5PC100_PA_RTC
+#define S5P_PA_FIMC0 ? ? ? ? ? S5PC100_PA_FIMC0
+#define S5P_PA_FIMC1 ? ? ? ? ? S5PC100_PA_FIMC1
+#define S5P_PA_FIMC2 ? ? ? ? ? S5PC100_PA_FIMC2

?#define SAMSUNG_PA_ADC ? ? ? ? ? ? ? S5PC100_PA_TSADC
?#define SAMSUNG_PA_CFCON ? ? S5PC100_PA_CFCON
--- V210
?#define SAMSUNG_PA_CFCON ? ? ? ? ? ? ? S5PV210_PA_CFCON
?#define SAMSUNG_PA_KEYPAD ? ? ? ? ? ? ?S5PV210_PA_KEYPAD

+#define S5P_PA_FIMC0 ? ? ? ? ? S5PV210_PA_FIMC0
+#define S5P_PA_FIMC1 ? ? ? ? ? S5PV210_PA_FIMC1
+#define S5P_PA_FIMC2 ? ? ? ? ? S5PV210_PA_FIMC2

I mean it's just ordering.
Yes I also mean it don't separate the related definitions. so place
adjacent as the the previous.
No...maybe you misunderstood...hmm :-(
Please add in map.h of V210 like following.
Then please also apply the same rules at existing definitions.
quoted hunk ↗ jump to hunk
@@ -110,6 +110,10 @@
?#define S3C_PA_RTC ? ? ? ? ? ? S5PV210_PA_RTC
?#define S3C_PA_WDT ? ? ? ? ? ? S5PV210_PA_WATCHDOG

+#define S5P_PA_FIMC0 ? ? ? ? ? S5PV210_PA_FIMC0
+#define S5P_PA_FIMC1 ? ? ? ? ? S5PV210_PA_FIMC1
+#define S5P_PA_FIMC2 ? ? ? ? ? S5PV210_PA_FIMC2
+
?#define SAMSUNG_PA_ADC ? ? ? ? S5PV210_PA_ADC
?#define SAMSUNG_PA_CFCON ? ? ? ? ? ? ? S5PV210_PA_CFCON
?#define SAMSUNG_PA_KEYPAD ? ? ? ? ? ? ?S5PV210_PA_KEYPAD

(snip)

Thanks.

Best regards,
Kgene.
--
Kukjin Kim [off-list ref], Senior Engineer,
SW Solution Development Team, Samsung Electronics Co., Ltd.

--
To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at ?http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help