how to integrate pinmux tool C code into Linux

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

how to integrate pinmux tool C code into Linux

2,477件の閲覧回数
randysilagi
Contributor II

I have a imx6sx.  The H/W guys used the pinmux tool to configure which pins support which functions.  Now I have these 3 files, iomux_config_core1.c *.h and fsl_bitaccess.h.  How do I add these files to the kernel and or U-Boot?

Randy S.

ラベル(3)
0 件の賞賛
返信
4 返答(返信)

1,658件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

   The Pins Tool is recommended instead of the pinmux.

Pins Tool for i.MX Application Processors|NXP  

It generates the Device Tree for Linux. 

Regards,

Yuri.

1,658件の閲覧回数
randysilagi
Contributor II

Hi Yuri,

So, I have generated the files with pin tool.  Now what should I do with the iomux_config_core1.c and .h files??

Randy S.

0 件の賞賛
返信

1,658件の閲覧回数
Yuri
NXP Employee
NXP Employee

Hello,

  You may refer to recommendations of Carlos_Musich Employee above.

Also, please look at section 3.6 (IOMUX) of "i.MX_Linux_Reference_Manual.pdf".

http://www.nxp.com/webapp/Download?colCode=L4.1.15_2.0.0-LINUX-DOCS&Parent_nodeId=133769948107170617... 

Regards,

Yuri.

0 件の賞賛
返信

1,658件の閲覧回数
Carlos_Musich
NXP Employee
NXP Employee

Hi Randy,

the pinmux tool was used for the i.MX SDK which provided bareboard configuration, however this tool is no longer used and every configuration must be done through the Device Tree.

You may find many references to this topic

Device Tree Tutorial (ARM) | Linux Kernel For Newbies 

Configure GPIO as interrupt source 

Default config of GPIO's using device tree - Freescale i.MX6 - Stack Overflow 

Any examples on how to modify the .dts (device tree) source for custom hardware? 


Regards,
Carlos

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------