[U-Boot] [PATCH v10 1/4] config: exynos5420: move non common configs to specific board files

Sjoerd Simons sjoerd.simons at collabora.co.uk
Fri Dec 5 20:14:49 CET 2014


On Tue, 2014-12-02 at 16:07 +0900, Hyungwon Hwang wrote:
> The media for boot and environment is a board-specific feature, not a
> processor-specific. This is same to console port number and  some
> other addresses. This patch moves the that kinds of configs to each
> board-specific files from the common config file for Exynos5420.
> 
> Signed-off-by: Hyungwon Hwang <human.hwang at samsung.com>
> Cc: Minkyu Kang <mk7.kang at samsung.com>
> Cc: Lukasz Majewski <l.majewski at samsung.com>
> Cc: Sjoerd Simons <sjoerd.simons at collabora.co.uk>
> Cc: Javier Martinez Canillas <javier at dowhile0.org>
> Cc: Simon Glass <sjg at chromium.org>
> ---
> Changes for v10:
> - Newly added
> 
>  include/configs/exynos5420-common.h | 18 ------------------
>  include/configs/peach-pi.h          |  6 ++++++
>  include/configs/peach-pit.h         |  6 ++++++
>  include/configs/smdk5420.h          | 11 +++++++++++
>  4 files changed, 23 insertions(+), 18 deletions(-)
> 


> diff --git a/include/configs/smdk5420.h b/include/configs/smdk5420.h
> index 5c9a3c0..9742427 100644
> --- a/include/configs/smdk5420.h
> +++ b/include/configs/smdk5420.h
> @@ -11,13 +11,24 @@
>  
>  #include <configs/exynos5420-common.h>
>  
> +#define CONFIG_ENV_IS_IN_SPI_FLASH
> +#define CONFIG_SPI_FLASH
> +#define CONFIG_ENV_SPI_BASE	0x12D30000
> +#define FLASH_SIZE		(0x4 << 20)
> +#define CONFIG_ENV_OFFSET	(FLASH_SIZE - CONFIG_BL2_SIZE)
> +#define CONFIG_SPI_BOOTING

These need to be defined before including configs/exynos5420-common.h.
With this patch smdk5420_defconfig doesn't build any longer


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 6170 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20141205/e1977a3e/attachment.bin>


More information about the U-Boot mailing list