linux/drivers/net/irda
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
..
act200l-sir.c
act200l.c
actisys-sir.c
actisys.c
ali-ircc.c drivers/net: eliminate irq handler impossible checks, needless casts 2006-10-06 14:56:04 -04:00
ali-ircc.h
au1k_ir.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
au1000_ircc.h
donauboe.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
donauboe.h
ep7211_ir.c [IRDA]: sti/cli removal from EP7211 IrDA driver 2006-03-20 19:00:04 -08:00
esi-sir.c
esi.c
girbil-sir.c
girbil.c
irda-usb.c [IrDA]: Delay needed when uploading firmware chunks 2007-03-20 00:09:40 -07:00
irda-usb.h [IrDA]: irda-usb TX path optimization (was Re: IrDA spams logfiles - since 2.6.19) 2007-01-23 20:25:49 -08:00
irport.c [PATCH] getting rid of all casts of k[cmz]alloc() calls 2006-12-13 09:05:58 -08:00
irport.h drivers/net: eliminate irq handler impossible checks, needless casts 2006-10-06 14:56:04 -04:00
irtty-sir.c [PATCH] tty: switch to ktermios 2006-12-08 08:28:57 -08:00
irtty-sir.h
Kconfig [IrDA]: irda-usb needs firmware loader 2006-09-28 18:02:47 -07:00
litelink-sir.c
litelink.c
ma600-sir.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
ma600.c
Makefile [IRDA]: Initial support for MCS7780 based dongles 2006-06-17 21:26:18 -07:00
mcp2120-sir.c
mcp2120.c
mcs7780.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
mcs7780.h IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
nsc-ircc.c drivers/net: eliminate irq handler impossible checks, needless casts 2006-10-06 14:56:04 -04:00
nsc-ircc.h [IRDA]: nsc-ircc: PM update 2006-03-20 18:59:05 -08:00
old_belkin-sir.c
old_belkin.c
pxaficp_ir.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
sa1100_ir.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
sir_dev.c WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
sir_dongle.c [IRDA] sem2mutex: drivers/net/irda 2006-03-20 22:32:53 -08:00
sir-dev.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
smsc-ircc2.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
smsc-ircc2.h
smsc-sio.h
stir4200.c [PATCH] email change for shemminger@osdl.org 2007-01-23 14:18:49 -08:00
tekram-sir.c
tekram.c
toim3232-sir.c [IRDA]: remove MODULE_PARM() 2006-03-20 22:33:41 -08:00
via-ircc.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
via-ircc.h
vlsi_ir.c [PATCH] mark struct file_operations const 5 2007-02-12 09:48:45 -08:00
vlsi_ir.h [IRDA] vlsi_ir.{h,c}: remove kernel 2.4 code 2007-01-23 21:16:40 -08:00
w83977af_ir.c drivers/net: eliminate irq handler impossible checks, needless casts 2006-10-06 14:56:04 -04:00
w83977af_ir.h
w83977af.h