diff mbox

[U-Boot,3/3,v2] arm: ls102xa: Enable Driver Model SPI for ls1021atwr

Message ID 1429615561-14583-1-git-send-email-haikun.wang@freescale.com
State Superseded
Delegated to: York Sun
Headers show

Commit Message

Haikun.Wang@freescale.com April 21, 2015, 11:26 a.m. UTC
Enable Driver Model SPI for ls1021atwr board.
DSPI and QSPI only be enabled when boot from QSPI.
DSPI and QSPI are compatible under Driver Model SPI.

Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
---

Changes in v2:
- Move all changes inside of CONFIG_QSPI_BOOT 

Changes in v1: None

 include/configs/ls1021atwr.h | 14 ++++++++++++--
 1 file changed, 12 insertions(+), 2 deletions(-)

Comments

Jagan Teki April 21, 2015, 1:05 p.m. UTC | #1
On 21 April 2015 at 16:56, Haikun Wang <haikun.wang@freescale.com> wrote:
> Enable Driver Model SPI for ls1021atwr board.
> DSPI and QSPI only be enabled when boot from QSPI.
> DSPI and QSPI are compatible under Driver Model SPI.
>
> Signed-off-by: Haikun Wang <Haikun.Wang@freescale.com>
> ---

Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com>

>
> Changes in v2:
> - Move all changes inside of CONFIG_QSPI_BOOT
>
> Changes in v1: None
>
>  include/configs/ls1021atwr.h | 14 ++++++++++++--
>  1 file changed, 12 insertions(+), 2 deletions(-)
>
> diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
> index a13876b..1dd6336 100644
> --- a/include/configs/ls1021atwr.h
> +++ b/include/configs/ls1021atwr.h
> @@ -228,16 +228,26 @@
>  #define CONFIG_CMD_FAT
>  #define CONFIG_DOS_PARTITION
>
> -/* QSPI */
> +/* SPI */
>  #ifdef CONFIG_QSPI_BOOT
> +/* QSPI */
>  #define CONFIG_FSL_QSPI
>  #define QSPI0_AMBA_BASE                        0x40000000
>  #define FSL_QSPI_FLASH_SIZE            (1 << 24)
>  #define FSL_QSPI_FLASH_NUM             2
>
> +#define CONFIG_SPI_FLASH_STMICRO
> +
> +/* DM SPI */
> +#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
> +#define CONFIG_OF_CONTROL
> +#define CONFIG_OF_SEPARATE
> +#define CONFIG_DM
> +#define CONFIG_DM_SPI
>  #define CONFIG_CMD_SF
> +#define CONFIG_DM_SPI_FLASH
>  #define CONFIG_SPI_FLASH
> -#define CONFIG_SPI_FLASH_STMICRO
> +#endif
>  #endif
>
>  /*
> --
> 2.1.0.27.g96db324
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot

thanks!
diff mbox

Patch

diff --git a/include/configs/ls1021atwr.h b/include/configs/ls1021atwr.h
index a13876b..1dd6336 100644
--- a/include/configs/ls1021atwr.h
+++ b/include/configs/ls1021atwr.h
@@ -228,16 +228,26 @@ 
 #define CONFIG_CMD_FAT
 #define CONFIG_DOS_PARTITION
 
-/* QSPI */
+/* SPI */
 #ifdef CONFIG_QSPI_BOOT
+/* QSPI */
 #define CONFIG_FSL_QSPI
 #define QSPI0_AMBA_BASE			0x40000000
 #define FSL_QSPI_FLASH_SIZE		(1 << 24)
 #define FSL_QSPI_FLASH_NUM		2
 
+#define CONFIG_SPI_FLASH_STMICRO
+
+/* DM SPI */
+#if defined(CONFIG_FSL_DSPI) || defined(CONFIG_FSL_QSPI)
+#define CONFIG_OF_CONTROL
+#define CONFIG_OF_SEPARATE
+#define CONFIG_DM
+#define CONFIG_DM_SPI
 #define CONFIG_CMD_SF
+#define CONFIG_DM_SPI_FLASH
 #define CONFIG_SPI_FLASH
-#define CONFIG_SPI_FLASH_STMICRO
+#endif
 #endif
 
 /*