Ingenci SPI nand使用
1、配置menuconfig
	（1）使能spi控制器驱动
	Device Drivers  --->
		[*] SPI support  --->
			<*>   Ingenic JZ series SPI driver
				[*]     Ingenic SoC SSI controller 0 for SPI Host driver
				-*-       JZ SSI0 controller function pins select
				[ ]       Disable DMA (always use PIO) on JZ SSI controller 0
				JZ SSI0 controller function pins select (GPIO B(17,18,29,30))  --->

	（2）使能spi nand设备驱动
	Device Drivers  --->
		<*> Memory Technology Device (MTD) support  --->
			-*-   NAND Device Support  --->
				<M>   Support for SPI_NAND
	（3）使能ubi驱动
	Device Drivers  --->
		<*> Memory Technology Device (MTD) support  --->
			<*>   Enable UBI - Unsorted block images  --->
	（4）使能ubifs驱动
	File systems  --->
		[*] Miscellaneous filesystems  --->
			<*>   UBIFS file system support
			[*]     Advanced compression options
			[*]       LZO compression support
			[*]       ZLIB compression support
			[*]     Access time support
2、板级配置
添加spinand设备子结点
&spi0 {
	[0] ={
		.modalias       =  "jz_spi_nand",
		.controller_data        = 0,
		.max_speed_hz           = 10000000,
		.bus_num                = 0,
		.chip_select            = 0,
	},
};
3、编译固件
4、进入系统加载spinand设备驱动
	spi控制器驱动、ubi驱动和ubifs驱动默认是编译到kernel中。spi nand设备驱动编译成ko手动加载
	insmod jz_spi_nand.ko
5、分区使用
	加载完spinad设备驱动会生成分区信息，需要挂载的分区按照ubi开源工具的使用来创建
