public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
From: Tony Lindgren <tony@atomide.com>
To: "Enric Balletbò i Serra" <eballetbo@gmail.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: How to add an expansion board on IGEP v2 board.
Date: Fri, 5 Nov 2010 14:45:23 -0700	[thread overview]
Message-ID: <20101105214523.GY9264@atomide.com> (raw)
In-Reply-To: <AANLkTi=_nQu2YZT0+Nq-vGOfu=YufAGC9k+g6GBzYHZH@mail.gmail.com>

* Enric Balletbò i Serra <eballetbo@gmail.com> [101027 01:23]:
> Hello all,
> 
> I would ask some technical questions, maybe someone can help me. I
> would add support for a new expansion board for IGEP v2 board,
> 
> The expansion board comes with a EEPROM, the EEPROM is used to
> identify the expansion board, my idea is create a new file for
> expansion board ( board-igep0020-expansion.c ) and
> 
> * on board-igep0020.c
>   - Add extern void __init igep2_expansion_init(void);
>   - Call igep2_expansion_init on igep2_init()
> 
> * on board-igep0020-expansion.c
>   - Create  igep2_expansion_init, inside this funciton
>     - Add e2prom device and read board id
>     - If board ID exists then init all expansion devices
> 
> I'm in the right way ? Comments ?

Sounds good to me. Runtime detection is the best way to go.

Tony
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

      reply	other threads:[~2010-11-05 21:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-27  8:32 How to add an expansion board on IGEP v2 board Enric Balletbò i Serra
2010-11-05 21:45 ` Tony Lindgren [this message]

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=20101105214523.GY9264@atomide.com \
    --to=tony@atomide.com \
    --cc=eballetbo@gmail.com \
    --cc=linux-omap@vger.kernel.org \
    /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