All of lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Gorsulowski <Daniel.Gorsulowski@esd.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/1] at91: Update MEESC board support
Date: Fri, 11 Sep 2009 09:03:31 +0200	[thread overview]
Message-ID: <4AA9F643.3000509@esd.eu> (raw)
In-Reply-To: <20090910184150.EF1ED832E8DE@gemini.denx.de>

Dear Wolfgang Denk,

Wolfgang Denk wrote:
> Dear Daniel Gorsulowski,
> 
> In message <4AA90821.1060106@esd.eu> you wrote:
>>>> -	/* arch number of MEESC-Board */
>>>> -	gd->bd->bi_arch_number = MACH_TYPE_MEESC;
>>>> +	/* initialize ET1100 Controller */
>>>> +	meesc_ethercat_hw_init();
>>> I thought we had agreed not to initialize the Ethernet hardware if it
>>> not used by U-Boot?
>>>
>> We had, but this does not initialize unused hardware. This is needed for
>> detecting hw_type and setting correct arch_number.
> 
> meesc_ethercat_hw_init() "is needed for ... setting correct
> arch_number" ??
> 
> Best regards,
> 
> Wolfgang Denk
> 
Please take a look at function checkboard().
There is a call "hw_type = readb(CONFIG_ET1100_BASE);" to read the ET1100
type register. The read value is used to determine the correct arch_number.
  valid value (ET1100 present)      --> arch_number = MACH_TYPE_MEESC
  invalid value (no ET1100 present) --> arch_number = MACH_TYPE_ETHERCAN2

For accessing the ET1100 type register, it is mandatory to initialize the
memory controller. Thus, meesc_ethercat_hw_init() is needed and does not
initialize unused hardware!


Btw. the function meesc_ethercat_hw_init() is not new in this patch. I
entirely moved the function call.


Best regards,
Daniel Gorsulowski

  reply	other threads:[~2009-09-11  7:03 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-09  7:15 [U-Boot] [PATCH 1/1] at91: Update MEESC board support Daniel Gorsulowski
2009-09-09  8:58 ` Wolfgang Denk
2009-09-10 14:07   ` Daniel Gorsulowski
2009-09-10 18:41     ` Wolfgang Denk
2009-09-11  7:03       ` Daniel Gorsulowski [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-09-04 12:29 Daniel Gorsulowski
2009-09-04 21:13 ` Jean-Christophe PLAGNIOL-VILLARD
2009-09-04 22:02   ` Wolfgang Denk
2009-09-07  7:26     ` Daniel Gorsulowski
2009-09-07  7:44       ` Simon Kagstrom
2009-09-09  7:15       ` Daniel Gorsulowski

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=4AA9F643.3000509@esd.eu \
    --to=daniel.gorsulowski@esd.eu \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.