]> git.sur5r.net Git - u-boot/commitdiff
exynos: Simplify calling of exynos_dp_phy_ctrl()
authorSimon Glass <sjg@chromium.org>
Mon, 22 Feb 2016 04:08:57 +0000 (21:08 -0700)
committerMinkyu Kang <mk7.kang@samsung.com>
Wed, 25 May 2016 04:25:18 +0000 (13:25 +0900)
This function controls enabling the EDP PHY. Rename it and drop the existing
weak functions, which are confusing.

Signed-off-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
arch/arm/mach-exynos/include/mach/power.h
arch/arm/mach-exynos/power.c
board/samsung/common/exynos5-dt.c
drivers/video/exynos/exynos_dp.c

index 3f97b31aeada2dcf20554894d338e7be47d77c4a..88f70d97a98ae742de9a0bf98f70d7d39aabc412 100644 (file)
@@ -1717,7 +1717,7 @@ void set_usbdrd_phy_ctrl(unsigned int enable);
 #define POWER_USB_DRD_PHY_CTRL_EN              (1 << 0)
 #define POWER_USB_DRD_PHY_CTRL_DISABLE         (0 << 0)
 
-void set_dp_phy_ctrl(unsigned int enable);
+void exynos_dp_phy_ctrl(unsigned int enable);
 
 #define EXYNOS_DP_PHY_ENABLE           (1 << 0)
 
index cd2d6618ac89b74a15aec2748aa6c6fe40f1af9a..c923460275ec70cc93d80c1ebcab97a9365fe848 100644 (file)
@@ -147,7 +147,7 @@ static void exynos5_dp_phy_control(unsigned int enable)
        writel(cfg, &power->dptx_phy_control);
 }
 
-void set_dp_phy_ctrl(unsigned int enable)
+void exynos_dp_phy_ctrl(unsigned int enable)
 {
        if (cpu_is_exynos5())
                exynos5_dp_phy_control(enable);
index 4d9e151756b3be9555c81e539bf76f0baee2fbe7..0dcea715613945587867409ac21505c2c26584f9 100644 (file)
@@ -235,11 +235,6 @@ void exynos_cfg_lcd_gpio(void)
        gpio_set_value(EXYNOS5_GPIO_B20, 1);
 }
 
-void exynos_set_dp_phy(unsigned int onoff)
-{
-       set_dp_phy_ctrl(onoff);
-}
-
 static int board_dp_set_backlight(int percent)
 {
        struct udevice *dev;
index 9945c4bcf98e7b93845766241f31641b842d7c76..88926b9b9dde1800b286d72f69b02b2dde5c8aa0 100644 (file)
@@ -15,6 +15,7 @@
 #include <asm/arch/cpu.h>
 #include <asm/arch/dp_info.h>
 #include <asm/arch/dp.h>
+#include <asm/arch/power.h>
 #include <fdtdec.h>
 #include <libfdt.h>
 
 
 DECLARE_GLOBAL_DATA_PTR;
 
-void __exynos_set_dp_phy(unsigned int onoff)
-{
-}
-void exynos_set_dp_phy(unsigned int onoff)
-       __attribute__((weak, alias("__exynos_set_dp_phy")));
-
 static void exynos_dp_disp_info(struct edp_disp_info *disp_info)
 {
        disp_info->h_total = disp_info->h_res + disp_info->h_sync_width +
@@ -959,7 +954,7 @@ unsigned int exynos_init_dp(void)
 
        exynos_dp_disp_info(&edp_info->disp_info);
 
-       exynos_set_dp_phy(1);
+       exynos_dp_phy_ctrl(1);
 
        ret = exynos_dp_init_dp(dp_regs);
        if (ret != EXYNOS_DP_SUCCESS) {