* [U-Boot] Adding a composite device, how to structure ?
@ 2009-06-05 19:00 Tom
2009-06-05 20:40 ` Wolfgang Denk
2009-06-06 6:23 ` Heiko Schocher
0 siblings, 2 replies; 3+ messages in thread
From: Tom @ 2009-06-05 19:00 UTC (permalink / raw)
To: u-boot
Wolfgang,
I would like to add support for the twl4030, a composite i2c device,
found on the omap3 zoom's.
The header file will be include/twl4030.h.
How do you want the source to be structured ?
1. A single large file in drivers/i2c/twl4030.c
or device files added under a directory ?
2. drivers/i2c/twl4030/keyboard, drivers/i2c/twl4030/usb,
drivers/i2c/twl4030/battery,
or just the common code in i2c and twl4030 devices in the places they
usually go.
3. drivers/i2c/twl4030.c, drivers/usb/tw4030_usb.c etc ..
My guess is #3.
Tom
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Adding a composite device, how to structure ?
2009-06-05 19:00 [U-Boot] Adding a composite device, how to structure ? Tom
@ 2009-06-05 20:40 ` Wolfgang Denk
2009-06-06 6:23 ` Heiko Schocher
1 sibling, 0 replies; 3+ messages in thread
From: Wolfgang Denk @ 2009-06-05 20:40 UTC (permalink / raw)
To: u-boot
Dear Tom,
In message <4A296B3C.1060208@windriver.com> you wrote:
>
> I would like to add support for the twl4030, a composite i2c device,
> found on the omap3 zoom's.
> The header file will be include/twl4030.h.
> How do you want the source to be structured ?
> 1. A single large file in drivers/i2c/twl4030.c
>
> or device files added under a directory ?
>
> 2. drivers/i2c/twl4030/keyboard, drivers/i2c/twl4030/usb,
> drivers/i2c/twl4030/battery,
>
> or just the common code in i2c and twl4030 devices in the places they
> usually go.
>
> 3. drivers/i2c/twl4030.c, drivers/usb/tw4030_usb.c etc ..
>
> My guess is #3.
My guess is so, too - but this is acually for Heiko to answer.
Heiko?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If I don't document something, it's usually either for a good reason,
or a bad reason. In this case it's a good reason. :-)
- Larry Wall in <1992Jan17.005405.16806@netlabs.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* [U-Boot] Adding a composite device, how to structure ?
2009-06-05 19:00 [U-Boot] Adding a composite device, how to structure ? Tom
2009-06-05 20:40 ` Wolfgang Denk
@ 2009-06-06 6:23 ` Heiko Schocher
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Schocher @ 2009-06-06 6:23 UTC (permalink / raw)
To: u-boot
Hello Tom,
Tom wrote:
> I would like to add support for the twl4030, a composite i2c device,
> found on the omap3 zoom's.
> The header file will be include/twl4030.h.
> How do you want the source to be structured ?
> 1. A single large file in drivers/i2c/twl4030.c
>
> or device files added under a directory ?
>
> 2. drivers/i2c/twl4030/keyboard, drivers/i2c/twl4030/usb,
> drivers/i2c/twl4030/battery,
>
> or just the common code in i2c and twl4030 devices in the places they
> usually go.
>
> 3. drivers/i2c/twl4030.c, drivers/usb/tw4030_usb.c etc ..
>
> My guess is #3.
Yep, I think #3 is the right way to go.
bye
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-06-06 6:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-06-05 19:00 [U-Boot] Adding a composite device, how to structure ? Tom
2009-06-05 20:40 ` Wolfgang Denk
2009-06-06 6:23 ` Heiko Schocher
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox