IMX8QXP Configure GPIO

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

IMX8QXP Configure GPIO

850 Views
shalanyang
Contributor II

Hi ,ALL,

            we are useing  imx8qxp , I want to config gpio_1_20 to test startup time in uboot, but I do not use  "imx8_iomux_setup_multiple_pads,gpio_request(GPS_TRX_TEST, "GPS_TRX_TEST"), gpio_direction_output(GPS_TRX_TEST, 1); " system call function, because I want to use it in first uboot, so I must configure it by register or Assembly language (for example: use it start.s), how can I configure the gpio1_20?

could you give me a example ? tks!

0 Kudos
2 Replies

457 Views
shalanyang
Contributor II

why I canot read  0x33F8_0000 memory? for example:

@nutshell:/ # ./var/memtool -r 0x33F80000 0x0
[ 28.124924] Unhandled fault: synchronous external abort (0x92000210) at 0x0000ffff8d7c8000
Bus error

[ 154.501982] Unhandled fault: synchronous external abort (0x92000210) at 0x0000ffffa8133000
Reading 0x1 count starting at address 0x33F80000

Bus error
135|@nutshell:/ # ./var/memtool_imx -32 0x33FC1340 1
E
[ 172.989935] Unhandled fault: synchronous external abort (0x92000210) at 0x0000ffff9c840340
Reading 0x1 count starting at address 0x33FC1340

Bus error
135|@nutshell:/ #

0 Kudos

457 Views
shalanyang
Contributor II

Hello,

         anyonecan help me to configure GPIO1_20  SC_P_FLEXCAN2_TX by register?(IMX8QXP )

0 Kudos