In IMX6 Sabre lite how to change pinmux configuration & pin usage(output mode or input mode) in uboot level

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

In IMX6 Sabre lite how to change pinmux configuration & pin usage(output mode or input mode) in uboot level

1,729 Views
sumanthg
Contributor II

In uboot i want to assign a MX6_PAD_EIM_D22__GPIO3_IO22 | ID_PAD_CTRL   as a ouput mode so it can supply 3.3v output 

How to configure this

/*

#define ID_PAD_CTRL (PAD_CTL_PKE | PAD_CTL_PUE |            \
        PAD_CTL_PUS_47K_UP  | PAD_CTL_SPEED_LOW |               \
        PAD_CTL_DSE_80ohm   | PAD_CTL_SRE_FAST  | PAD_CTL_HYS) */

unable to configure this as the output mode to supply 3.3v from this pin,

Labels (4)
0 Kudos
3 Replies

867 Views
igorpadykov
NXP Employee
NXP Employee

also may be useful to check macros in uboot/arch/arm/include/asm/arch-mx6
for example uart settings :
static iomux_v3_cfg_t const uart1_pads[] = {
    MX6_PAD_CSI0_DAT10__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
    MX6_PAD_CSI0_DAT11__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
};
http://git.freescale.com/git/cgit.cgi/imx/uboot-imx.git/tree/board/freescale/mx6sabresd/mx6sabresd.c...

~igor

0 Kudos

867 Views
sumanthg
Contributor II

hi,

can u explain how to configure GPIO MX6_PAD_EIM_D22__GPIO3_IO22 this pin as a output pin with 3.3 v as output

0 Kudos

867 Views
gary_bisson
Senior Contributor III

Hi,

You need to modify board/boundary/nitrogen6x/nitrogen6x.c to add your pin muxing to the init_pads array:

u-boot-imx6/nitrogen6x.c at boundary-v2016.03 · boundarydevices/u-boot-imx6 · GitHub 

Then you need to add that pad to the gpios_out_low/high array (depending on which level you want) so U-Boot initializes it:

u-boot-imx6/nitrogen6x.c at boundary-v2016.03 · boundarydevices/u-boot-imx6 · GitHub 

Regards,

Gary

0 Kudos