From: Marek Vasut <marek.vasut@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/2] mx28evk: Provide default values for SPI bus and chip select
Date: Fri, 23 Mar 2012 09:38:54 +0100 [thread overview]
Message-ID: <201203230938.54261.marex@denx.de> (raw)
In-Reply-To: <1332462544-25509-1-git-send-email-festevam@gmail.com>
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
next prev parent reply other threads:[~2012-03-23 8:38 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-23 0:29 [U-Boot] [PATCH 1/2] mx28evk: Provide default values for SPI bus and chip select Fabio Estevam
2012-03-23 0:29 ` [U-Boot] [PATCH 2/2] configs: imx: Use CONFIG_SF_DEFAULT_CS Fabio Estevam
2012-03-23 8:39 ` Marek Vasut
2012-03-23 9:08 ` Stefano Babic
2012-03-23 9:18 ` Marek Vasut
2012-03-23 9:26 ` Stefano Babic
2012-03-23 9:30 ` Stefano Babic
2012-03-23 8:38 ` Marek Vasut [this message]
2012-03-23 9:30 ` [U-Boot] [PATCH 1/2] mx28evk: Provide default values for SPI bus and chip select Stefano Babic
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201203230938.54261.marex@denx.de \
--to=marek.vasut@gmail.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox