From 282585cfd7074f9d53b1630f9fdee3c9c6abfa95 Mon Sep 17 00:00:00 2001 From: Justin Waters Date: Wed, 28 May 2008 17:03:03 -0400 Subject: MX27: Fix USB register and PMIC Header One of the USB registers were incorrectly written, and the PMIC header file had an unnecessary ifdef in it. Signed-off-by: David Kocinski Acked-by: Justin Waters --- arch/arm/plat-mxc/usb_common.c | 5 ++--- include/asm-arm/arch-mxc/pmic_external.h | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/arch/arm/plat-mxc/usb_common.c b/arch/arm/plat-mxc/usb_common.c index f56392fba3f6..9f1d961774b1 100644 --- a/arch/arm/plat-mxc/usb_common.c +++ b/arch/arm/plat-mxc/usb_common.c @@ -333,9 +333,8 @@ static void usbh2_set_ulpi_xcvr(void) UCTRL_H2PM; /* power mask */ #endif - UH2_PORTSC1 &= ~PORTSC_PTS_MASK; /* set ULPI xcvr */ - UH2_PORTSC1 |= PORTSC_PTS_ULPI; - + /* set ULPI xcvr */ + UH2_PORTSC1 = (UH2_PORTSC1 & ~PORTSC_PTS_MASK) | PORTSC_PTS_ULPI; /* Turn off the usbpll for ulpi tranceivers */ clk_disable(usb_clk); } diff --git a/include/asm-arm/arch-mxc/pmic_external.h b/include/asm-arm/arch-mxc/pmic_external.h index 3ca5ef6f0065..fbfea77bcab4 100644 --- a/include/asm-arm/arch-mxc/pmic_external.h +++ b/include/asm-arm/arch-mxc/pmic_external.h @@ -127,8 +127,6 @@ typedef struct { #define PMIC_ALL_BITS 0xFFFFFF #define PMIC_MAX_EVENTS 48 -#ifdef CONFIG_MXC_PMIC_MC13783 - #define PMIC_ARBITRATION "NULL" /*! * This is the enumeration of register names of MC13783 @@ -796,7 +794,6 @@ typedef struct { */ bool sense_clks; } t_sensor_bits; -#endif /* EXPORTED FUNCTIONS */ -- cgit v1.2.3