diff options
author | Olof Johansson <olof@lixom.net> | 2012-09-13 01:34:11 -0400 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2012-09-13 01:34:11 -0400 |
commit | 025c95a6826ad8acfe871f33c2fa9208beeb38df (patch) | |
tree | 220fe156ff60db13bd3a1319f5e20d6b723de5f4 /arch/arm/plat-samsung | |
parent | 0558d7a8ed44e6e53aadb04d2e23145efb2aa8a4 (diff) | |
parent | 7f744b17140af1a9c8804a1c81c9dae6bb52a7fb (diff) |
Merge branch 'clk' of git://github.com/hzhuang1/linux into next/cleanup
* 'clk' of git://github.com/hzhuang1/linux:
ARM: mmp: remove unused definition in APBC and APMU
ARM: mmp: move mmp2 clock definition to separated file
arm: mmp: move pxa910 clock definition to separated file
arm: mmp: move pxa168 clock definition to separated file
arm: mmp: make private clock definition exclude from common clock
+ Linux 3.6-rc4
Diffstat (limited to 'arch/arm/plat-samsung')
-rw-r--r-- | arch/arm/plat-samsung/devs.c | 29 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/hdmi.h | 16 | ||||
-rw-r--r-- | arch/arm/plat-samsung/pm.c | 2 |
3 files changed, 45 insertions, 2 deletions
diff --git a/arch/arm/plat-samsung/devs.c b/arch/arm/plat-samsung/devs.c index 8154fab70de8..6ff45d53362c 100644 --- a/arch/arm/plat-samsung/devs.c +++ b/arch/arm/plat-samsung/devs.c | |||
@@ -32,6 +32,8 @@ | |||
32 | #include <linux/platform_data/s3c-hsudc.h> | 32 | #include <linux/platform_data/s3c-hsudc.h> |
33 | #include <linux/platform_data/s3c-hsotg.h> | 33 | #include <linux/platform_data/s3c-hsotg.h> |
34 | 34 | ||
35 | #include <media/s5p_hdmi.h> | ||
36 | |||
35 | #include <asm/irq.h> | 37 | #include <asm/irq.h> |
36 | #include <asm/mach/arch.h> | 38 | #include <asm/mach/arch.h> |
37 | #include <asm/mach/map.h> | 39 | #include <asm/mach/map.h> |
@@ -747,7 +749,8 @@ void __init s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *pd) | |||
747 | if (!pd) { | 749 | if (!pd) { |
748 | pd = &default_i2c_data; | 750 | pd = &default_i2c_data; |
749 | 751 | ||
750 | if (soc_is_exynos4210()) | 752 | if (soc_is_exynos4210() || |
753 | soc_is_exynos4212() || soc_is_exynos4412()) | ||
751 | pd->bus_num = 8; | 754 | pd->bus_num = 8; |
752 | else if (soc_is_s5pv210()) | 755 | else if (soc_is_s5pv210()) |
753 | pd->bus_num = 3; | 756 | pd->bus_num = 3; |
@@ -758,6 +761,30 @@ void __init s5p_i2c_hdmiphy_set_platdata(struct s3c2410_platform_i2c *pd) | |||
758 | npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c), | 761 | npd = s3c_set_platdata(pd, sizeof(struct s3c2410_platform_i2c), |
759 | &s5p_device_i2c_hdmiphy); | 762 | &s5p_device_i2c_hdmiphy); |
760 | } | 763 | } |
764 | |||
765 | struct s5p_hdmi_platform_data s5p_hdmi_def_platdata; | ||
766 | |||
767 | void __init s5p_hdmi_set_platdata(struct i2c_board_info *hdmiphy_info, | ||
768 | struct i2c_board_info *mhl_info, int mhl_bus) | ||
769 | { | ||
770 | struct s5p_hdmi_platform_data *pd = &s5p_hdmi_def_platdata; | ||
771 | |||
772 | if (soc_is_exynos4210() || | ||
773 | soc_is_exynos4212() || soc_is_exynos4412()) | ||
774 | pd->hdmiphy_bus = 8; | ||
775 | else if (soc_is_s5pv210()) | ||
776 | pd->hdmiphy_bus = 3; | ||
777 | else | ||
778 | pd->hdmiphy_bus = 0; | ||
779 | |||
780 | pd->hdmiphy_info = hdmiphy_info; | ||
781 | pd->mhl_info = mhl_info; | ||
782 | pd->mhl_bus = mhl_bus; | ||
783 | |||
784 | s3c_set_platdata(pd, sizeof(struct s5p_hdmi_platform_data), | ||
785 | &s5p_device_hdmi); | ||
786 | } | ||
787 | |||
761 | #endif /* CONFIG_S5P_DEV_I2C_HDMIPHY */ | 788 | #endif /* CONFIG_S5P_DEV_I2C_HDMIPHY */ |
762 | 789 | ||
763 | /* I2S */ | 790 | /* I2S */ |
diff --git a/arch/arm/plat-samsung/include/plat/hdmi.h b/arch/arm/plat-samsung/include/plat/hdmi.h new file mode 100644 index 000000000000..331d046ac2c5 --- /dev/null +++ b/arch/arm/plat-samsung/include/plat/hdmi.h | |||
@@ -0,0 +1,16 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2012 Samsung Electronics Co.Ltd | ||
3 | * | ||
4 | * This program is free software; you can redistribute it and/or modify it | ||
5 | * under the terms of the GNU General Public License as published by the | ||
6 | * Free Software Foundation; either version 2 of the License, or (at your | ||
7 | * option) any later version. | ||
8 | */ | ||
9 | |||
10 | #ifndef __PLAT_SAMSUNG_HDMI_H | ||
11 | #define __PLAT_SAMSUNG_HDMI_H __FILE__ | ||
12 | |||
13 | extern void s5p_hdmi_set_platdata(struct i2c_board_info *hdmiphy_info, | ||
14 | struct i2c_board_info *mhl_info, int mhl_bus); | ||
15 | |||
16 | #endif /* __PLAT_SAMSUNG_HDMI_H */ | ||
diff --git a/arch/arm/plat-samsung/pm.c b/arch/arm/plat-samsung/pm.c index 64ab65f0fdbc..15070284343e 100644 --- a/arch/arm/plat-samsung/pm.c +++ b/arch/arm/plat-samsung/pm.c | |||
@@ -74,7 +74,7 @@ unsigned char pm_uart_udivslot; | |||
74 | 74 | ||
75 | #ifdef CONFIG_SAMSUNG_PM_DEBUG | 75 | #ifdef CONFIG_SAMSUNG_PM_DEBUG |
76 | 76 | ||
77 | struct pm_uart_save uart_save[CONFIG_SERIAL_SAMSUNG_UARTS]; | 77 | static struct pm_uart_save uart_save[CONFIG_SERIAL_SAMSUNG_UARTS]; |
78 | 78 | ||
79 | static void s3c_pm_save_uart(unsigned int uart, struct pm_uart_save *save) | 79 | static void s3c_pm_save_uart(unsigned int uart, struct pm_uart_save *save) |
80 | { | 80 | { |