Hi ,
I'm stuck in getting uart up and running in DM365. It is used to WL1835MOD communication. I intend to use GPIO34 & 25 for UART. And in order to do so, i have made following modifications.
I have modified in dm365.c:
MUX_CFG(DM365, UART1_TXD, 3, 29, 3, 3, false) // GPIO 25 : UART1_TXD
MUX_CFG(DM365, UART1_RXD, 4, 14, 3, 3, false) // GPIO 34 : UART1_RXD
& in board file.
davinci_cfg_reg(DM365_UART1_TXD);
davinci_cfg_reg(DM365_UART1_RXD);
davinci_cfg_reg(DM365_UART1_CTS);
davinci_cfg_reg(DM365_UART1_RTS);
corrected the uart1 base address in serial.h:
#define DAVINCI_DM36X_UART1_BASE (IO_PHYS + 0x106000) //01d0 6000
clock i think no need to modify because uart1 clock is defined in dm365.c already:
static struct clk uart1_clk = {
.name = "uart1",
.parent = &pll1_sysclk4,
.lpsc = DAVINCI_LPSC_UART1,
};
Since UART and SPI is multiplexed, I'v commented out the SPI0_init call in board init funciton.
But still i can't get UARt running. I can probe and see TX & RX lines are high continuously. But no data on bus when i echo data in ttyS1.
Can anyone please guide me over here.
Any help would be appreciated.
Thanks
Brajesh