public inbox for linux-omap@vger.kernel.org
 help / color / mirror / Atom feed
* How to add an expansion board on IGEP v2 board.
@ 2010-10-27  8:32 Enric Balletbò i Serra
  2010-11-05 21:45 ` Tony Lindgren
  0 siblings, 1 reply; 2+ messages in thread
From: Enric Balletbò i Serra @ 2010-10-27  8:32 UTC (permalink / raw)
  To: linux-omap

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 ?

Thanks in advance,
   Enric

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How to add an expansion board on IGEP v2 board.
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Tony Lindgren @ 2010-11-05 21:45 UTC (permalink / raw)
  To: Enric Balletbò i Serra; +Cc: linux-omap

* 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-11-05 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox