Patchwork [U-Boot,v2,9/9] tegra: cardhu: config: enable SPI

login
register
mail settings
Submitter Allen Martin
Date Jan. 12, 2013, 9:07 a.m.
Message ID <1357981631-21245-10-git-send-email-amartin@nvidia.com>
Download mbox | patch
Permalink /patch/211478/
State Superseded
Delegated to: Tom Warren
Headers show

Comments

Allen Martin - Jan. 12, 2013, 9:07 a.m.
Turn on SPI in cardhu config file

Signed-off-by: Allen Martin <amartin@nvidia.com>
---
 include/configs/cardhu.h |   11 +++++++++++
 1 file changed, 11 insertions(+)
Simon Glass - Jan. 12, 2013, 4:57 p.m.
On Sat, Jan 12, 2013 at 1:07 AM, Allen Martin <amartin@nvidia.com> wrote:
> Turn on SPI in cardhu config file
>
> Signed-off-by: Allen Martin <amartin@nvidia.com>

Acked-by: Simon Glass <sjg@chromium.org>

> ---
>  include/configs/cardhu.h |   11 +++++++++++
>  1 file changed, 11 insertions(+)
>
> diff --git a/include/configs/cardhu.h b/include/configs/cardhu.h
> index aa725ba..1616b39 100644
> --- a/include/configs/cardhu.h
> +++ b/include/configs/cardhu.h
> @@ -49,6 +49,17 @@
>
>  #define CONFIG_ENV_IS_NOWHERE
>
> +/* SPI */
> +#define CONFIG_TEGRA_SLINK
> +#define CONFIG_TEGRA_SLINK_CTRLS       6
> +#define CONFIG_SPI_FLASH
> +#define CONFIG_SPI_FLASH_WINBOND
> +#define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0
> +#define CONFIG_SF_DEFAULT_SPEED        24000000
> +#define CONFIG_CMD_SPI
> +#define CONFIG_CMD_SF
> +#define CONFIG_SPI_FLASH_SIZE          (4 << 20)
> +
>  #include "tegra-common-post.h"
>
>  #endif /* __CONFIG_H */
> --
> 1.7.10.4
>

Patch

diff --git a/include/configs/cardhu.h b/include/configs/cardhu.h
index aa725ba..1616b39 100644
--- a/include/configs/cardhu.h
+++ b/include/configs/cardhu.h
@@ -49,6 +49,17 @@ 
 
 #define CONFIG_ENV_IS_NOWHERE
 
+/* SPI */
+#define CONFIG_TEGRA_SLINK
+#define CONFIG_TEGRA_SLINK_CTRLS       6
+#define CONFIG_SPI_FLASH
+#define CONFIG_SPI_FLASH_WINBOND
+#define CONFIG_SF_DEFAULT_MODE         SPI_MODE_0
+#define CONFIG_SF_DEFAULT_SPEED        24000000
+#define CONFIG_CMD_SPI
+#define CONFIG_CMD_SF
+#define CONFIG_SPI_FLASH_SIZE          (4 << 20)
+
 #include "tegra-common-post.h"
 
 #endif /* __CONFIG_H */