All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] Detecting board revision that needs to be done after relocation
Date: Tue, 29 May 2012 16:45:37 +0200	[thread overview]
Message-ID: <201205291645.37441.marek.vasut@gmail.com> (raw)
In-Reply-To: <CAOMZO5CrgJ2w2RL7teiDadRq8=_3mLkz+hy1_Xg7BAW=d5bURw@mail.gmail.com>

Dear Fabio Estevam,

> Hi,
> 
> I need to provide a get_board_rev() function that depends on I2C probe
> of a PMIC to decide between the board revision.
> 
> I2C is only available after relocation,

On arm? Not at all ;-) check arch/arm/lib/board.c

> so what is the correct way to
> "delay" get_board_rev, so that it gets called only at a time when I2C
> is ready?

Well ... implement board-specific hack in your boardfile that detects the PMIC 
early?

> Thanks,
> 
> Fabio Estevam
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

Best regards,
Marek Vasut

  reply	other threads:[~2012-05-29 14:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-29  3:25 [U-Boot] Detecting board revision that needs to be done after relocation Fabio Estevam
2012-05-29 14:45 ` Marek Vasut [this message]
2012-05-29 15:55   ` Fabio Estevam
2012-05-29 19:13 ` Andrew E. Mileski
2012-06-04 14:31 ` Hebbar, Gururaja

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=201205291645.37441.marek.vasut@gmail.com \
    --to=marek.vasut@gmail.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 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.