linux-kernel-test/drivers/i2c/busses
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
..
i2c-acorn.c [ARM] Acorn: move the i2c bus driver into drivers/i2c 2007-03-04 20:40:50 +00:00
i2c-ali15x3.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-ali1535.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-ali1563.c i2c: Add IDs to adapters 2007-02-13 22:09:01 +01:00
i2c-amd756-s4882.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
i2c-amd756.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-amd8111.c i2c-amd8111: Missed cleanup 2007-03-22 19:49:00 +01:00
i2c-at91.c i2c: New Atmel AT91 bus driver 2006-12-10 21:21:30 +01:00
i2c-au1550.c i2c: Constify i2c_algorithm declarations, part 2 2006-09-26 15:38:52 -07:00
i2c-au1550.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
i2c-elektor.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-hydra.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-i801.c i2c-i801: Restore the device state before leaving 2007-03-22 19:49:01 +01:00
i2c-i810.c i2c: Add IDs to adapters 2007-02-13 22:09:01 +01:00
i2c-ibm_iic.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
i2c-ibm_iic.h fix file specification in comments 2006-10-03 23:01:26 +02:00
i2c-iop3xx.c Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2007-02-19 13:18:39 -08:00
i2c-iop3xx.h [PATCH] i2c-iop3xx: Avoid addressing self 2006-07-12 15:43:06 -07:00
i2c-isa.c i2c: completion header cleanups 2007-02-13 22:09:00 +01:00
i2c-ixp4xx.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-ixp2000.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-mpc.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
i2c-mv64xxx.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
i2c-nforce2.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
i2c-ocores.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
i2c-omap.c i2c: Fix OMAP clock prescaler to match the comment 2006-12-10 21:21:34 +01:00
i2c-parport-light.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-parport.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-parport.h i2c-parport: Add support for One For All remote JP1 interface 2007-02-13 22:09:02 +01:00
i2c-pasemi.c Minor bug fixes to i2c-pasemi 2007-04-17 16:36:28 -07:00
i2c-pca-isa.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-piix4.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-pnx.c i2c-pnx: Fix interrupt handler, get rid of EARLY config option 2007-01-04 13:07:03 +01:00
i2c-powermac.c i2c: completion header cleanups 2007-02-13 22:09:00 +01:00
i2c-prosavage.c i2c: Discard the i2c algo del_bus wrappers 2006-12-10 21:21:33 +01:00
i2c-pxa.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
i2c-rpx.c IRQ: Maintain regs pointer globally rather than passing to IRQ handlers 2006-10-05 15:10:12 +01:00
i2c-s3c2410.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
i2c-savage4.c i2c: Add IDs to adapters 2007-02-13 22:09:01 +01:00
i2c-sibyte.c [PATCH] i2c-sibyte: Fix modular build breakage 2006-09-29 09:34:17 -07:00
i2c-sis96x.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-sis630.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-sis5595.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-stub.c i2c: Constify i2c_algorithm declarations, part 2 2006-09-26 15:38:52 -07:00
i2c-versatile.c i2c: New ARM Versatile/Realview bus driver 2006-12-10 21:21:32 +01:00
i2c-via.c Replace remaining references to "driverfs" with "sysfs". 2007-02-17 19:13:42 +01:00
i2c-viapro.c i2c-viapro: Add support for the VIA CX700 south bridge 2007-02-13 22:09:02 +01:00
i2c-voodoo3.c i2c: Add IDs to adapters 2007-02-13 22:09:01 +01:00
Kconfig i2c-pasemi: Depend on PPC_PASEMI again 2007-04-17 16:36:28 -07:00
Makefile [ARM] Acorn: move the i2c bus driver into drivers/i2c 2007-03-04 20:40:50 +00:00
scx200_acb.c i2c: Declare more i2c_adapter parent devices 2007-02-13 22:09:03 +01:00
scx200_i2c.c i2c: Add IDs to adapters 2007-02-13 22:09:01 +01:00