]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM: imx: Move anatop related from board file to anatop driver
authorPeter Chen <peter.chen@freescale.com>
Wed, 14 Aug 2013 03:40:56 +0000 (11:40 +0800)
committerJason Liu <r64343@freescale.com>
Wed, 30 Oct 2013 01:54:51 +0000 (09:54 +0800)
Move anatop related (For USB) from board file to anatop driver

Signed-off-by: Peter Chen <peter.chen@freescale.com>
Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
arch/arm/mach-imx/anatop.c
arch/arm/mach-imx/common.h
arch/arm/mach-imx/mach-imx6q.c

index ad42a0647156fa311e07c8e7ccdd79c2be2824af..4a40bbb46183a850af387151c58b73569f55182a 100644 (file)
@@ -68,7 +68,7 @@ void imx_anatop_post_resume(void)
        imx_anatop_enable_weak2p5(false);
 }
 
-void imx_anatop_usb_chrg_detect_disable(void)
+static void imx_anatop_usb_chrg_detect_disable(void)
 {
        regmap_write(anatop, ANADIG_USB1_CHRG_DETECT,
                BM_ANADIG_USB_CHRG_DETECT_EN_B
@@ -119,4 +119,6 @@ void __init imx_anatop_init(void)
                pr_err("%s: failed to find imx6q-anatop regmap!\n", __func__);
                return;
        }
+
+       imx_anatop_usb_chrg_detect_disable();
 }
index 36c71e43604d0a162dbdcf9bae2870226d73c22e..310867dbca887b697e62c4540649666166a92ca8 100644 (file)
@@ -143,7 +143,6 @@ extern void imx_gpc_restore_all(void);
 extern void imx_anatop_init(void);
 extern void imx_anatop_pre_suspend(void);
 extern void imx_anatop_post_resume(void);
-extern void imx_anatop_usb_chrg_detect_disable(void);
 extern int imx6q_set_lpm(enum mxc_cpu_pwr_mode mode);
 extern void imx6q_set_cache_lpm_in_wait(bool enable);
 
index 2587e3e8024124efefb730aa2c81ad57da7024a8..e1e334380534da9ff70cd78e09eb72573288edea 100644 (file)
@@ -167,10 +167,6 @@ static void __init imx6q_1588_init(void)
                pr_err("failed to find fsl,imx6q-iomux-gpr regmap\n");
 
 }
-static void __init imx6q_usb_init(void)
-{
-       imx_anatop_usb_chrg_detect_disable();
-}
 
 /*
  * Disable Hannstar LVDS panel CABC function.
@@ -218,7 +214,6 @@ static void __init imx6q_init_machine(void)
 
        imx_anatop_init();
        imx6q_pm_init();
-       imx6q_usb_init();
        imx6q_1588_init();
        imx6q_lvds_cabc_init();
 }