public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Ajay Bhargav <ajay.bhargav@einfochips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/4] Armada100: Enable 88E3015 PHY support for GplugD
Date: Tue, 19 Jul 2011 09:40:56 +0530 (IST)	[thread overview]
Message-ID: <689858104.27342.1311048656182.JavaMail.root@ahm.einfochips.com> (raw)
In-Reply-To: <F766E4F80769BD478052FB6533FA745D19FB019D52@SC-VEXCH4.marvell.com>


----- "Prafulla Wadaskar" <prafulla@marvell.com> wrote:

> > -----Original Message-----
> > From: Ajay Bhargav [mailto:ajay.bhargav at einfochips.com]
> > Sent: Monday, July 18, 2011 3:12 PM
> > To: Prafulla Wadaskar
> > Cc: u-boot at lists.denx.de; Ajay Bhargav
> > Subject: [PATCH 3/4] Armada100: Enable 88E3015 PHY support for
> GplugD
> > 
> > This patch adds support for 88E3015 PHY for Marvell GplugD board.
> > 
> > Signed-off-by: Ajay Bhargav <ajay.bhargav@einfochips.com>
> > ---
> >  board/Marvell/gplugd/gplugd.c |   35
> > +++++++++++++++++++++++++++++++++++
> >  include/configs/gplugd.h      |   14 ++++++++++++++
> >  2 files changed, 49 insertions(+), 0 deletions(-)
> > 
> > diff --git a/board/Marvell/gplugd/gplugd.c
> > b/board/Marvell/gplugd/gplugd.c
> > index dc7d89d..347a689 100644
> > --- a/board/Marvell/gplugd/gplugd.c
> > +++ b/board/Marvell/gplugd/gplugd.c
> > @@ -32,6 +32,8 @@
> >  #include <mvmfp.h>
> >  #include <asm/arch/mfp.h>
> >  #include <asm/arch/armada100.h>
> > +#include <asm/gpio.h>
> > +#include <miiphy.h>
> > 
> >  DECLARE_GLOBAL_DATA_PTR;
> > 
> > @@ -49,6 +51,7 @@ int board_early_init_f(void)
> >  	};
> >  	/* configure MFP's */
> >  	mfp_config(mfp_cfg);
> > +
> 
> Remove this unwanted commit line

Okay..

> 
> >  	return 0;
> >  }
> > 
> > @@ -58,5 +61,37 @@ int board_init(void)
> >  	gd->bd->bi_arch_number = MACH_TYPE_SHEEVAD;
> >  	/* adress of boot parameters */
> >  	gd->bd->bi_boot_params = armd1_sdram_base(0) + 0x100;
> > +	/* Assert PHY_RST# */
> > +	gpio_direction_output(CONFIG_SYS_GPIO_PHY_RST, GPIO_CLR);
> > +	udelay(10);
> > +	/* Deassert PHY_RST# */
> > +	gpio_set_value(CONFIG_SYS_GPIO_PHY_RST, GPIO_SET);
> 
> May you please comment why do you need to set this GPIO?

GPIO 104 is connected to reset pin of 88E3015 PHY. and a reset is
required before initializing PHY chip.

Regards,
Ajay Bhargav

  reply	other threads:[~2011-07-19  4:10 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-18  9:41 [U-Boot] [PATCH 3/4] Armada100: Enable 88E3015 PHY support for GplugD Ajay Bhargav
2011-07-18 19:27 ` Prafulla Wadaskar
2011-07-19  4:10   ` Ajay Bhargav [this message]
2011-07-19  8:23     ` Albert ARIBAUD
2011-07-19  8:16       ` Ajay Bhargav
2011-07-19 17:52     ` Prafulla Wadaskar

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=689858104.27342.1311048656182.JavaMail.root@ahm.einfochips.com \
    --to=ajay.bhargav@einfochips.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox