unsigned short cpr = read_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR);  if (( 1 << vdd) & p_d->ocr_mask) { /* printk(KERN_DEBUG "%s: on\n", __FUNCTION__); */ set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER); mdelay(2); write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | 0x04); } else { /* printk(KERN_DEBUG "%s: off\n", __FUNCTION__); */ write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr & ~0x04);  if (!(cpr | 0x02)) { mdelay(1); reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER); } } 
if (( 1 << vdd) & p_d->ocr_mask) spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0004); else spitz_card_pwr_ctrl(SPITZ_PWR_SD, 0x0000); 
static void spitz_mci_setpower(struct device *dev, unsigned int vdd){	struct pxamci_platform_data* p_d = dev->platform_data;	unsigned short cpr = read_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR);	if (( 1 << vdd) & p_d->ocr_mask) {		/* printk(KERN_DEBUG "%s: on\n", __FUNCTION__); */		set_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER);		mdelay(2);		write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr | 0x04);	} else {		/* printk(KERN_DEBUG "%s: off\n", __FUNCTION__); */		write_scoop_reg(&spitzscoop_device.dev, SCOOP_CPR, cpr & ~0x04);		if (!(cpr | 0x02)) {			mdelay(1);			reset_scoop_gpio(&spitzscoop_device.dev, SPITZ_SCP_CF_POWER);		}	}}
10457	/local/tlutelli/issta_data/temp/c/2005_temp/2005/10457/a63ae4427c6af66d6eda26e5da8fed53f8fbede3/spitz.c/clean/arch/arm/mach-pxa/spitz.c