Configure EVT0_B, EVT1_B, EVT2_B, EVT3_B and EVT4_B as input pin on LS1043

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

Configure EVT0_B, EVT1_B, EVT2_B, EVT3_B and EVT4_B as input pin on LS1043

246件の閲覧回数
bhargavjayswal
Contributor III

Currently I have utilize all interface and pin available on LS1043 and I require to have an extra GPIO to identify my board version. By reviewing schematic of LS1043ARDB , I find that EVT0 to EVT4 pins are pull up with 4.7K register and not used at anywhere.

In technical reference manual of LS1043, Appendix C represent EPU register descriptions. Where EPU base address is 2000_0000h. 

EVT0_ADDR -> 2000_0000 + (50h + (0 x 4h)) = 2000_0050     (EPEVTCR0)

EVT1_ADDR -> 2000_0000 + (50h + (1 x 4h)) = 2000_0054     (EPEVTCR1)

EVT2_ADDR -> 2000_0000 + (50h + (2 x 4h)) = 2000_0058     (EPEVTCR2)

EVT3_ADDR -> 2000_0000 + (50h + (3 x 4h)) = 2000_005C    (EPEVTCR3)

EVT4_ADDR -> 2000_0000 + (50h + (4 x 4h)) = 2000_0060     (EPEVTCR4)

 

So if I configure 0th bit DIR as 0b then it will configure as input pin then I can read status of that pin from EPRSRSVn.

As per my understating if ENTn_B pin is configure with external pull-up then I will get value 1 from EPRSRSVn register.if ENTn_B pin configure with external pull-down then i will get value 0 from EPRSRSVn register.

 

Request you to confirm this, please let me know for any improvement or changes.

 

Regards,

Bhargav Jayswal

 

0 件の賞賛
返信
3 返答(返信)

216件の閲覧回数
SebastianG
NXP TechSupport
NXP TechSupport

Hi @bhargavjayswal,

This configuration seems good 

0 件の賞賛
返信

183件の閲覧回数
bhargavjayswal
Contributor III

Thanks for  update.

 

Now based  on above configuration, can we use this pin as an input gpio during u-boot to validate state of the pin whether is high or low? 

 

Regards,

Bhargav Jayswal

0 件の賞賛
返信

63件の閲覧回数
SebastianG
NXP TechSupport
NXP TechSupport

Hi @bhargavjayswal,

Apologies for the delayed response,

Yes, you can use this pin as an input in order to validate the pin state

0 件の賞賛
返信