From ddcb9aa65a759112ea3548c2adc473f0086a031e Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Wed, 14 Aug 2013 11:40:56 +0800 Subject: ARM: imx: Move anatop related from board file to anatop driver Move anatop related (For USB) from board file to anatop driver Signed-off-by: Peter Chen Signed-off-by: Shawn Guo --- arch/arm/mach-imx/anatop.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'arch/arm/mach-imx/anatop.c') diff --git a/arch/arm/mach-imx/anatop.c b/arch/arm/mach-imx/anatop.c index 0cfa07dd9aa4..ad3b755abb78 100644 --- a/arch/arm/mach-imx/anatop.c +++ b/arch/arm/mach-imx/anatop.c @@ -66,7 +66,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 @@ -100,4 +100,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(); } -- cgit v1.2.3