|
@@ -118,7 +118,7 @@ static struct platform_device cf_slot0 = {
|
|
/* Resources and device for NAND */
|
|
/* Resources and device for NAND */
|
|
static int rb532_dev_ready(struct mtd_info *mtd)
|
|
static int rb532_dev_ready(struct mtd_info *mtd)
|
|
{
|
|
{
|
|
- return readl(IDT434_REG_BASE + GPIOD) & GPIO_RDY;
|
|
|
|
|
|
+ return gpio_get_value(GPIO_RDY);
|
|
}
|
|
}
|
|
|
|
|
|
static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
|
|
static void rb532_cmd_ctrl(struct mtd_info *mtd, int cmd, unsigned int ctrl)
|