|
@@ -9,10 +9,11 @@
|
|
#ifndef _SPI_FLASH_H_
|
|
#ifndef _SPI_FLASH_H_
|
|
#define _SPI_FLASH_H_
|
|
#define _SPI_FLASH_H_
|
|
|
|
|
|
-#include <dm.h> /* Because we dereference struct udevice here */
|
|
|
|
#include <linux/types.h>
|
|
#include <linux/types.h>
|
|
#include <linux/mtd/spi-nor.h>
|
|
#include <linux/mtd/spi-nor.h>
|
|
|
|
|
|
|
|
+struct udevice;
|
|
|
|
+
|
|
/* by default ENV use the same parameters than SF command */
|
|
/* by default ENV use the same parameters than SF command */
|
|
#ifndef CONFIG_ENV_SPI_BUS
|
|
#ifndef CONFIG_ENV_SPI_BUS
|
|
# define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
|
|
# define CONFIG_ENV_SPI_BUS CONFIG_SF_DEFAULT_BUS
|