How to write Device driver for i2c based eeprom for mini2440

krishna
Hi I'm new to Device Drivers.

I want to write Driver program for i2c based eeprom for mini2440 in linux.

and if any one implemented same please let me know.

Juergen Beisert
The required driver is part of the Linux kernel since ages. No need to
re-invent anything. Just enable it in the kernel config and configure it
for runtime and you are done.

krishna
sir I know the thing what you answered. but I'm learning Device Drivers so
as part  of this i want to write a module program for the same.
so if you have any module program for this please let me know.
if possible please guide me.

thanks in advance

Juergen Beisert
Take a look into a current linux kernel into the file
"drivers/misc/eeprom/at24.c". It should give you an idea how to create a
device driver for I2C based EEPROMs.

krishna
If i want to load my i2c driver module for EEPROM Dynamically in linux on
mini2440.

The required driver is part of the Linux kernel since ages. so how to
Disable I2C drivers while compiling my linux kernel ? 

Device Drivers ---->
   {*} I2C support
                 

shall i Disable I2C support ? or something Else to Disable ? 

please let me know ....

Thanks in Advance.

Juergen Beisert
"{*}" shows someone forces this menu entry to be enabled. Use the help text
of this menu entry to let it show what other menu entry forces this entry,
and disable it.