[ls1021a]want use the gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register

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

[ls1021a]want use the gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register

529 Views
Cheney_t
Contributor II

I  want use gpio4[19:22] as GPIO mode, how to config the rcw and SCFG_QEIOCLKCR register?

My RCW is:

Reset Configuration Word (RCW):
00000000: 0608000a 00000000 00000000 00000000
00000010: 30000000 00407900 60044a00 21046000
00000020: 00000000 00000000 00000000 00438b00
00000030: 20084100 5004b340 00000000 00000000

GPIO is not responding on test

Tags (1)
0 Kudos
1 Reply

519 Views
r8070z
NXP Employee
NXP Employee

In order to use shared by gpio4[19:22] pins as GPIO RCW fields QE_TDMA and QE_TDMB  can be 000/001/010/011. I can see in your RCW[416:447]=0x5004b340  i.e. your RCW has QE_TDMA=001, QE_TDMB=001.  It is suitable values.

In the SCFG_QEIOCLKCR we has to set

CLK09=01 for GPIO4_19
CLK10=01 for GPIO4_20
CLK11= 01 for GPIO4_21
CLK12 =01 for GPIO4_22

Hence we must set SCFG_QEIOCLKCR to 0x55000000

0 Kudos