public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Luka Perkov <uboot@lukaperkov.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] kirkwood: add support for D-Link DNS-320
Date: Wed, 2 May 2012 20:45:15 +0200	[thread overview]
Message-ID: <20120502184515.GA14946@w500.lan> (raw)
In-Reply-To: <1335435838-12343-1-git-send-email-jm@lentin.co.uk>

Hi Jamie,

I know that you have sent newer version of this patch but here is easier
for me to comment... I have also put maintainer of NAS325 board in
CC.


On Thu, Apr 26, 2012 at 11:23:58AM +0100, Jamie Lentin wrote:
> This patch adds support for D-Link DNS-320 ShareCenter NAS.

...

> +#ifdef CONFIG_RESET_PHY_R
> +/* Configure and initialize PHY */
> +void reset_phy(void)
> +{
> +	u16 reg;
> +	u16 devadr;
> +	char *name = "egiga0";
> +
> +	if (miiphy_set_current_dev(name))
> +		return;
> +
> +	/* command to read PHY dev address */
> +	if (miiphy_read(name, 0xEE, 0xEE, (u16 *) &devadr)) {
> +		printf("Err..(%s) could not read PHY dev address\n", __func__);
> +		return;
> +	}
> +
> +	/*
> +	 * Enable RGMII delay on Tx and Rx for CPU port
> +	 * Ref: sec 4.7.2 of chip datasheet
> +	 */
> +	miiphy_write(name, devadr, MV88E1116_PGADR_REG, 2);
> +	miiphy_read(name, devadr, MV88E1116_MAC_CTRL_REG, &reg);
> +	reg |= (MV88E1116_RGMII_RXTM_CTRL | MV88E1116_RGMII_TXTM_CTRL);
> +	miiphy_write(name, devadr, MV88E1116_MAC_CTRL_REG, reg);
> +	miiphy_write(name, devadr, MV88E1116_PGADR_REG, 0);
> +
> +	/* reset the phy */
> +	miiphy_reset(name, devadr);
> +
> +	debug("88E1116 Initialized on %s\n", name);
> +}
> +#endif /* CONFIG_RESET_PHY_R */

Are you sure you need this CONFIG_RESET_PHY_R at all? I mean I have the
same SoC and I do not need this at all. I think this part is left over
from other boards that we do not need anymore. It makes sense to remove
this if you do not need it on your board.

Take a look here:

http://git.denx.de/?p=u-boot/u-boot-arm.git;a=blob;f=board/raidsonic/ib62x0/ib62x0.c;h=65f2c2ea6a0415b0f508bc078528884e526dd201;hb=HEAD

Luka

  parent reply	other threads:[~2012-05-02 18:45 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-26 10:23 [U-Boot] [PATCH] kirkwood: add support for D-Link DNS-320 Jamie Lentin
2012-04-26 10:57 ` Prafulla Wadaskar
2012-04-26 14:00   ` Jamie Lentin
2012-05-01  9:25   ` [U-Boot] [PATCH 0/2] Generalise dns325 support and include dns320 Jamie Lentin
2012-05-01  9:25     ` [U-Boot] [PATCH 1/2] kirkwood: Rename dns325 to dnskw Jamie Lentin
2012-05-01  9:25     ` [U-Boot] [PATCH 2/2] kirkwood: Add support for the D-Link DNS-320 Jamie Lentin
2012-07-30 21:55     ` [U-Boot] [RESEND] [PATCH 0/2] kirkwood: Generalise dns325 support, include dns320 Jamie Lentin
2012-07-30 21:55       ` [U-Boot] [PATCH 1/2] kirkwood: Rename dns325 to dnskw Jamie Lentin
2012-07-30 21:55       ` [U-Boot] [PATCH 2/2] kirkwood: Add support for the D-Link DNS-320 Jamie Lentin
2012-07-31  5:56         ` Prafulla Wadaskar
2012-07-31  9:01           ` Jamie Lentin
2012-07-31 17:16             ` Stefan Herbrechtsmeier
2012-07-31  5:51       ` [U-Boot] [RESEND] [PATCH 0/2] kirkwood: Generalise dns325 support, include dns320 Prafulla Wadaskar
2012-07-31  8:31         ` Jamie Lentin
2012-07-31 10:35           ` Prafulla Wadaskar
2012-08-05 17:09             ` Jamie Lentin
2012-05-02 18:45 ` Luka Perkov [this message]
2012-05-11 14:09   ` [U-Boot] [PATCH] kirkwood: add support for D-Link DNS-320 Jamie Lentin
2012-05-11 20:10     ` Luka Perkov

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=20120502184515.GA14946@w500.lan \
    --to=uboot@lukaperkov.net \
    --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