[U-Boot-Users] Correct place for new drivers?

Stefan Roese sr at denx.de
Mon Jun 11 15:59:16 CEST 2007


Hi Mike,

On Monday 11 June 2007, Mike Panetta wrote:
> I want to add some I2C device drivers to my tree and I was wondering
> where the correct place to put them would be so any patches I make in
> future would be accepted.
>
> I was thinking drivers/i2c (which does not exist) is that ok?  I have
> the Philips 2005-1 I2C demo board and I wanted to add support for some
> of the devices on there which could possibly be on future devices to
> control LED's or power or whatever.  I am thinking about eventually
> building a board around the AVR32 processor and I may use one or 2 of
> these devices, so they would not be added to the tree for no reason (and
> surly someone else out there uses I2C devices other then RTC's on their
> boards).
>
> I would also like to eventually add support for the Atmel board
> controller on the NGW100 as soon as I figure out how it works. :)
>
> So basically where is the best place to put a load of I2C drivers?

I would suggest to borrow again from the Linux kernel here and put the bus 
drivers (like ppc4xx-i2c or mpc8xx-i2c) into:

  drivers/i2c/busses/*

and put the device drivers (like your Philips I2C I/O expander device) into:

  drivers/i2c/chips/*

Any other suggestions?

Best regards,
Stefan

=====================================================================
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
=====================================================================




More information about the U-Boot mailing list