solox:problem with gpio interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

solox:problem with gpio interrupt

887 Views
will_peng
Contributor I

I'm working with i.mx solox.Use the gpio interrupt on m4 with MQX.

My porblem is when the A9 not boot to linux,the gpio interrupt work fine,but when the A9 boot to run linux,the gpio interrupt halt.the lwgpio_int_get_flag() return 1,but not run the interrupt callback fuction.I have change several gpios,but all the same.

can someone give me some suggustions?Thanks!

Labels (1)
0 Kudos
3 Replies

552 Views
will_peng
Contributor I

The gpio on LCD1_VSYNC can work with interrupts when disable the gpio3 in dts file.But can not use the 32 pins of the gpio3 in linux now。

0 Kudos

552 Views
igorpadykov
NXP Employee
NXP Employee

Hi

one can check if these gpios are used in linux and check

Table 52-2. RDC Peripheral Mapping i.MX6SX Reference Manual

http://cache.freescale.com/files/32bit/doc/ref_manual/IMX6SXRM.pdf

for programming interrupt please follow attached MQX Guide

sect.9.4.10 lwgpio_int_init()

Best regards

igor

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

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

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

0 Kudos

552 Views
will_peng
Contributor I

Thanks for you help!

I'm working with the 3.14.28.

I think the the gpios are not used in linux,and  I only change the DTS .config file,not change the linux source code.

On the mqx side add RDC_PDAP_EIM_ID to rdc_perpheral_m4[] in init_hw.c.I use MQX to control the EIM;

The gpio I'm using is LWGPIO_PIN_LCD1_VSYNC.The gpio init sequence list below:

   lw_gpio_init();

   lwgpio_set_functionality();

   lwgpio_set_attribute();

   lwgpio_int_init();

   _int_install_isr();

   _bsp_int_init();

   lwgpio_int_enable();

I'm a newer to i.mx,Please tell me what files to check.

0 Kudos