From: Jingoo Han Subject: [PATCH] ARM: EXYNOS: Add alias name of 'fimd' clock for 'lcd' clock Date: Thu, 19 Jan 2012 19:16:43 +0900 Message-ID: <000101ccd693$71185b60$53491220$%han@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mailout1.samsung.com ([203.254.224.24]:35624 "EHLO mailout1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752492Ab2ASKQp (ORCPT ); Thu, 19 Jan 2012 05:16:45 -0500 Received: from epcpsbgm1.samsung.com (mailout1.samsung.com [203.254.224.24]) by mailout1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTP id <0LY100BX1J7V6H70@mailout1.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 19 Jan 2012 19:16:43 +0900 (KST) Received: from DOJG1HAN02 ([12.23.119.56]) by mmp1.samsung.com (Oracle Communications Messaging Exchange Server 7u4-19.01 64bit (built Sep 7 2010)) with ESMTPA id <0LY1009ZWJ7VYB70@mmp1.samsung.com> for linux-samsung-soc@vger.kernel.org; Thu, 19 Jan 2012 19:16:43 +0900 (KST) Content-language: ko Sender: linux-samsung-soc-owner@vger.kernel.org List-Id: linux-samsung-soc@vger.kernel.org To: 'Kukjin Kim' , linux-samsung-soc@vger.kernel.org Cc: 'Jonghwan Choi' , 'Evgeny Voevodin' , 'Tushar Behera' This patch adds alias name of 'fimd' clock for 'lcd' clock. While 'lcd' clock is used for s3c-fb driver, 'fimd' clock is defined for Exynos fimd ip. Therefore, 'fimd' clock can be called by using clk_add_alias(). Cc: Jonghwan Choi Signed-off-by: Jingoo Han --- arch/arm/mach-exynos/mach-nuri.c | 2 ++ arch/arm/mach-exynos/mach-origen.c | 2 ++ arch/arm/mach-exynos/mach-smdkv310.c | 2 ++ arch/arm/mach-exynos/mach-universal_c210.c | 3 +++ 4 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-exynos/mach-nuri.c b/arch/arm/mach-exynos/mach-nuri.c index 3df8bf4..06c22e0 100644 --- a/arch/arm/mach-exynos/mach-nuri.c +++ b/arch/arm/mach-exynos/mach-nuri.c @@ -1310,6 +1310,8 @@ static void __init nuri_machine_init(void) i2c9_devs[I2C9_MAX17042].irq = gpio_to_irq(EXYNOS4_GPX2(3)); i2c_register_board_info(9, i2c9_devs, ARRAY_SIZE(i2c9_devs)); + dev_set_name(&s5p_device_fimd0.dev, "exynos4-fb.0"); + clk_add_alias("lcd", "exynos4-fb.0", "fimd", &s5p_device_fimd0.dev); s5p_fimd0_set_platdata(&nuri_fb_pdata); nuri_camera_init(); diff --git a/arch/arm/mach-exynos/mach-origen.c b/arch/arm/mach-exynos/mach-origen.c index b453464..7cea0be 100644 --- a/arch/arm/mach-exynos/mach-origen.c +++ b/arch/arm/mach-exynos/mach-origen.c @@ -722,6 +722,8 @@ static void __init origen_machine_init(void) s5p_tv_setup(); s5p_i2c_hdmiphy_set_platdata(NULL); + dev_set_name(&s5p_device_fimd0.dev, "exynos4-fb.0"); + clk_add_alias("lcd", "exynos4-fb.0", "fimd", &s5p_device_fimd0.dev); s5p_fimd0_set_platdata(&origen_lcd_pdata); platform_add_devices(origen_devices, ARRAY_SIZE(origen_devices)); diff --git a/arch/arm/mach-exynos/mach-smdkv310.c b/arch/arm/mach-exynos/mach-smdkv310.c index bf2094e..eccd96d 100644 --- a/arch/arm/mach-exynos/mach-smdkv310.c +++ b/arch/arm/mach-exynos/mach-smdkv310.c @@ -370,6 +370,8 @@ static void __init smdkv310_machine_init(void) samsung_keypad_set_platdata(&smdkv310_keypad_data); samsung_bl_set(&smdkv310_bl_gpio_info, &smdkv310_bl_data); + dev_set_name(&s5p_device_fimd0.dev, "exynos4-fb.0"); + clk_add_alias("lcd", "exynos4-fb.0", "fimd", &s5p_device_fimd0.dev); s5p_fimd0_set_platdata(&smdkv310_lcd0_pdata); smdkv310_ehci_init(); diff --git a/arch/arm/mach-exynos/mach-universal_c210.c b/arch/arm/mach-exynos/mach-universal_c210.c index c38e18d..fe554f1 100644 --- a/arch/arm/mach-exynos/mach-universal_c210.c +++ b/arch/arm/mach-exynos/mach-universal_c210.c @@ -31,6 +31,7 @@ #include #include #include +#include #include #include #include @@ -1029,6 +1030,8 @@ static void __init universal_machine_init(void) s5p_i2c_hdmiphy_set_platdata(NULL); i2c_register_board_info(5, i2c5_devs, ARRAY_SIZE(i2c5_devs)); + dev_set_name(&s5p_device_fimd0.dev, "exynos4-fb.0"); + clk_add_alias("lcd", "exynos4-fb.0", "fimd", &s5p_device_fimd0.dev); s5p_fimd0_set_platdata(&universal_lcd_pdata); universal_touchkey_init(); -- 1.7.1