• Huang Shijie's avatar
    mtd: spi-nor: add the framework for SPI NOR · b199489d
    Huang Shijie authored
    This patch cloned most of the m25p80.c. In theory, it adds a new spi-nor layer.
    
    Before this patch, the layer is like:
    
                       MTD
             ------------------------
                      m25p80
             ------------------------
    	       spi bus driver
             ------------------------
    	        SPI NOR chip
    
    After this patch, the layer is like:
                       MTD
             ------------------------
                      spi-nor
             ------------------------
                      m25p80
             ------------------------
    	       spi bus driver
             ------------------------
    	       SPI NOR chip
    
    With the spi-nor controller driver(Freescale Quadspi), it looks like:
                       MTD
             ------------------------
                      spi-nor
             ------------------------
                    fsl-quadspi
             ------------------------
    	       SPI NOR chip
    
    New APIs:
       spi_nor_scan: used to scan a spi-nor flash.
    Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
    Acked-by: default avatarMarek Vasut <marex@denx.de>
    [Brian: rebased to include additional m25p_ids[] entry]
    Signed-off-by: default avatarBrian Norris <computersforpeace@gmail.com>
    b199489d
Makefile 44 Bytes