From patchwork Thu Aug 1 22:18:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Troy Kisky X-Patchwork-Id: 264138 X-Patchwork-Delegate: marek.vasut@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 916B42C0091 for ; Fri, 2 Aug 2013 08:23:36 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 806CB4A102; Fri, 2 Aug 2013 00:22:57 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id i5aMOW0ZyjIe; Fri, 2 Aug 2013 00:22:57 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD11A4A114; Fri, 2 Aug 2013 00:20:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id EE8154A0A9 for ; Fri, 2 Aug 2013 00:20:10 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FOJztjqN1tI4 for ; Fri, 2 Aug 2013 00:20:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-pd0-f170.google.com (mail-pd0-f170.google.com [209.85.192.170]) by theia.denx.de (Postfix) with ESMTPS id 5C8274A039 for ; Fri, 2 Aug 2013 00:19:28 +0200 (CEST) Received: by mail-pd0-f170.google.com with SMTP id x10so2523389pdj.1 for ; Thu, 01 Aug 2013 15:19:26 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=AWvJuJIm1lOX6WTDzY+0y8bQqrxQRDWlm9zW0VbY/gA=; b=Qb8A5GsekHpY+8agFQsKRn70f10xS0WrZFScOw/RarvrZcsBdqVwX3vLcdNAuip6Cg EgSOPELKpkwYPzyB9pEn5wVsa8+a/oduQvLtiTuUhTux677hP2PPrR8rLKR+0gSgVV+h OnAdXNzSCg1TkrOvHAC+GS/sPoeoU8tj+5zDnDKlZ3VSWKBHXI8uwEdr+Rsro2nu4KNs zdZbE2aet+FaYnKwi6nYMTYkezsRCxx6B/JrG64ut6q+H5K4bR/HfQZkMeInAsqU13Su bcXEv0OFgl12/TTGDRh91zN9JkyE+SnjMj1XtCcYB/fNdAK42efgKdhCDVnpKY4kdADg 320A== X-Received: by 10.68.170.133 with SMTP id am5mr207382pbc.104.1375395566648; Thu, 01 Aug 2013 15:19:26 -0700 (PDT) Received: from officeserver-2 ([70.96.116.236]) by mx.google.com with ESMTPSA id 7sm2842951paf.22.2013.08.01.15.19.23 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 01 Aug 2013 15:19:25 -0700 (PDT) Received: from tkisky by officeserver-2 with local (Exim 4.80) (envelope-from ) id 1V51DN-0004rR-DA; Thu, 01 Aug 2013 15:19:21 -0700 From: Troy Kisky To: marek.vasut@gmail.com Date: Thu, 1 Aug 2013 15:18:29 -0700 Message-Id: <1375395521-18569-13-git-send-email-troy.kisky@boundarydevices.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1375395521-18569-1-git-send-email-troy.kisky@boundarydevices.com> References: <1375395521-18569-1-git-send-email-troy.kisky@boundarydevices.com> X-Gm-Message-State: ALoCoQnymWrIZx548PYhsTpauv+cZ9wBDt7GqNjOyb44CKE3j++0mzyc4+k9TpXRpk/Esf0foxtR Cc: fabio.estevam@freescale.com, otavio@ossystems.com.br, leiwen@marvell.com, u-boot@lists.denx.de Subject: [U-Boot] [PATCH V2 08/20] usb: gadget: mv_udc: add MX6Q specific reset X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Troy Kisky --- I don't know if this is needed, but it doesn't hurt. --- drivers/usb/gadget/mv_udc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/gadget/mv_udc.c b/drivers/usb/gadget/mv_udc.c index 359b8e1..26f193d 100644 --- a/drivers/usb/gadget/mv_udc.c +++ b/drivers/usb/gadget/mv_udc.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -569,6 +570,9 @@ static int mv_pullup(struct usb_gadget *gadget, int is_on) /* RESET */ writel(USBCMD_ITC(MICRO_8FRAME) | USBCMD_RST, &udc->usbcmd); udelay(200); +#if defined(CONFIG_MX6Q) || defined(CONFIG_MX6DL) + reset_usb_phy1(); +#endif writel((unsigned)controller.epts, &udc->epinitaddr);