mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 13:11:40 +00:00
7053acbd78
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> |
||
---|---|---|
.. | ||
act200l-sir.c | ||
act200l.c | ||
actisys-sir.c | ||
actisys.c | ||
ali-ircc.c | ||
ali-ircc.h | ||
au1k_ir.c | ||
au1000_ircc.h | ||
donauboe.c | ||
donauboe.h | ||
ep7211_ir.c | ||
esi-sir.c | ||
esi.c | ||
girbil-sir.c | ||
girbil.c | ||
irda-usb.c | ||
irda-usb.h | ||
irport.c | ||
irport.h | ||
irtty-sir.c | ||
irtty-sir.h | ||
Kconfig | ||
litelink-sir.c | ||
litelink.c | ||
ma600-sir.c | ||
ma600.c | ||
Makefile | ||
mcp2120-sir.c | ||
mcp2120.c | ||
mcs7780.c | ||
mcs7780.h | ||
nsc-ircc.c | ||
nsc-ircc.h | ||
old_belkin-sir.c | ||
old_belkin.c | ||
pxaficp_ir.c | ||
sa1100_ir.c | ||
sir_dev.c | ||
sir_dongle.c | ||
sir-dev.h | ||
smsc-ircc2.c | ||
smsc-ircc2.h | ||
smsc-sio.h | ||
stir4200.c | ||
tekram-sir.c | ||
tekram.c | ||
toim3232-sir.c | ||
via-ircc.c | ||
via-ircc.h | ||
vlsi_ir.c | ||
vlsi_ir.h | ||
w83977af_ir.c | ||
w83977af_ir.h | ||
w83977af.h |