AnsweredAssumed Answered

U-Boot: not work output on UART2

Question asked by Kirill Brilliantov on Apr 8, 2013
Latest reply on May 6, 2013 by Kirill Brilliantov
Branched to a new discussion

Hello!

We are use UART2 on our board, follow my configuration for U-Boot.

 

#define CONFIG_MXC_UART
#define CONFIG_UART_BASE_ADDR   UART2_BASE_ADDR

#define CONFIG_BAUDRATE            115200
#define CONFIG_SYS_BAUDRATE_TABLE  {9600, 19200, 38400, 57600, 115200}

 

#define CONFIG_EXTRA_ENV_SETTINGS                                   \
            "bootargs_base=setenv bootargs console=ttymxc1,115200\0"\
            "bootargs_nand=setenv bootargs ${bootargs} ip=off " \
                    "root=/dev/mtdblock4 rootfstype=jffs2\0" \
            "bootcmd_nand=run bootargs_base bootargs_nand; " \
                    "nboot 0x80700000 0 0x1080000; bootm\0" \
            "bootargs_mmc=setenv bootargs ${bootargs} ip=off "  \
                    "root=/dev/mmcblk0p1 rootwait rw\0"         \
            "bootcmd_mmc=run bootargs_base bootargs_mmc; "      \
                    "mmc dev 0; "                               \
                    "mmc read ${loadaddr} 0x800 0x1800; bootm\0"\
            "bootcmd=run bootcmd_mmc\0"

 

static void setup_uart(void)

{

        u32 cfg = (PAD_CTL_HYS_ENABLE | PAD_CTL_PKE_ENABLE |

                        PAD_CTL_PUE_PULL | PAD_CTL_100K_PU |

                        PAD_CTL_ODE_OPENDRAIN_NONE | PAD_CTL_DRV_HIGH);

        /* UART2 RXD */

        mxc_request_iomux(MX53_PIN_EIM_D27, IOMUX_CONFIG_ALT2);

        mxc_iomux_set_pad(MX53_PIN_EIM_D27, cfg);

        mxc_iomux_set_input(MUX_IN_UART2_IPP_UART_RXD_MUX_SELECT_INPUT,

                        INPUT_CTL_PATH1);

 

        /* UART2 TXD */

        mxc_request_iomux(MX53_PIN_EIM_D26, IOMUX_CONFIG_ALT2);

        mxc_iomux_set_pad(MX53_PIN_EIM_D26, cfg);

}


Unfortunally I not get any U-Boot output if it started from NAND or SD, but I get U-Boot output and can work with it if I load it via MfgTool.

How should I configure uart for work with U-Boot?

Thank you and excuse me my bad english.

Outcomes