[PATCH v3 0/2] Add TVOUT support for SMDKV310

2011-09-21 Thread Hatim Ali
This is v3 of the TVOUT patch set for SMDKV310.
v1 is available at below link.
(http://www.spinics.net/lists/arm-kernel/msg138054.html)

Patch 1 has been modified according to the comments received from
Tomasz Stanislawski and Sylwester Nawrocki.

Patch 2 is a resend.

NOTE: This patch set has a dependency on Setup consistent dma size at boot
time by Tushar Behera.
(http://www.spinics.net/lists/linux-samsung-soc/msg06627.html)

Hatim Ali (2):
  ARM: EXYNOS4: Add TVOUT support for SMDKV310
  s5p-tv: Add PM_RUNTIME dependency

 arch/arm/mach-exynos4/Kconfig |2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   18 ++
 drivers/media/video/s5p-tv/Kconfig|2 +-
 3 files changed, 21 insertions(+), 1 deletions(-)

-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RESEND PATCH 2/2] s5p-tv: Add PM_RUNTIME dependency

2011-09-21 Thread Hatim Ali
The TVOUT driver requires PM_RUNTIME support for proper clock
enabling.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 drivers/media/video/s5p-tv/Kconfig |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/s5p-tv/Kconfig 
b/drivers/media/video/s5p-tv/Kconfig
index 9c37dee..f2a0977 100644
--- a/drivers/media/video/s5p-tv/Kconfig
+++ b/drivers/media/video/s5p-tv/Kconfig
@@ -8,7 +8,7 @@
 
 config VIDEO_SAMSUNG_S5P_TV
bool Samsung TV driver for S5P platform (experimental)
-   depends on PLAT_S5P
+   depends on PLAT_S5P  PM_RUNTIME
depends on EXPERIMENTAL
default n
---help---
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V2 0/3] Add TVOUT support for SMDKV310

2011-09-20 Thread Hatim Ali
This is v2 of the TVOUT patch set for SMDKV310.
v1 is available at below link.
(http://www.spinics.net/lists/arm-kernel/msg138054.html)

Patch 1 has been modified according to the comments received from
Tomasz Stanislawski.
Patches 2 and 3 are RESENDs.

Hatim Ali (3):
  ARM: EXYNOS4: Add TVOUT support for SMDKV310
  ARM: EXYNOS4: Update consistent DMA size to 8MB
  s5p-tv: Add PM_RUNTIME dependency

 arch/arm/mach-exynos4/Kconfig   |2 ++
 arch/arm/mach-exynos4/include/mach/memory.h |2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c   |   25 +
 drivers/media/video/s5p-tv/Kconfig  |2 +-
 4 files changed, 30 insertions(+), 1 deletions(-)

-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH V2 1/3] ARM: EXYNOS4: Add TVOUT support for SMDKV310

2011-09-20 Thread Hatim Ali
Add support for TVOUT on SMDKV310 board.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
Changes since V1:
Incorporated changes as suggested by Tomasz Stanislawski
- Added  GPIO settings for hot-plug detection.
- Added setting hdmi and mixer's parent for TV power domain.

 arch/arm/mach-exynos4/Kconfig |2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |   25 +
 2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig
index 3b594fe..0bf0fe04 100644
--- a/arch/arm/mach-exynos4/Kconfig
+++ b/arch/arm/mach-exynos4/Kconfig
@@ -131,6 +131,7 @@ config MACH_SMDKV310
select S3C_DEV_RTC
select S3C_DEV_WDT
select S3C_DEV_I2C1
+   select S5P_DEV_I2C_HDMIPHY
select S5P_DEV_MFC
select S3C_DEV_HSMMC
select S3C_DEV_HSMMC1
@@ -140,6 +141,7 @@ config MACH_SMDKV310
select EXYNOS4_DEV_AHCI
select SAMSUNG_DEV_KEYPAD
select EXYNOS4_DEV_PD
+   select S5P_DEV_TV
select SAMSUNG_DEV_PWM
select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_FIMD0
diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c 
b/arch/arm/mach-exynos4/mach-smdkv310.c
index 7ce4d8b..50de270 100644
--- a/arch/arm/mach-exynos4/mach-smdkv310.c
+++ b/arch/arm/mach-exynos4/mach-smdkv310.c
@@ -239,6 +239,7 @@ static struct platform_device *smdkv310_devices[] 
__initdata = {
s3c_device_hsmmc2,
s3c_device_hsmmc3,
s3c_device_i2c1,
+   s5p_device_i2c_hdmiphy,
s3c_device_rtc,
s3c_device_wdt,
exynos4_device_ac97,
@@ -262,6 +263,8 @@ static struct platform_device *smdkv310_devices[] 
__initdata = {
smdkv310_lcd_lte480wv,
smdkv310_smsc911x,
exynos4_device_ahci,
+   s5p_device_hdmi,
+   s5p_device_mixer,
 };
 
 static void __init smdkv310_smsc911x_init(void)
@@ -298,6 +301,25 @@ static struct platform_pwm_backlight_data smdkv310_bl_data 
= {
.pwm_period_ns  = 1000,
 };
 
+static void s5p_tv_setup(void)
+{
+   int ret;
+
+   /* direct HPD to HDMI chip */
+   ret = gpio_request(EXYNOS4_GPX3(7), hpd-plug);
+
+   if (!ret) {
+   gpio_direction_input(EXYNOS4_GPX3(7));
+   s3c_gpio_cfgpin_range(EXYNOS4_GPX3(7),
+   1, S3C_GPIO_SFN(3));
+   } else
+   pr_err(Failed to request gpio for hpd: %d\n, ret);
+
+   /* setup dependencies between TV devices */
+   s5p_device_hdmi.dev.parent = exynos4_device_pd[PD_TV].dev;
+   s5p_device_mixer.dev.parent = exynos4_device_pd[PD_TV].dev;
+}
+
 static void __init smdkv310_map_io(void)
 {
s5p_init_io(NULL, 0, S5P_VA_CHIPID);
@@ -327,6 +349,9 @@ static void __init smdkv310_machine_init(void)
samsung_bl_set(smdkv310_bl_gpio_info, smdkv310_bl_data);
s5p_fimd0_set_platdata(smdkv310_lcd0_pdata);
 
+   s5p_tv_setup();
+   s5p_i2c_hdmiphy_set_platdata(NULL);
+
platform_add_devices(smdkv310_devices, ARRAY_SIZE(smdkv310_devices));
s5p_device_mfc.dev.parent = exynos4_device_pd[PD_MFC].dev;
 }
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RESEND PATCH 2/3] ARM: EXYNOS4: Update consistent DMA size to 8MB

2011-09-20 Thread Hatim Ali
Change the consistent DMA allocation to 8MB to support the
TVOUT driver.

NOTE: Once CMA support is merged into mainline, we will use it for memory
allocation.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 arch/arm/mach-exynos4/include/mach/memory.h |2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos4/include/mach/memory.h 
b/arch/arm/mach-exynos4/include/mach/memory.h
index 374ef2c..7549742 100644
--- a/arch/arm/mach-exynos4/include/mach/memory.h
+++ b/arch/arm/mach-exynos4/include/mach/memory.h
@@ -15,6 +15,8 @@
 
 #define PLAT_PHYS_OFFSET   UL(0x4000)
 
+#define CONSISTENT_DMA_SIZESZ_8M
+
 /* Maximum of 256MiB in one bank */
 #define MAX_PHYSMEM_BITS   32
 #define SECTION_SIZE_BITS  28
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[RESEND PATCH 3/3] s5p-tv: Add PM_RUNTIME dependency

2011-09-20 Thread Hatim Ali
The TVOUT driver requires PM_RUNTIME support for proper clock
enabling.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 drivers/media/video/s5p-tv/Kconfig |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/s5p-tv/Kconfig 
b/drivers/media/video/s5p-tv/Kconfig
index 9c37dee..f2a0977 100644
--- a/drivers/media/video/s5p-tv/Kconfig
+++ b/drivers/media/video/s5p-tv/Kconfig
@@ -8,7 +8,7 @@
 
 config VIDEO_SAMSUNG_S5P_TV
bool Samsung TV driver for S5P platform (experimental)
-   depends on PLAT_S5P
+   depends on PLAT_S5P  PM_RUNTIME
depends on EXPERIMENTAL
default n
---help---
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 0/2] Add TVOUT support for SMDKV310

2011-08-26 Thread Hatim Ali
This patchset adds TVOUT support for SMDKV310 board.

These patches are based on Tomasz Stanislawski's patchset
Updated s5p-tv platform definitions
(http://www.spinics.net/lists/linux-samsung-soc/msg06138.html)
and add support for HDMIPHY dedicated controller
(http://www.spinics.net/lists/linux-i2c/msg05932.html)
on for-next branch of kgene's tree
(git.kernel.org/pub/scm/linux/kernel/git/kgene/linux-samsung.git)

The TVOUT driver has a dependency on PM_RUNTIME. So you need to
enable the PM_RUNTIME support in Power Management option in
menuconfig.

These patches have been tested for 720x480 and 1280x720 resolutions
on SMDKV310 EVT1.

The SDO functionality has not been tested because it has a
dependency on PMIC support. Once PMIC support is added,
SDO can also be tested.

NOTE: Patch 2 is for testing TVOUT driver on SMDKV310 till CMA
support gets merged.

Hatim Ali (2):
  ARM: EXYNOS4: Add TVOUT support for SMDKV310
  ARM: EXYNOS4: Update consistent DMA size to 8MB

 arch/arm/mach-exynos4/Kconfig   |2 ++
 arch/arm/mach-exynos4/include/mach/memory.h |1 +
 arch/arm/mach-exynos4/mach-smdkv310.c   |5 +
 3 files changed, 8 insertions(+), 0 deletions(-)

--
1.7.2.3
--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 1/2] ARM: EXYNOS4: Add TVOUT support for SMDKV310

2011-08-26 Thread Hatim Ali
Add support for TVOUT on SMDKV310 board.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 arch/arm/mach-exynos4/Kconfig |2 ++
 arch/arm/mach-exynos4/mach-smdkv310.c |5 +
 2 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos4/Kconfig b/arch/arm/mach-exynos4/Kconfig
index e6925de..4c399c0 100644
--- a/arch/arm/mach-exynos4/Kconfig
+++ b/arch/arm/mach-exynos4/Kconfig
@@ -139,6 +139,7 @@ config MACH_SMDKV310
select S3C_DEV_RTC
select S3C_DEV_WDT
select S3C_DEV_I2C1
+   select S5P_DEV_I2C_HDMIPHY
select S5P_DEV_MFC
select S3C_DEV_HSMMC
select S3C_DEV_HSMMC1
@@ -148,6 +149,7 @@ config MACH_SMDKV310
select EXYNOS4_DEV_AHCI
select SAMSUNG_DEV_KEYPAD
select EXYNOS4_DEV_PD
+   select S5P_DEV_TV
select SAMSUNG_DEV_PWM
select EXYNOS4_DEV_SYSMMU
select EXYNOS4_SETUP_FIMD0
diff --git a/arch/arm/mach-exynos4/mach-smdkv310.c 
b/arch/arm/mach-exynos4/mach-smdkv310.c
index 5f62b2b..8fdba16 100644
--- a/arch/arm/mach-exynos4/mach-smdkv310.c
+++ b/arch/arm/mach-exynos4/mach-smdkv310.c
@@ -173,6 +173,7 @@ static struct platform_device *smdkv310_devices[] 
__initdata = {
s3c_device_hsmmc2,
s3c_device_hsmmc3,
s3c_device_i2c1,
+   s5p_device_i2c_hdmiphy,
s3c_device_rtc,
s3c_device_wdt,
exynos4_device_ac97,
@@ -194,6 +195,8 @@ static struct platform_device *smdkv310_devices[] 
__initdata = {
samsung_asoc_idma,
smdkv310_smsc911x,
exynos4_device_ahci,
+   s5p_device_hdmi,
+   s5p_device_mixer,
 };
 
 static void __init smdkv310_smsc911x_init(void)
@@ -254,6 +257,8 @@ static void __init smdkv310_machine_init(void)
s3c_sdhci2_set_platdata(smdkv310_hsmmc2_pdata);
s3c_sdhci3_set_platdata(smdkv310_hsmmc3_pdata);
 
+   s5p_i2c_hdmiphy_set_platdata(NULL);
+
samsung_keypad_set_platdata(smdkv310_keypad_data);
 
samsung_bl_set(smdkv310_bl_gpio_info, smdkv310_bl_data);
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH 2/2] ARM: EXYNOS4: Update consistent DMA size to 8MB

2011-08-26 Thread Hatim Ali
Change the consistent DMA allocation to 8MB to support the
TVOUT driver.

NOTE: Once CMA support is merged into mainline, we will use it for memory
allocation.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 arch/arm/mach-exynos4/include/mach/memory.h |1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-exynos4/include/mach/memory.h 
b/arch/arm/mach-exynos4/include/mach/memory.h
index 374ef2c..33da4bb 100644
--- a/arch/arm/mach-exynos4/include/mach/memory.h
+++ b/arch/arm/mach-exynos4/include/mach/memory.h
@@ -14,6 +14,7 @@
 #define __ASM_ARCH_MEMORY_H __FILE__
 
 #define PLAT_PHYS_OFFSET   UL(0x4000)
+#define CONSISTENT_DMA_SIZESZ_8M
 
 /* Maximum of 256MiB in one bank */
 #define MAX_PHYSMEM_BITS   32
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] s5p-tv: Add PM_RUNTIME dependency

2011-08-26 Thread Hatim Ali
The TVOUT driver requires PM_RUNTIME support for proper clock
enabling.

Signed-off-by: Hatim Ali hatim...@samsung.com
---
 drivers/media/video/s5p-tv/Kconfig |2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/media/video/s5p-tv/Kconfig 
b/drivers/media/video/s5p-tv/Kconfig
index 9c37dee..f2a0977 100644
--- a/drivers/media/video/s5p-tv/Kconfig
+++ b/drivers/media/video/s5p-tv/Kconfig
@@ -8,7 +8,7 @@
 
 config VIDEO_SAMSUNG_S5P_TV
bool Samsung TV driver for S5P platform (experimental)
-   depends on PLAT_S5P
+   depends on PLAT_S5P  PM_RUNTIME
depends on EXPERIMENTAL
default n
---help---
-- 
1.7.2.3

--
To unsubscribe from this list: send the line unsubscribe linux-samsung-soc in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html