diff mbox

[U-Boot,v2,06/16] dra7xx_evm: qspi: do not define DM_SPI and DM_SPI_FLASH for spl

Message ID 1446624984-11033-7-git-send-email-mugunthanvnm@ti.com
State Superseded
Delegated to: Jagannadha Sutradharudu Teki
Headers show

Commit Message

Mugunthan V N Nov. 4, 2015, 8:16 a.m. UTC
Since spl doesn't support DM currently, do not define DM_SPI and
DM_SPI_FLASH for spl build.

Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
---
 include/configs/dra7xx_evm.h | 5 +++++
 1 file changed, 5 insertions(+)

Comments

Simon Glass Nov. 6, 2015, 12:07 p.m. UTC | #1
Hi Mugunthan,

On 4 November 2015 at 01:16, Mugunthan V N <mugunthanvnm@ti.com> wrote:
> Since spl doesn't support DM currently, do not define DM_SPI and
> DM_SPI_FLASH for spl build.

Do you mean 'Since OMAP's SPL doesn't support...'?

>
> Signed-off-by: Mugunthan V N <mugunthanvnm@ti.com>
> ---
>  include/configs/dra7xx_evm.h | 5 +++++
>  1 file changed, 5 insertions(+)
>
> diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
> index 6e32de8..525dce7 100644
> --- a/include/configs/dra7xx_evm.h
> +++ b/include/configs/dra7xx_evm.h
> @@ -131,6 +131,11 @@
>  #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3
>  #define CONFIG_QSPI_QUAD_SUPPORT
>
> +#ifdef CONFIG_SPL_BUILD
> +#undef CONFIG_DM_SPI
> +#undef CONFIG_DM_SPI_FLASH
> +#endif
> +
>  /*
>   * Default to using SPI for environment, etc.
>   * 0x000000 - 0x010000 : QSPI.SPL (64KiB)
> --
> 2.6.2.280.g74301d6
>

Regards,
Simon
Mugunthan V N Nov. 12, 2015, 9:15 a.m. UTC | #2
On Friday 06 November 2015 05:37 PM, Simon Glass wrote:
> Hi Mugunthan,
> 
> On 4 November 2015 at 01:16, Mugunthan V N <mugunthanvnm@ti.com> wrote:
>> > Since spl doesn't support DM currently, do not define DM_SPI and
>> > DM_SPI_FLASH for spl build.
> Do you mean 'Since OMAP's SPL doesn't support...'?
> 

Right, for OMAP it is not supported. Will fix it in next version.

Regards
Mugunthan V N
diff mbox

Patch

diff --git a/include/configs/dra7xx_evm.h b/include/configs/dra7xx_evm.h
index 6e32de8..525dce7 100644
--- a/include/configs/dra7xx_evm.h
+++ b/include/configs/dra7xx_evm.h
@@ -131,6 +131,11 @@ 
 #define CONFIG_DEFAULT_SPI_MODE                SPI_MODE_3
 #define CONFIG_QSPI_QUAD_SUPPORT
 
+#ifdef CONFIG_SPL_BUILD
+#undef CONFIG_DM_SPI
+#undef CONFIG_DM_SPI_FLASH
+#endif
+
 /*
  * Default to using SPI for environment, etc.
  * 0x000000 - 0x010000 : QSPI.SPL (64KiB)