Reputation: 31
I need to configure the registers (register address - 16 bits) of image sensor residing on the i2c-2 bus. I am using i2ctools commands (i2cset,i2cget etc.) from the command line to configure other hardware devices (register address - 8 bits).
i2ctools only allow register address ranging from 0x00 to 0xFF.
Can anbody suggest any alternate approach to configure this image sensor. My need is only to configure the registers on board start up (one time initialize). I am using linux built using yocto on my board.
What is the proper way to configure the registers of any hardware device if its just a one time requirement after start up ?
I did some research online, do i need to write kernel module or kernel driver for this. What is the difference between the two - module and driver ? How to implement the same in yocto ?
Upvotes: 0
Views: 873
Reputation: 1382
You dont need a kernel driver or module for this.
i2cset [-f] [-y] [-r] i2cbus chip-address data-address [value] ... [mode]
mode must be w
for 16 bit data-address.
Upvotes: 0