From: Tolunay Orkun <listmember@orkun.us>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] Peripheral initialization hooks
Date: Tue, 14 Feb 2006 17:28:11 -0600 [thread overview]
Message-ID: <43F2678B.7000602@orkun.us> (raw)
In-Reply-To: <482F3C06ECF00C44AEC226520C6FCB1A51ECB9@EXCHANGEVS.HYPERCOM.COM>
Steve,
Steve Strublic wrote:
> I have a PPC852T platform running U-Boot. My platform has the ability
> to enable or disable the Ethernet PHY directly, and at boot the PHY is
> disabled. It must be enabled, through a register in an FPGA that is
> accessed through a separate chip select.
>
>
>
> Is it acceptable to modify board_init_r() to include a call to an
> enable/disable function that would only apply if my board were defined?
> Or are there any hooks for board-specific initializations?
>
>
>
> Also, given that this is related to Ethernet, I think it?s best that I
> enable the PHY immediately before querying the config for ?ethaddr? in
> board_init_r(). Agree/disagree?
I personally would stay away modifying common code if there is a way to
do it. You surely will make it modifications conditional for your board
but still it is a distribution of your board programming logic into
other files that are not obvious immediately.
What if you enable CONFIG_BOARD_EARLY_INIT_F in your board config file
and create a board_early_init_f() that enables all your PHYs and leave
it enabled?
Unless there is a serious issues with that, I would choose to keep all
your PHYs enabled. This assumes that you have initialized your FPGA CS
in your board initialization.
I use early init to initialize PLL to generate correct frquency for my
external serial console clock and a number of other clocks.
Tolunay
next prev parent reply other threads:[~2006-02-14 23:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-02-13 20:24 [U-Boot-Users] Peripheral initialization hooks Steve Strublic
2006-02-14 0:25 ` Shawn Jin
2006-02-14 23:28 ` Tolunay Orkun [this message]
2006-02-17 0:07 ` Wolfgang Denk
-- strict thread matches above, loose matches on Subject: below --
2006-02-14 17:12 Steve Strublic
2006-02-17 16:24 Steve Strublic
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=43F2678B.7000602@orkun.us \
--to=listmember@orkun.us \
--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