problem in port the mag3110 driver to linux source code for imx53

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

problem in port the mag3110 driver to linux source code for imx53

ソリューションへジャンプ
1,407件の閲覧回数
ehsanrezaie
Contributor I

i'm tring to port mag3110 to imx 53 qsb board by drivers that

presented with this property(downloaded from freescale website):

 

 

/******************** (C) COPYRIGHT 2012 Freescale Semiconductor, Inc.

 

   * File Name            : mag_3110.c
* Authors              : Rick Zhang(rick.zhang@freescale.com

 

)
                          Rick is willing to be considered the contact and update points
                          for the driver
* Version              : V.1.0.0
* Date                 : 2012/Mar/15
* Description          : methods and data structure related to MAG3110
magnetometer sensor.
   ******************************************************************************

 

          *******************************************************************
* Revision 1.0.0 3/15/2012 First Release;
******************************************************************************

 

 

and i try to port with readme sequence and using ltib(install from freescaleL2.6.35_11_09_ER_SOURCE package)   .

 

but in step 5 of readme sequence(Configure and compile the driver)i have problem in complie ):

 

 

 

 

--------------------------------
drivers/hwmon/mag3110/mag_core.c:44:31: error: linux/fsl_sensors.h: No
such file or directory
In file included from drivers/hwmon/mag3110/mag_core.c:46:
drivers/hwmon/mag3110/mag_regs.h:33:28: error: linux/wakelock.h: No
such file or directory

-------------------------------------------------

 

so , how i can solve this problem?  .

i attached read me file & complete compile error report


i cant find header files like wakelock.h on the internet.

Original Attachment has been moved to: mag_3110.c.zip

Original Attachment has been moved to: Readme.txt.zip

ラベル(2)
タグ(2)
0 件の賞賛
返信
1 解決策
1,149件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

there are some difference between Android linux kernel and linux standard kernel, please try to use attachment file to replace the old one.

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,150件の閲覧回数
jimmychan
NXP TechSupport
NXP TechSupport

there are some difference between Android linux kernel and linux standard kernel, please try to use attachment file to replace the old one.

0 件の賞賛
返信
1,149件の閲覧回数
bottleneck
Contributor II

Could you help me in sharing the pad and mux configuration and i2c frequency divider register values for SABRESD board. I am not getting acknowledge from the device.

Please do needful

0 件の賞賛
返信