Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 281903
b: refs/heads/master
c: 3221289
h: refs/heads/master
i:
  281901: f221d8f
  281899: edf0dd3
  281895: f027439
  281887: 6b1f98a
v: v3
  • Loading branch information
Govindraj.R authored and Kevin Hilman committed Dec 15, 2011
1 parent 2d6793b commit 5c34195
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c538d20c7f437e56c5301357c492230d1d6d1b80
refs/heads/master: 32212897eeb8c2b2b3c74dbd44d842963084d808
14 changes: 0 additions & 14 deletions trunk/arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,6 @@ struct omap_uart_state {
static LIST_HEAD(uart_list);
static u8 num_uarts;

/*
* Internal UARTs need to be initialized for the 8250 autoconfig to work
* properly. Note that the TX watermark initialization may not be needed
* once the 8250.c watermark handling code is merged.
*/

static inline void __init omap_uart_reset(struct omap_uart_state *uart)
{
serial_write_reg(uart, UART_OMAP_MDR1, UART_OMAP_MDR1_DISABLE);
serial_write_reg(uart, UART_OMAP_SCR, 0x08);
serial_write_reg(uart, UART_OMAP_MDR1, UART_OMAP_MDR1_16X_MODE);
}

#if defined(CONFIG_PM) && defined(CONFIG_ARCH_OMAP3)

/*
Expand Down Expand Up @@ -521,7 +508,6 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)

omap_device_enable(uart->pdev);
omap_uart_idle_init(uart);
omap_uart_reset(uart);
omap_hwmod_enable_wakeup(uart->oh);
omap_device_idle(uart->pdev);

Expand Down
2 changes: 2 additions & 0 deletions trunk/arch/arm/plat-omap/include/plat/omap-serial.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@

#define OMAP_MODE13X_SPEED 230400

#define OMAP_UART_SCR_TX_EMPTY 0x08

/* WER = 0x7F
* Enable module level wakeup in WER reg
*/
Expand Down
1 change: 1 addition & 0 deletions trunk/drivers/tty/serial/omap-serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -770,6 +770,7 @@ serial_omap_set_termios(struct uart_port *port, struct ktermios *termios,
serial_out(up, UART_IER, up->ier);
serial_out(up, UART_LCR, cval); /* reset DLAB */
up->lcr = cval;
up->scr = OMAP_UART_SCR_TX_EMPTY;

/* FIFOs and DMA Settings */

Expand Down

0 comments on commit 5c34195

Please sign in to comment.