AnsweredAssumed Answered

Interface setup in U-Boot for i.Mx6Solo

Question asked by Abhishek Sharma on Jul 11, 2017
Latest reply on Jul 12, 2017 by igorpadykov

Hello,

 

We are porting U-Boot from mx6qsabreauto board to custom board which is based on i.Mx6Solo.

We are referring to i.MX BSP Porting Guide (Rev. 1, 01/2017).

Is their any document which we can refer to port interfaces in u-boot based on schematics.

 

For eg.

To port UART

Filename: board/freescale/mx6sabreauto/mx6sabreauto.c

 

static iomux_v3_cfg_t const uart4_pads[] = {
         MX6_PAD_KEY_COL0__UART4_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
         MX6_PAD_KEY_ROW0__UART4_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
 };

We modified above array to

static iomux_v3_cfg_t const uart1_pads[] = {
         MX6_PAD_SD3_DAT6__UART1_RX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
         MX6_PAD_SD3_DAT7__UART1_TX_DATA | MUX_PAD_CTRL(UART_PAD_CTRL),
};

as we are using UART1 and we have connected UART1_RX and UART1_TX to SD3_DAT6 and SD3_DAT7 respectively in schematics.

Kindly confirm if these modifications are correct and we can modify code for all interfaces in the similar fashion.

 

Moreover, how to deduce value for UART_PAD_CTRL for custom board.

 

#define UART_PAD_CTRL  (PAD_CTL_PUS_100K_UP |                   \
         PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm |                 \
         PAD_CTL_SRE_FAST  | PAD_CTL_HYS)

 

Thanks,

Abhishek

Outcomes