/* Register the NOR flash platform device with the kernel  */
void __init lpc18xx_nor_flash_init(void)
/* Register the NOR flash platform device with the kernel  */
void __init lpc18xx_nor_flash_init(void)
{
	unsigned int size = 0;
	switch (lpc18xx_platform_get()) {
	case PLATFORM_LPC18XX_HITEX_LPC4350_EVAL:
	case PLATFORM_LPC18XX_HITEX_LPC1850_EVAL:
		size = 4*1024*1024;
		break;
	case PLATFORM_LPC18XX_EA_LPC4357_EVAL:
		goto out;
	default:
		printk(KERN_ERR "%s: Unknown platform %#x, exit\n", __func__,
			lpc18xx_platform_get());
		goto out;
	}
	flash_resources[0].end = flash_resources[0].start + size - 1;
	flash_partitions[2].size = size - FLASH_JFFS2_OFFSET;
	if (size)
		platform_device_register(&flash_dev);
out:
	return;
}