Skip to content

Commit

Permalink
sandbox: spi: Enable new spi/sf layers
Browse files Browse the repository at this point in the history
We want to test SPI flash code in the sandbox, so enable the new drivers and
the 'sf test' command.

This command is used to validate the sandbox SPI / SPI flash implementation,
so enable it.

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Simon Glass <[email protected]>
  • Loading branch information
vapier authored and sjg20 committed Dec 9, 2013
1 parent ffdb20b commit ca9a501
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions include/configs/sandbox.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,16 @@
#define CONFIG_ENV_SIZE 8192
#define CONFIG_ENV_IS_NOWHERE

/* SPI */
#define CONFIG_SANDBOX_SPI
#define CONFIG_CMD_SF
#define CONFIG_CMD_SF_TEST
#define CONFIG_CMD_SPI
#define CONFIG_SPI_FLASH
#define CONFIG_SPI_FLASH_SANDBOX
#define CONFIG_SPI_FLASH_STMICRO
#define CONFIG_SPI_FLASH_WINBOND

/* Memory things - we don't really want a memory test */
#define CONFIG_SYS_LOAD_ADDR 0x00000000
#define CONFIG_SYS_MEMTEST_START 0x00100000
Expand Down

0 comments on commit ca9a501

Please sign in to comment.