This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

AM623: UART mode config while set baudrate

Part Number: AM623

Tool/software:

Hi TI expert,

I noticed on the AM62x TRM that, before set baudrate for UART, MDR1.MODE_SELECT should be set to 0x7(Chap 12.2.4.5.5.1). 

However, I didn't find this step in the corresponding part of the code(omap_8250_set_termios), please tell me if this operation is moved to other part or just don't do it before baudrate config, thanks!

  • Hello Yaobin,

    I noticed on the AM62x TRM that, before set baudrate for UART, MDR1.MODE_SELECT should be set to 0x7(Chap 12.2.4.5.5.1). 

    Allow me sometime to cross-check this information from the TRM.

    Regards,

    Vaibhav

  • Hello Yaobin,

    Thank you very much for your patience.

    From MCU PLUS SDK point of view, I am seeing that the UART_MDR1 is already having 0x7 value and then we move onto the next steps that is switching to the Configuration Mode B and so forth.

    From Linux, point of view, please allow us sometime to comment on the same.

    Regards,

    Vaibhav

  • Hi Yaobin,

    please tell me if this operation is moved to other part or just don't do it before baudrate config,

    This sequence is implemented in function omap8250_restore_regs() which is called in omap_8250_set_termios(), with a slight difference that the first step "Disable UART mode" is not skipped, rather set 16x or 13x sampling mode in MDR1 register at the end of the sequence.