From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1VAEyy-0003Em-Ar for barebox@lists.infradead.org; Fri, 16 Aug 2013 08:02:11 +0000 Date: Fri, 16 Aug 2013 10:01:39 +0200 From: Sascha Hauer Message-ID: <20130816080139.GN26614@pengutronix.de> References: <1376107853.217410060@f319.i.mail.ru> <20130812070759.GL26614@pengutronix.de> <1376305016.963613355@f136.i.mail.ru> <20130813062607.GQ26614@pengutronix.de> <20130815233241.67b6727ce65114b59807f8ea@mail.ru> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20130815233241.67b6727ce65114b59807f8ea@mail.ru> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: PCM038 USB is broken again To: Alexander Shiyan Cc: barebox@lists.infradead.org On Thu, Aug 15, 2013 at 11:32:41PM +0400, Alexander Shiyan wrote: > On Tue, 13 Aug 2013 08:26:07 +0200 > Sascha Hauer wrote: > > > On Mon, Aug 12, 2013 at 02:56:56PM +0400, Alexander Shiyan wrote: > > > ... > > > And yes, this works after "usb" command: > > > barebox@ConnectCore i.MX51:/ usb > > > USB: scanning bus for devices... > > > Found NXP ISP150x ULPI transceiver (0x04cc:0x1504). > > > Bus 001 Device 001: ID 0000:0000 EHCI Host Controller > > > 1 USB Device(s) found > > > > > > So, you consider this is not a bug? > > > > Doing the initialization twice is not nice and wasn't intended, so > > indeed this is something worth fixing. > > Datasheet MCIMX51RM.pdf says: > 60.3.8 ULPI/Serial MUX > Host1, Host2, and OTG cores can be configured by software for ULPI or Serial PHY operation. The > ULPI/Serial mux selects between ULPI interface signals and Serial PHY interface signals. The mux is > controlled by the PHY Select signals from the USB core and is switched when the software selects the > interface mode. > The default configuration for the mux is Serial mode. Switching to ULPI mode is done by writing the > Parallel Transceiver Select (PTS) bits in the PORTSC register with 0b10. > > So, we need to setup PORTSC to ULPI mode first. Yes, ok. The problem is that fixing initialization on one board seems to break it on another board. I'm a bit out of ideas since this initialization shuffeling follows me for several years now. I have some patches in my queue which I'll send the weekend. I hope this fixes it for you while keeping HSIC workable. Sascha -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox