aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/arm/mach-omap2/serial.c')
-rw-r--r--arch/arm/mach-omap2/serial.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 9dc077e2d8af..c8740ba4fba5 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -40,9 +40,9 @@
40#include <plat/omap_hwmod.h> 40#include <plat/omap_hwmod.h>
41#include <plat/omap_device.h> 41#include <plat/omap_device.h>
42 42
43#include "prm.h" 43#include "prm2xxx_3xxx.h"
44#include "pm.h" 44#include "pm.h"
45#include "cm.h" 45#include "cm2xxx_3xxx.h"
46#include "prm-regbits-34xx.h" 46#include "prm-regbits-34xx.h"
47#include "control.h" 47#include "control.h"
48 48
@@ -106,21 +106,16 @@ struct omap_uart_state {
106static LIST_HEAD(uart_list); 106static LIST_HEAD(uart_list);
107static u8 num_uarts; 107static u8 num_uarts;
108 108
109/*
110 * Since these idle/enable hooks are used in the idle path itself
111 * which has interrupts disabled, use the non-locking versions of
112 * the hwmod enable/disable functions.
113 */
114static int uart_idle_hwmod(struct omap_device *od) 109static int uart_idle_hwmod(struct omap_device *od)
115{ 110{
116 _omap_hwmod_idle(od->hwmods[0]); 111 omap_hwmod_idle(od->hwmods[0]);
117 112
118 return 0; 113 return 0;
119} 114}
120 115
121static int uart_enable_hwmod(struct omap_device *od) 116static int uart_enable_hwmod(struct omap_device *od)
122{ 117{
123 _omap_hwmod_enable(od->hwmods[0]); 118 omap_hwmod_enable(od->hwmods[0]);
124 119
125 return 0; 120 return 0;
126} 121}
@@ -495,6 +490,7 @@ static void omap_uart_idle_init(struct omap_uart_state *uart)
495 u32 wk_mask = 0; 490 u32 wk_mask = 0;
496 u32 padconf = 0; 491 u32 padconf = 0;
497 492
493 /* XXX These PRM accesses do not belong here */
498 uart->wk_en = OMAP34XX_PRM_REGADDR(mod, PM_WKEN1); 494 uart->wk_en = OMAP34XX_PRM_REGADDR(mod, PM_WKEN1);
499 uart->wk_st = OMAP34XX_PRM_REGADDR(mod, PM_WKST1); 495 uart->wk_st = OMAP34XX_PRM_REGADDR(mod, PM_WKST1);
500 switch (uart->num) { 496 switch (uart->num) {