NUC980修改内核支持spi-nand

修改内核支持spi-nand

arch/arm/mach-nuc980/dev.c


 

static struct flash_platform_data nuc980_qspi0_flash_data = {

-#ifdef CONFIG_BOARD_IOT

+#ifdef CONFIG_BOARD_ETH2UART

       .name = "mt29f",

#else

       .name = "m25p80",

static struct spi_board_info nuc980_qspi0_board_info[] __initdata = {

#ifdef CONFIG_MTD_M25P80

       {

-#ifdef CONFIG_BOARD_IOT

+#ifdef CONFIG_BOARD_ETH2UART

              .modalias = "mt29f",

#else

              .modalias = "m25p80",

 

Kernel config change bootcmd:

 

-CONFIG_CMDLINE="root=/dev/ram0 console=ttyS0,115200n8 rdinit=/sbin/init mem=64M"

+CONFIG_CMDLINE="noinitrd root=/dev/mtdblock2 rootfstype=yaffs2 rootflags=inband-tags console=ttyS0,115200n8 rdinit=/sbin/init mem=64M"

你可能感兴趣的:(嵌入式linux笔记,单片机,stm32,物联网)