Message ID | 1332462544-25509-1-git-send-email-festevam@gmail.com |
---|---|
State | Accepted |
Commit | 1fc3bbd17a9812998a7d7c2a3990b0fe2e605a2c |
Delegated to: | Stefano Babic |
Headers | show |
Dear Fabio Estevam, > From: Fabio Estevam <fabio.estevam@freescale.com> > > 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 | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h > index 04967d7..112fda4 100644 > --- a/include/configs/mx28evk.h > +++ b/include/configs/mx28evk.h > @@ -186,6 +186,8 @@ > /* 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 Best regards, Marek Vasut
On 23/03/2012 01:29, Fabio Estevam wrote: > From: Fabio Estevam <fabio.estevam@freescale.com> > > 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> > --- Applied to u-boot-imx, thanks. Best regards, Stefano Babic
diff --git a/include/configs/mx28evk.h b/include/configs/mx28evk.h index 04967d7..112fda4 100644 --- a/include/configs/mx28evk.h +++ b/include/configs/mx28evk.h @@ -186,6 +186,8 @@ /* 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