[U-Boot] [RESEND PATCH v5 2/6] cgtqmx6eval: Use SPI NOR to store the environment

Jagan Teki jteki at openedev.com
Tue Nov 17 07:05:40 CET 2015


On 14 November 2015 at 00:19, Otavio Salvador <otavio at ossystems.com.br> wrote:
> Congatec boards boot from SPI NOR, so it makes more sense to use
> SPI NOR to store the environment variables.
>
> Signed-off-by: Otavio Salvador <otavio at ossystems.com.br>

Please add previous version reviews or tested tags if any?

> ---
>
> Changes in v5: None
> Changes in v4: None
>
>  include/configs/cgtqmx6eval.h | 18 ++++++++++++++----
>  1 file changed, 14 insertions(+), 4 deletions(-)
>
> diff --git a/include/configs/cgtqmx6eval.h b/include/configs/cgtqmx6eval.h
> index 9aa66c7..79183c4 100644
> --- a/include/configs/cgtqmx6eval.h
> +++ b/include/configs/cgtqmx6eval.h
> @@ -245,11 +245,21 @@
>         (CONFIG_SYS_INIT_RAM_ADDR + CONFIG_SYS_INIT_SP_OFFSET)
>
>  /* Environment organization */
> -#define CONFIG_ENV_SIZE                        (8 * 1024)
> -
> -#define CONFIG_ENV_IS_IN_MMC
> -
> +#if defined (CONFIG_ENV_IS_IN_MMC)
>  #define CONFIG_ENV_OFFSET              (6 * 64 * 1024)
>  #define CONFIG_SYS_MMC_ENV_DEV         0
> +#endif
> +
> +#define CONFIG_ENV_SIZE                        (8 * 1024)
> +
> +#define CONFIG_ENV_IS_IN_SPI_FLASH
> +#if defined(CONFIG_ENV_IS_IN_SPI_FLASH)
> +#define CONFIG_ENV_OFFSET              (768 * 1024)
> +#define CONFIG_ENV_SECT_SIZE           (64 * 1024)
> +#define CONFIG_ENV_SPI_BUS             CONFIG_SF_DEFAULT_BUS
> +#define CONFIG_ENV_SPI_CS              CONFIG_SF_DEFAULT_CS
> +#define CONFIG_ENV_SPI_MODE            CONFIG_SF_DEFAULT_MODE
> +#define CONFIG_ENV_SPI_MAX_HZ          CONFIG_SF_DEFAULT_SPEED
> +#endif
>
>  #endif                        /* __CONFIG_CGTQMX6EVAL_H */
> --
> 2.6.2
>
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot



-- 
Jagan | openedev.


More information about the U-Boot mailing list