* [U-Boot] [PATCH v2] arm, imx, spi: detect spi flash again on aristainetos board
@ 2014-10-30 12:14 Heiko Schocher
2014-11-03 10:29 ` Stefano Babic
0 siblings, 1 reply; 2+ messages in thread
From: Heiko Schocher @ 2014-10-30 12:14 UTC (permalink / raw)
To: u-boot
155fa9af95a "spi: mxc: fix sf probe when using mxc_spi" break
spi flash detection on the aristainetos board. Fix this.
Signed-off-by: Heiko Schocher <hs@denx.de>
---
Changes in v2:
- fix bus number
board/aristainetos/aristainetos.c | 6 ++++++
include/configs/aristainetos.h | 2 +-
2 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/board/aristainetos/aristainetos.c b/board/aristainetos/aristainetos.c
index 3bfcf5b..06922c0 100644
--- a/board/aristainetos/aristainetos.c
+++ b/board/aristainetos/aristainetos.c
@@ -230,6 +230,12 @@ static iomux_v3_cfg_t const backlight_pads[] = {
MX6_PAD_GPIO_2__GPIO1_IO02 | MUX_PAD_CTRL(NO_PAD_CTRL),
};
+int board_spi_cs_gpio(unsigned bus, unsigned cs)
+{
+ return (bus == CONFIG_SF_DEFAULT_BUS && cs == CONFIG_SF_DEFAULT_CS)
+ ? (IMX_GPIO_NR(3, 20)) : -1;
+}
+
static void setup_spi(void)
{
int i;
diff --git a/include/configs/aristainetos.h b/include/configs/aristainetos.h
index 20aea85..e6a08df 100644
--- a/include/configs/aristainetos.h
+++ b/include/configs/aristainetos.h
@@ -77,7 +77,7 @@
#define CONFIG_SPI_FLASH_STMICRO
#define CONFIG_MXC_SPI
#define CONFIG_SF_DEFAULT_BUS 3
-#define CONFIG_SF_DEFAULT_CS (0|(IMX_GPIO_NR(3, 20)<<8))
+#define CONFIG_SF_DEFAULT_CS 0
#define CONFIG_SF_DEFAULT_SPEED 20000000
#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0
#define CONFIG_SYS_SPI_ST_ENABLE_WP_PIN
--
1.8.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread* [U-Boot] [PATCH v2] arm, imx, spi: detect spi flash again on aristainetos board
2014-10-30 12:14 [U-Boot] [PATCH v2] arm, imx, spi: detect spi flash again on aristainetos board Heiko Schocher
@ 2014-11-03 10:29 ` Stefano Babic
0 siblings, 0 replies; 2+ messages in thread
From: Stefano Babic @ 2014-11-03 10:29 UTC (permalink / raw)
To: u-boot
On 30/10/2014 13:14, Heiko Schocher wrote:
> 155fa9af95a "spi: mxc: fix sf probe when using mxc_spi" break
> spi flash detection on the aristainetos board. Fix this.
>
> Signed-off-by: Heiko Schocher <hs@denx.de>
>
> ---
Applied to u-boot-imx, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-11-03 10:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-30 12:14 [U-Boot] [PATCH v2] arm, imx, spi: detect spi flash again on aristainetos board Heiko Schocher
2014-11-03 10:29 ` Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox