public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] mx51evk: Provide a proper reset for the Ethernet PHY
Date: Fri, 20 Aug 2010 16:39:18 +0200	[thread overview]
Message-ID: <4C6E9396.3040203@denx.de> (raw)
In-Reply-To: <46828.21571.qm@web51007.mail.re2.yahoo.com>

Fabio Estevam wrote:
> Hi Stefano,
> 

Hi Fabio,

>>     udelay(200);
>>     mxc_gpio_set(46);

This must be,
>>
>> What do you think ?
> 
> Yes, I agree. Do you plan to send a patch for mx51evk using this approach?
> 
> If you do, then I can re-submit my patch after your update.

I sent today a patch adding a common way to access gpios for i.MX31 and
i.MX51:

http://article.gmane.org/gmane.comp.boot-loaders.u-boot/83163


I have another issue. It seems to me that the lines you want to add are
already in the code, only some lines later:

263         /* Enable VGEN3, VCAM, VAUDIO, VVIDEO, VSD regulators */
264         val = VGEN3EN | VGEN3CONFIG | VCAMEN | VCAMCONFIG |
265                 VVIDEOEN | VAUDIOEN  | VSDEN;
266         pmic_reg_write(REG_MODE_1, val);
267
268         udelay(500);
269
270         reg = readl(GPIO2_BASE_ADDR + 0x0);
271         reg |= 0x4000;
272         writel(reg, GPIO2_BASE_ADDR + 0x0);

This is exactly what you want to add, only after setting the regulators.
Why do we need to set the gpio twice ?

Best regards,
Stefano Babic

-- 
=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================

  reply	other threads:[~2010-08-20 14:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-19 17:28 [U-Boot] [PATCH] mx51evk: Provide a proper reset for the Ethernet PHY Fabio Estevam
2010-08-20  8:31 ` Stefano Babic
2010-08-20 14:26   ` Fabio Estevam
2010-08-20 14:39     ` Stefano Babic [this message]
2010-08-20 15:33       ` Fabio Estevam

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=4C6E9396.3040203@denx.de \
    --to=sbabic@denx.de \
    --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