Re: How to use kernel driver from API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



(cc linux-i2c)

On Tue, Jun 23, 2009 at 08:51:16AM +0200, Klemen Omejc wrote:
> I using trizepsIV module with PXA27x and ConXs board, kernel 2.6.20.
> 
> I would like to have access to driver for RTC PCF8593 (PCF8583) on I2C bus
> from my FLTK application. What is the easy way to do that.

You need to have an i2c_board_info struct to instanciate the driver from
your board support code. Pass in the driver's names and the addresses,
then call i2c_register_board_info(). You can also have a look at how
others do that in arch/arm/mach-pxa/*.

However, I'm not quite sure whether that mechanism is also valid for
kernel 2.6.20. If it isn't, you should consider updating to something
more recent.

> Probably than I could also connect to EEPROM and temperature sensors on
> the same way.

Yes, that works for all devices connected to I2C.

Daniel

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

[Index of Archives]     [Linux GPIO]     [Linux SPI]     [Linux Hardward Monitoring]     [LM Sensors]     [Linux USB Devel]     [Linux Media]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux