Accessing GPIO in QorIQ u-boot

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

Accessing GPIO in QorIQ u-boot

1,263件の閲覧回数
kylevonschmacht
Contributor I

To whom it may concern,

We're using a custom board using the T2081, derived from the T2080RDB and the T1042RDB.

We find ourselves needing to use a GPIO during the u-boot phase.

To that end:

-What do we need to include in the build?

-What configurations and #define are needed?

-What custom code do we need to generate to fill in the gaps?

Thanks for your help,

Kyle

ラベル(1)
タグ(3)
0 件の賞賛
返信
1 返信

1,035件の閲覧回数
Pavel
NXP Employee
NXP Employee

There is no GPIO driver in u-boot for QorIQ processors, but u-boot driver structure is relatively simple, so you can create your own GPIO driver using other GPIO drivers as reference. For example drivers please look /drivers/gpio/ folder in U-boot sources folder.

Use as example the mpc85xxx_gpio.c file.


Have a great day,
Pavel Chubakov

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

0 件の賞賛
返信