status = regval & GPMC_STATUS_BUFF_EMPTY;
break;
+ case GPMC_STATUS_WAIT:
+ regval = gpmc_read_reg(GPMC_STATUS);
+ status = regval & 0x100;
+ break;
+
default:
printk(KERN_ERR "gpmc_read_status: Not supported\n");
}
case GPMC_CONFIG_DEV_SIZE:
regval = gpmc_cs_read_reg(cs, GPMC_CS_CONFIG1);
+
+ /* clear 2 target bits */
+ regval &= ~GPMC_CONFIG1_DEVICESIZE(3);
+
+ /* set the proper value */
regval |= GPMC_CONFIG1_DEVICESIZE(wval);
+
gpmc_cs_write_reg(cs, GPMC_CS_CONFIG1, regval);
break;