Ranganath,
I had a look @board-mop500-sensors.c there is already support for this
lsm303dlh_m sensor,
here is the code snippet for it,
{
/* LSM303DLH Magnetometer */
I2C_BOARD_INFO("lsm303dlh_m", 0x1E),
.platform_data = &lsm303dlh_pdata,
},
why are you changing it?
Regards,
--Prabhakar Lad
On Tue, Feb 7, 2012 at 10:32 AM, Ranganath TM <[email protected]> wrote:
> Hi Prabhakar,
>
> I am working on snowball A9500 board, In that I trying to enable LSM303DLHC
> Senor which is Accelorometer, In board-mop500-sensor.c,
>
> is an board file of sensor, In that for I2C driver function I am adding
> address has 0x32 and giving the lsm303dlhc the name in driver, also I am
>
> writing the platform_data function.
>
>
> logs :
>
> 1.987487] arch/arm/mach-ux500/board-mop500-sensors.c: failed to register
> lsm303dlh_m to i2c2
> [ 1.996276] arch/arm/mach-ux500/board-mop500-sensors.c: failed to
> register l3g4200d to i2c2
> [ 2.004821] arch/arm/mach-ux500/board-mop500-sensors.c: failed to
> register lps001wp_prs_sysfs to i2c2
> [ 2.206787] nmk-i2c nmk-i2c.2: Write to slave 0x18 timed out
> [ 2.212463] nmk-i2c nmk-i2c.2: no ack received after address transmission
> [ 2.416870] nmk-i2c nmk-i2c.2: Write to slave 0x18 timed out
> [ 2.422515] nmk-i2c nmk-i2c.2: no ack received after address transmission
> [ 2.516906] usb 1-1: new low speed USB device number 2 using musb-hdrc
> [ 2.627014] nmk-i2c nmk-i2c.2: Write to slave 0x18 timed out
> [ 2.632659] nmk-i2c nmk-i2c.2: no ack received after address transmission
> [ 2.639831] arch/arm/mach-ux500/board-mop500-sensors.c: failed to
> register lsm303dlh_a to i2c2
>
> Thanks,
>
> Ranga.
>
>
>
> On Mon, Feb 6, 2012 at 12:14 PM, Prabhakar Lad <[email protected]>
> wrote:
>>
>> Ranganath,
>>
>> For which sensor are trying to build? Is there a existing base driver for
>> capture for snowball board?
>> If it has a base driver, add some debug msgs in the probe.
>>
>> WBR,
>> --Prabhakar Lad
>>
>>
>> On Thu, Feb 2, 2012 at 3:58 PM, Ranganath TM <[email protected]>
>> wrote:
>>>
>>> Hi All,
>>>
>>> I am trying to port the sensors on ICS on snowball PDK(v7),
>>>
>>> I had done the following steps to enable it,
>>>
>>> In menuconfig,
>>>
>>> I enabled LSM303DLHC,
>>>
>>> After that I changed the board file by adding the sensor address and
>>> data,
>>>
>>> both are compiled and object files are created but i am not getting
>>> the logs and sensor are not working,
>>>
>>> please help me regarding the issues,
>>>
>>> Thanks and Regards,
>>>
>>> Ranganath.T.M
>>>
>>> --
>>> unsubscribe: [email protected]
>>> website: http://groups.google.com/group/android-porting
>>
>>
>
>
>
> --
> Thanks And Regards
> Ranganath T.M
>
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting