aha/sound
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
..
aoa [ALSA] aoa i2sbus: Stop Apple i2s DMA gracefully 2007-02-09 09:04:02 +01:00
arm [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
core [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
drivers Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa 2007-02-14 09:51:20 -08:00
i2c [ALSA] snd-ak4114: Fix two array overflows 2007-02-09 09:03:55 +01:00
isa Merge branch 'linus' of master.kernel.org:/pub/scm/linux/kernel/git/perex/alsa 2007-02-14 09:51:20 -08:00
mips IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
oss [PATCH] const file_operations fallout 2007-03-14 15:27:48 -07:00
parisc [PARISC] fix section mismatch warnings in harmony sound driver 2007-02-17 01:19:12 -05:00
pci [ALSA] hda-intel - Fix HDA buffer alignment 2007-03-16 15:02:15 +01:00
pcmcia [ALSA] Add even more 'const' to everything related to TLV 2007-02-09 09:03:19 +01:00
ppc WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
soc [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
sparc [ALSA] sparc dbri comment fix 2007-02-09 09:02:37 +01:00
synth [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
usb [ALSA] usb-audio: add PCR-A PCM support 2007-02-14 08:38:25 +01:00
ac97_bus.c [ALSA] ac97_bus power management 2007-02-09 09:03:54 +01:00
Kconfig [ALSA] ASoC: Build files 2007-02-09 09:00:19 +01:00
last.c
Makefile [ALSA] ASoC: Build files 2007-02-09 09:00:19 +01:00
sound_core.c [PATCH] mark struct file_operations const 9 2007-02-12 09:48:46 -08:00
sound_firmware.c [PATCH] struct path: convert sound 2006-12-08 08:28:49 -08:00