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.

How to enable OMAP-L138 UART0

Other Parts Discussed in Thread: DA8XX, OMAP-L138

Hello,

I'm using Spartan-6/OMAP Co-Processing Development Kit 

AVNET give us uImage which customized by RidgeRun,

As I know, In this image, UART0 is disabled for SPI0

but, we changed uImage with customized by Arago project.

In this image, there all UART0/1/2 are enabled

and they appear in /dev list

For UART0 loopback test,

I wired UART0 RX and TX and write some messages to /dev/ttyS0 and forward it to /dev/ttyS2

but nothing printed at console

for enable UART0, I fixed

/ti-dvsdk_omapl138-evm_4_..../psp/linux-2.6.../arch/arm/mach-davinci/board-da850-evm.c

in line 1229, I attached below code

ret = da8xx_pinmux_setup(da850_uart0_pins);

in line 1290, I commented this line like this, because it will shut down uart 0 and 1

//__raw_writel(0, IO_ADDRESS(DA8XX_UART0_BASE) + 0x30);

and rebuild image and tested but same as before

Is there anyone know about HOW TO ENABLE UART0 in OMAP-L138

please, help

  • HI,

    I also need to use UART0 on our custom board. We are already using UART1 and UART2 and works fine. I did same steps in board-da850-evm.c as outlined by Hanseung Choi. 

    But after booting when I verified pinmux settings via phymem32 utility it says pinmux is still configured for Ethernet functions. Wondering why function da8xx_pinmux_setup(da850_uart0_pins); could not change pinmux registers?

    Appreciate your help on this.

    Regards, Dipen Patel

  • The OMAP-L138 is not my processor. From the datasheet, I think the UART0 controller and the EMAC controller in MII mode share pins. If your EMAC controller is using RMII mode. you shouldn't have a conflict. I think the EMAC pinmux code will overwrite the actions of the UART0 pinmux code.