diff options
author | Dirk Behme <dirk.behme_at_gmail.com> | 2006-12-06 20:14:02 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2007-03-02 04:47:09 -0500 |
commit | ef772f2ee31e0993dca2d59d9ee27682d39902fa (patch) | |
tree | 3ed2b675188fdf375d9ec2cd318932b1bfc38290 /arch/arm/mach-omap1/clock.c | |
parent | e6687290ae9ba935c1435e2ae54cf2f92e1f5f3b (diff) |
ARM: OMAP: Fix CONFIG_DEBUG_LL
Fix broken CONFIG_DEBUG_LL. In case of low level debugging
reconfigure some clocks early.
See
http://source.mvista.com/git/gitweb.cgi?p=linux-omap-2.6.git;a=commitdiff;h=3bfb289ccc6c4624fd5ff0381546935e105f4093
too.
Signed-off-by: Dirk Behme <dirk.behme_at_gmail.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap1/clock.c')
-rw-r--r-- | arch/arm/mach-omap1/clock.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm/mach-omap1/clock.c b/arch/arm/mach-omap1/clock.c index 8aee42c3f5bf..b67ba34c5636 100644 --- a/arch/arm/mach-omap1/clock.c +++ b/arch/arm/mach-omap1/clock.c | |||
@@ -649,6 +649,13 @@ int __init omap1_clk_init(void) | |||
649 | int crystal_type = 0; /* Default 12 MHz */ | 649 | int crystal_type = 0; /* Default 12 MHz */ |
650 | u32 reg; | 650 | u32 reg; |
651 | 651 | ||
652 | #ifdef CONFIG_DEBUG_LL | ||
653 | /* Resets some clocks that may be left on from bootloader, | ||
654 | * but leaves serial clocks on. | ||
655 | */ | ||
656 | omap_writel(0x3 << 29, MOD_CONF_CTRL_0); | ||
657 | #endif | ||
658 | |||
652 | /* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */ | 659 | /* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */ |
653 | reg = omap_readw(SOFT_REQ_REG) & (1 << 4); | 660 | reg = omap_readw(SOFT_REQ_REG) & (1 << 4); |
654 | omap_writew(reg, SOFT_REQ_REG); | 661 | omap_writew(reg, SOFT_REQ_REG); |