diff mbox

[U-Boot,05/11] dm: spi: Enable environment for minnowmax

Message ID 1433688642-19861-6-git-send-email-sjg@chromium.org
State Superseded
Delegated to: Simon Glass
Headers show

Commit Message

Simon Glass June 7, 2015, 2:50 p.m. UTC
Enable a SPI environment and store it in a suitable place.

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

 include/configs/minnowmax.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

Comments

Bin Meng June 8, 2015, 1:59 a.m. UTC | #1
On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass <sjg@chromium.org> wrote:
> Enable a SPI environment and store it in a suitable place.
>
> Signed-off-by: Simon Glass <sjg@chromium.org>
> ---
>
>  include/configs/minnowmax.h | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/include/configs/minnowmax.h b/include/configs/minnowmax.h
> index 547765d..d4d28a7 100644
> --- a/include/configs/minnowmax.h
> +++ b/include/configs/minnowmax.h
> @@ -65,8 +65,7 @@
>  /* Avoid a warning in the Realtek Ethernet driver */
>  #define CONFIG_SYS_CACHELINE_SIZE 16
>
> -/* Environment in SPI flash is unsupported for now */
> -#undef CONFIG_ENV_IS_IN_SPI_FLASH
> -#define CONFIG_ENV_IS_NOWHERE
> +#define CONFIG_ENV_SECT_SIZE           0x1000
> +#define CONFIG_ENV_OFFSET              0x007fe000
>
>  #endif /* __CONFIG_H */
> --

Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Jagan Teki June 8, 2015, 6 p.m. UTC | #2
On 8 June 2015 at 07:29, Bin Meng <bmeng.cn@gmail.com> wrote:
> On Sun, Jun 7, 2015 at 10:50 PM, Simon Glass <sjg@chromium.org> wrote:
>> Enable a SPI environment and store it in a suitable place.
>>
>> Signed-off-by: Simon Glass <sjg@chromium.org>
>> ---
>>
>>  include/configs/minnowmax.h | 5 ++---
>>  1 file changed, 2 insertions(+), 3 deletions(-)
>>
>> diff --git a/include/configs/minnowmax.h b/include/configs/minnowmax.h
>> index 547765d..d4d28a7 100644
>> --- a/include/configs/minnowmax.h
>> +++ b/include/configs/minnowmax.h
>> @@ -65,8 +65,7 @@
>>  /* Avoid a warning in the Realtek Ethernet driver */
>>  #define CONFIG_SYS_CACHELINE_SIZE 16
>>
>> -/* Environment in SPI flash is unsupported for now */
>> -#undef CONFIG_ENV_IS_IN_SPI_FLASH
>> -#define CONFIG_ENV_IS_NOWHERE
>> +#define CONFIG_ENV_SECT_SIZE           0x1000
>> +#define CONFIG_ENV_OFFSET              0x007fe000
>>
>>  #endif /* __CONFIG_H */
>> --
>
> Reviewed-by: Bin Meng <bmeng.cn@gmail.com>

Reviewed-by: Jagan Teki <jteki@openedev.com>

thanks!
diff mbox

Patch

diff --git a/include/configs/minnowmax.h b/include/configs/minnowmax.h
index 547765d..d4d28a7 100644
--- a/include/configs/minnowmax.h
+++ b/include/configs/minnowmax.h
@@ -65,8 +65,7 @@ 
 /* Avoid a warning in the Realtek Ethernet driver */
 #define CONFIG_SYS_CACHELINE_SIZE 16
 
-/* Environment in SPI flash is unsupported for now */
-#undef CONFIG_ENV_IS_IN_SPI_FLASH
-#define CONFIG_ENV_IS_NOWHERE
+#define CONFIG_ENV_SECT_SIZE		0x1000
+#define CONFIG_ENV_OFFSET		0x007fe000
 
 #endif	/* __CONFIG_H */