From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from exprod5og115.obsmtp.com (exprod5og115.obsmtp.com [64.18.0.246]) by ozlabs.org (Postfix) with SMTP id D52EFB6FA5 for ; Sat, 15 Oct 2011 05:14:26 +1100 (EST) Received: by iakl21 with SMTP id l21so3550975iak.4 for ; Fri, 14 Oct 2011 11:14:24 -0700 (PDT) From: Tirumala Marri References: In-Reply-To: MIME-Version: 1.0 Date: Fri, 14 Oct 2011 11:14:22 -0700 Message-ID: <9fa903c8656e99d5ad8844f4c8390634@mail.gmail.com> Subject: RE: [PATCH v14 03/10] USB/ppc4xx: Add Synopsys DWC OTG Core Interface Layer (CIL) To: Paul Zimmerman Content-Type: text/plain; charset=ISO-8859-1 Cc: greg@kroah.com, linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , <> +void dwc_otg_enable_global_interrupts(struct core_if *core_if) <> +{ <> + u32 ahbcfg = 0; <> + <> + ahbcfg |= DWC_AHBCFG_GLBL_INT_MASK; <> + dwc_reg_modify(core_if->core_global_regs, DWC_GAHBCFG, 0, <> + ahbcfg); < core_global_regs, DWC_GAHBCFG, < ahbcfg, 0); < core_global_regs, DWC_GAHBCFG, < DWC_AHBCFG_GLBL_INT_MASK, 0); < +/** <> + * Tests if the current hardware is using a full speed phy. <> + */ <> +static inline int full_speed_phy(struct core_if *core_if) <> +{ <> + if ((DWC_HWCFG2_FS_PHY_TYPE_RD(core_if->hwcfg2) == 2 && <> + DWC_HWCFG2_FS_PHY_TYPE_RD(core_if->hwcfg2) == 1 && <