[i2c] rtc: pcf8563 detection problem
Jean Delvare
khali at linux-fr.org
Wed Aug 29 14:25:15 CEST 2007
Hi Stefan,
On Wed, 29 Aug 2007 08:15:58 +0200, Stefan Roese wrote:
> On our custom board we have the PCF8563 equipped. Using the current driver,
> the RTC is not detected. It gets detected after adding it's I2C address
> (0x51) to the "normal_i2c[]" array:
>
> static unsigned short normal_i2c[] = { 0x51, I2C_CLIENT_END };
>
> So I was wondering why it is not included here. The comment above the
> declaration explains that it can't be autodetected, but how should this
> driver be used if no address is specified here?
Use module parameters. For example:
modprobe rtc-pcf8563 probe=0,0x51
Or an equivalent bootloaded parameter if the driver is built-in.
Ideally this driver would be converted to a new-style i2c driver so
that the RTC chip can be declared in a platform file and the device
instantiated automatically.
--
Jean Delvare
More information about the i2c
mailing list