/* Do the basic initialisation of the hardware, using s3c2410_nand_setrate() to setup the hardware access speeds and set the controller to be enabled.  */
static int s3c2410_nand_inithw(struct s3c2410_nand_info *info)
/* Do the basic initialisation of the hardware, using s3c2410_nand_setrate() to setup the hardware access speeds and set the controller to be enabled.  */
static int s3c2410_nand_inithw(struct s3c2410_nand_info *info)
{
	int ret;
	ret = s3c2410_nand_setrate(info);
	if (ret < 0)
		return ret;
 	switch (info->cpu_type) {
 	case TYPE_S3C2410:
	default:
		break;
 	case TYPE_S3C2440:
 	case TYPE_S3C2412:
		writel(S3C2440_NFCONT_ENABLE, info->regs + S3C2440_NFCONT);
	}
	return 0;
}