Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

omap-l138 bad on /dev/ttyS1. software is omap-l138 mcsdk with linux-3.3-psp03.22.00.06.sdk

$
0
0

Hi TI export,

Issue:  Bad on /dev/ttyS1 read/write.

Hardware: omap-l138

Software: omap-l138 mcsdk_1_01_00_02 and  linux-3.3-psp03.22.00.06.sdk

Justification: All the harware  is good,  the ttyS1 can work  on linux-davinci-3-18-rc5.

linux kernel confiuration:

CONFIG_MACH_DAVINCI_DA850_EVM=y

CONFIG_ARCH_DAVINCI_DA8XX=y

CONFIG_SERIAL_8250=y
CONFIG_SERIAL_8250_CONSOLE=y
CONFIG_SERIAL_8250_NR_UARTS=3
CONFIG_SERIAL_8250_RUNTIME_UARTS=3
CONFIG_SERIAL_CORE=y
CONFIG_SERIAL_CORE_CONSOLE=y

I did not use MCASP.

Test Procesure:

I can login the console through ttyS2.

but  send and recive  on /dev/ttyS1 is bad.  test by echo "1" >/dev/ttyS1 and cat /dev/ttyS1

for the mach-davinch code,
1)First, I setup pinmuxing for UART1. Add these lines at in board-da850evm.c:

    static const short da850_evm_uart_pins[] = {
            DA850_UART1_RXD, DA850_UART1_TXD,
            -1
    };

2)and in the da850_evm_init() function add

    ret = davinci_cfg_reg_list(da850_evm_uart_pins);
    if (ret)
            pr_warning("da850_evm_init: uart mux setup failed: %d\n", ret);

3)in the da850_evm_init()  function, I  Comment out this code to enable UART1

    /*        __raw_write(0, IO_ADDRESS(DA8XX_UART1_BASE) + 0x30); */

Thanks,

James


Viewing all articles
Browse latest Browse all 17527

Trending Articles