mx28evk: Provide default values for SPI bus and chip select
authorFabio Estevam <fabio.estevam@freescale.com>
Thu, 22 Mar 2012 14:29:03 +0000 (14:29 +0000)
committerStefano Babic <sbabic@denx.de>
Tue, 27 Mar 2012 07:41:17 +0000 (09:41 +0200)
Provide default values for SPI bus and chip select.

This allows the command "sf probe" to work without passing SPI bus and chip
select numbers as arguments.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Acked-by: Marek Vasut <marex@denx.de>
include/configs/mx28evk.h

index 04967d7d2c6a0af770773840ffb0badbf71ede2c..30814c6c0cbd72455d148ca2b24a94370e4f7404 100644 (file)
 /* SPI Flash */
 #ifdef CONFIG_CMD_SF
 #define CONFIG_SPI_FLASH
+#define CONFIG_SF_DEFAULT_BUS  2
+#define CONFIG_SF_DEFAULT_CS   0
 /* this may vary and depends on the installed chip */
 #define CONFIG_SPI_FLASH_SST
 #define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0