aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/omap-serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/tty/serial/omap-serial.c')
-rw-r--r--drivers/tty/serial/omap-serial.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c
index 1baf24b96469..c5b545f19a16 100644
--- a/drivers/tty/serial/omap-serial.c
+++ b/drivers/tty/serial/omap-serial.c
@@ -43,6 +43,8 @@
43#include <plat/dmtimer.h> 43#include <plat/dmtimer.h>
44#include <plat/omap-serial.h> 44#include <plat/omap-serial.h>
45 45
46#define DEFAULT_CLK_SPEED 48000000 /* 48Mhz*/
47
46static struct uart_omap_port *ui[OMAP_MAX_HSUART_PORTS]; 48static struct uart_omap_port *ui[OMAP_MAX_HSUART_PORTS];
47 49
48/* Forward declaration of functions */ 50/* Forward declaration of functions */
@@ -1387,6 +1389,11 @@ static int serial_omap_probe(struct platform_device *pdev)
1387 1389
1388 up->port.flags = omap_up_info->flags; 1390 up->port.flags = omap_up_info->flags;
1389 up->port.uartclk = omap_up_info->uartclk; 1391 up->port.uartclk = omap_up_info->uartclk;
1392 if (!up->port.uartclk) {
1393 up->port.uartclk = DEFAULT_CLK_SPEED;
1394 dev_warn(&pdev->dev, "No clock speed specified: using default:"
1395 "%d\n", DEFAULT_CLK_SPEED);
1396 }
1390 up->uart_dma.uart_base = mem->start; 1397 up->uart_dma.uart_base = mem->start;
1391 up->errata = omap_up_info->errata; 1398 up->errata = omap_up_info->errata;
1392 1399