2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-21 19:53:59 +08:00
linux-next/drivers/mmc
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
..
at91_mci.c Merge branch 'for-linus' of master.kernel.org:/home/rmk/linux-2.6-arm 2007-02-19 13:18:39 -08:00
au1xmmc.c mmc: Allow host drivers to specify max block count 2007-02-04 20:54:10 +01:00
au1xmmc.h Au1[12]00 mmc driver. Only tested on the Au1200 at this point though 2005-10-29 19:32:26 +01:00
imxmmc.c [ARM] 4256/1: i.MX/MX1 SDHC fix/workaround of SD card recognition problems 2007-03-12 16:49:37 +00:00
imxmmc.h [ARM] 3457/1: i.MX: SD/MMC support for i.MX/MX1 2006-04-02 19:27:07 +01:00
Kconfig [PATCH] TIFM should depend on PCI - TIFM_CORE leads to use of pci primitives 2007-02-09 08:28:48 -08:00
Makefile [ARM] 3963/1: AT91: Update configuration files 2006-12-01 16:56:43 +00:00
mmc_block.c [PATCH] remove many unneeded #includes of sched.h 2007-02-14 08:09:54 -08:00
mmc_queue.c mmc: Allow host drivers to specify max block count 2007-02-04 20:54:10 +01:00
mmc_queue.h mmc: remove kernel_thread() 2006-12-01 17:56:46 +01:00
mmc_sysfs.c mmc: let host be parent of cards 2007-02-04 20:54:06 +01:00
mmc.c mmc: require explicit support for high-speed 2007-03-06 13:26:55 +01:00
mmc.h WorkStruct: make allyesconfig 2006-11-22 14:57:56 +00:00
mmci.c mmc: Allow host drivers to specify max block count 2007-02-04 20:54:10 +01:00
mmci.h [MMC] mmci: kunmap_atomic() unmaps virtual address, not page 2006-01-05 10:31:23 +00:00
omap.c mmc: Allow host drivers to specify max block count 2007-02-04 20:54:10 +01:00
pxamci.c [ARM] 4304/1: removes the unnecessary bit number from CKENnn_XXXX 2007-04-21 23:14:01 +01:00
pxamci.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sdhci.c sdhci: release irq during suspend 2007-03-06 13:38:49 +01:00
sdhci.h mmc: sdhci: replace kmap with page_address 2007-02-04 20:54:12 +01:00
tifm_sd.c tifm_sd: treat "status error" as normal command completion 2007-02-11 16:28:22 +01:00
wbsd.c mmc: wbsd: Remove stray kunmap_atomic() 2007-02-11 16:27:13 +01:00
wbsd.h mmc: wbsd: replace kmap with page_address 2007-02-04 20:54:11 +01:00