aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorPaul Walmsley <paul@pwsan.com>2009-12-08 18:33:10 -0500
committerpaul <paul@twilight.(none)>2009-12-11 19:00:40 -0500
commit33903eb55ae2a7f7cd980da619ae63d93c6530f3 (patch)
treefc6bdba405aa6952ce6466e91e6d1afa1e256fe0 /arch/arm
parent42d75e7df324268c99153d9cc7d48e780b54d059 (diff)
OMAP clockdomain/powerdomain: remove CONFIG_OMAP_DEBUG_{CLOCK,POWER}DOMAIN
Avoid cluttering the Kconfig space with debug options that are rarely used. These can now be enabled and disabled by patching the "#undef DEBUG" in the source files with "#define DEBUG", conforming to the practice for the rest of the linux-omap code. Also, while we're here, some lines in plat-omap/Kconfig use sets of leading spaces when those lines should start with tabs. Convert most of them to use tabs. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-omap2/clockdomain.c6
-rw-r--r--arch/arm/mach-omap2/powerdomain.c4
-rw-r--r--arch/arm/plat-omap/Kconfig62
3 files changed, 23 insertions, 49 deletions
diff --git a/arch/arm/mach-omap2/clockdomain.c b/arch/arm/mach-omap2/clockdomain.c
index fcd82320a6a3..1a45ed1e8ba1 100644
--- a/arch/arm/mach-omap2/clockdomain.c
+++ b/arch/arm/mach-omap2/clockdomain.c
@@ -2,7 +2,7 @@
2 * OMAP2/3 clockdomain framework functions 2 * OMAP2/3 clockdomain framework functions
3 * 3 *
4 * Copyright (C) 2008 Texas Instruments, Inc. 4 * Copyright (C) 2008 Texas Instruments, Inc.
5 * Copyright (C) 2008 Nokia Corporation 5 * Copyright (C) 2008-2009 Nokia Corporation
6 * 6 *
7 * Written by Paul Walmsley and Jouni Högander 7 * Written by Paul Walmsley and Jouni Högander
8 * 8 *
@@ -10,9 +10,7 @@
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 */ 12 */
13#ifdef CONFIG_OMAP_DEBUG_CLOCKDOMAIN 13#undef DEBUG
14# define DEBUG
15#endif
16 14
17#include <linux/module.h> 15#include <linux/module.h>
18#include <linux/kernel.h> 16#include <linux/kernel.h>
diff --git a/arch/arm/mach-omap2/powerdomain.c b/arch/arm/mach-omap2/powerdomain.c
index b6990e377783..9708f12bb8a0 100644
--- a/arch/arm/mach-omap2/powerdomain.c
+++ b/arch/arm/mach-omap2/powerdomain.c
@@ -10,9 +10,7 @@
10 * it under the terms of the GNU General Public License version 2 as 10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation. 11 * published by the Free Software Foundation.
12 */ 12 */
13#ifdef CONFIG_OMAP_DEBUG_POWERDOMAIN 13#undef DEBUG
14# define DEBUG
15#endif
16 14
17#include <linux/kernel.h> 15#include <linux/kernel.h>
18#include <linux/module.h> 16#include <linux/module.h>
diff --git a/arch/arm/plat-omap/Kconfig b/arch/arm/plat-omap/Kconfig
index f348ddfb0492..353a7b31c62b 100644
--- a/arch/arm/plat-omap/Kconfig
+++ b/arch/arm/plat-omap/Kconfig
@@ -42,28 +42,6 @@ config OMAP_DEBUG_LEDS
42 depends on OMAP_DEBUG_DEVICES 42 depends on OMAP_DEBUG_DEVICES
43 default y if LEDS || LEDS_OMAP_DEBUG 43 default y if LEDS || LEDS_OMAP_DEBUG
44 44
45config OMAP_DEBUG_POWERDOMAIN
46 bool "Emit debug messages from powerdomain layer"
47 depends on ARCH_OMAP2 || ARCH_OMAP3
48 help
49 Say Y here if you want to compile in powerdomain layer
50 debugging messages for OMAP2/3. These messages can
51 provide more detail as to why some powerdomain calls
52 may be failing, and will also emit a descriptive message
53 for every powerdomain register write. However, the
54 extra detail costs some memory.
55
56config OMAP_DEBUG_CLOCKDOMAIN
57 bool "Emit debug messages from clockdomain layer"
58 depends on ARCH_OMAP2 || ARCH_OMAP3
59 help
60 Say Y here if you want to compile in clockdomain layer
61 debugging messages for OMAP2/3. These messages can
62 provide more detail as to why some clockdomain calls
63 may be failing, and will also emit a descriptive message
64 for every clockdomain register write. However, the
65 extra detail costs some memory.
66
67config OMAP_RESET_CLOCKS 45config OMAP_RESET_CLOCKS
68 bool "Reset unused clocks during boot" 46 bool "Reset unused clocks during boot"
69 depends on ARCH_OMAP 47 depends on ARCH_OMAP
@@ -78,28 +56,28 @@ config OMAP_RESET_CLOCKS
78 56
79config OMAP_MUX 57config OMAP_MUX
80 bool "OMAP multiplexing support" 58 bool "OMAP multiplexing support"
81 depends on ARCH_OMAP 59 depends on ARCH_OMAP
82 default y 60 default y
83 help 61 help
84 Pin multiplexing support for OMAP boards. If your bootloader 62 Pin multiplexing support for OMAP boards. If your bootloader
85 sets the multiplexing correctly, say N. Otherwise, or if unsure, 63 sets the multiplexing correctly, say N. Otherwise, or if unsure,
86 say Y. 64 say Y.
87 65
88config OMAP_MUX_DEBUG 66config OMAP_MUX_DEBUG
89 bool "Multiplexing debug output" 67 bool "Multiplexing debug output"
90 depends on OMAP_MUX 68 depends on OMAP_MUX
91 help 69 help
92 Makes the multiplexing functions print out a lot of debug info. 70 Makes the multiplexing functions print out a lot of debug info.
93 This is useful if you want to find out the correct values of the 71 This is useful if you want to find out the correct values of the
94 multiplexing registers. 72 multiplexing registers.
95 73
96config OMAP_MUX_WARNINGS 74config OMAP_MUX_WARNINGS
97 bool "Warn about pins the bootloader didn't set up" 75 bool "Warn about pins the bootloader didn't set up"
98 depends on OMAP_MUX 76 depends on OMAP_MUX
99 default y 77 default y
100 help 78 help
101 Choose Y here to warn whenever driver initialization logic needs 79 Choose Y here to warn whenever driver initialization logic needs
102 to change the pin multiplexing setup. When there are no warnings 80 to change the pin multiplexing setup. When there are no warnings
103 printed, it's safe to deselect OMAP_MUX for your product. 81 printed, it's safe to deselect OMAP_MUX for your product.
104 82
105config OMAP_MCBSP 83config OMAP_MCBSP
@@ -125,7 +103,7 @@ config OMAP_IOMMU_DEBUG
125 tristate 103 tristate
126 104
127choice 105choice
128 prompt "System timer" 106 prompt "System timer"
129 default OMAP_MPU_TIMER 107 default OMAP_MPU_TIMER
130 108
131config OMAP_MPU_TIMER 109config OMAP_MPU_TIMER
@@ -148,11 +126,11 @@ config OMAP_32K_TIMER
148endchoice 126endchoice
149 127
150config OMAP_32K_TIMER_HZ 128config OMAP_32K_TIMER_HZ
151 int "Kernel internal timer frequency for 32KHz timer" 129 int "Kernel internal timer frequency for 32KHz timer"
152 range 32 1024 130 range 32 1024
153 depends on OMAP_32K_TIMER 131 depends on OMAP_32K_TIMER
154 default "128" 132 default "128"
155 help 133 help
156 Kernel internal timer frequency should be a divisor of 32768, 134 Kernel internal timer frequency should be a divisor of 32768,
157 such as 64 or 128. 135 such as 64 or 128.
158 136