linux/arch/arm/mach-pxa
Eric Miao 7053acbd78 [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX
This patch removes the unnecessary bit number from CKENnn_XXXX
definitions for PXA, so that

	CKEN0_PWM0 --> CKEN_PWM0
	CKEN1_PWM1 --> CKEN_PWM1
	...
	CKEN24_CAMERA --> CKEN_CAMERA

The reasons for the change of these defitions are:

1. they do not scale - they are currently valid for pxa2xx, but
definitely not valid for pxa3xx, e.g., pxa3xx has bit 3 for camera
instead of bit 24

2. they are unnecessary - the peripheral name within the definition
has already announced its usage, we don't need those bit numbers
to know which peripheral we are going to enable/disable clock for

3. they are inconvenient - think about this: a driver programmer
for pxa has to remember which bit in the CKEN register to turn
on/off

Another change in the patch is to make the definitions equal to its
clock bit index, so that

   #define CKEN_CAMERA  (24)

instead of

   #define CKEN_CAMERA  (1 << 24)

this change, however, will add a run-time bit shift operation in
pxa_set_cken(), but the benefit of this change is that it scales
when bit index exceeds 32, e.g., pxa3xx has two registers CKENA
and CKENB, totally 64 bit for this, suppose CAMERA clock enabling
bit is CKENB:10, one can simply define CKEN_CAMERA to be (32 + 10)
and so that pxa_set_cken() need minimum change to adapt to that.

Signed-off-by: eric miao <eric.y.miao@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2007-04-21 23:14:01 +01:00
..
akita-ioexp.c WorkQueue: Fix up arch-specific work items where possible 2006-12-05 19:36:26 +00:00
clock.c [ARM] Convert SA1111 to use clock architecture 2006-03-21 22:05:53 +00:00
corgi_lcd.c fix file specification in comments 2006-10-03 23:01:26 +02:00
corgi_pm.c [ARM] Yet more asm/apm-emulation.h stuff 2007-03-02 11:58:57 +00:00
corgi_ssp.c [ARM] 3760/1: This patch adds timeouts while working with SSP registers. Such timeouts were en 2006-08-27 12:54:56 +01:00
corgi.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
dma.c Initial blind fixup for arm for irq changes 2006-10-06 10:59:54 -07:00
generic.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
generic.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
idp.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
irq.c [ARM] 4236/2: basic {enable,disable}_irq_wake() support for PXA 2007-04-21 20:36:44 +01:00
Kconfig kconfig: Standardize "depends" -> "depends on" in Kconfig files 2006-12-12 20:04:19 +01:00
leds-idp.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-lubbock.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-mainstone.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
leds-trizeps4.c Remove all inclusions of <linux/config.h> 2006-10-04 03:38:54 -04:00
leds.c [ARM] 3666/1: TRIZEPS4 [1/5] core 2006-06-29 16:25:37 +01:00
leds.h fix file specification in comments 2006-10-03 23:01:26 +02:00
lpd270.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
lubbock.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
mainstone.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
Makefile [ARM] 3666/1: TRIZEPS4 [1/5] core 2006-06-29 16:25:37 +01:00
Makefile.boot Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pm.c [ARM] 3881/4: xscale: clean up cp0/cp1 handling 2006-12-03 17:52:22 +00:00
poodle.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
pxa25x.c Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
pxa27x.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
sharpsl_pm.c [ARM] Fix more apm-emulation.h 2007-02-26 21:04:29 +00:00
sharpsl.h [ARM] 3235/1: SharpSL PM: Fix a gcc4 build error 2006-01-07 11:12:26 +00:00
sleep.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
spitz_pm.c [ARM] Yet more asm/apm-emulation.h stuff 2007-03-02 11:58:57 +00:00
spitz.c IRQ: Use the new typedef for interrupt handler function pointers 2006-10-09 12:19:47 +01:00
ssp.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
standby.S Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
time.c [PATCH] clocksource: fixup is_continous changes on ARM 2007-02-16 08:13:57 -08:00
tosa.c [ARM] 4249/1: Fix tosa compile failure 2007-03-08 13:33:58 +00:00
trizeps4.c [ARM] Remove empty fixup function 2006-12-13 14:48:36 +00:00