From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Rini Date: Fri, 2 Sep 2016 10:53:17 -0400 Subject: [U-Boot] [PATCH v2 2/3] board: am335x-icev2: add ethernet phy mode detection logic In-Reply-To: <1472042151-24844-3-git-send-email-rogerq@ti.com> References: <1472042151-24844-1-git-send-email-rogerq@ti.com> <1472042151-24844-3-git-send-email-rogerq@ti.com> Message-ID: <20160902145317.GG4990@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Aug 24, 2016 at 03:35:50PM +0300, Roger Quadros wrote: > Both ethernet ports can be used as CPSW ethernet (RMII mode) > or PRU ethernet (MII mode) by setting the jumper near the port. > Read the jumper value and set the pinmux, external mux and > PHY clock accordingly. > > As jumper line is overridden by PHY RX_DV pin immediately > after bootstrap (power-up/reset), we have to use GPIO edge > detection to capture the jumper line status. > > As u-boot doesn't provide any infrastructure for GPIO edge > detection, we directly access the GPIO registers. > > Signed-off-by: Roger Quadros Reviewed-by: Tom Rini -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 819 bytes Desc: Digital signature URL: