From: Minkyu Kang <mk7.kang@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 3/5] ARM: Exynos5250: move feature defines out of generic config file
Date: Thu, 05 Dec 2013 17:08:30 +0900 [thread overview]
Message-ID: <52A0347E.9030102@samsung.com> (raw)
In-Reply-To: <1380105759-9687-4-git-send-email-andre.przywara@linaro.org>
On 25/09/13 19:42, Andre Przywara wrote:
> The config file exynos5250-dt.h is used by two boards currently.
> To allow the Arndale board to use it too in the future, move some
> board specific defines out of that generic file.
> Update the copyright, header comment and include protection define
> on the way.
>
> Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
> ---
> include/configs/exynos5250-dt.h | 15 ++++-----------
> include/configs/smdk5250.h | 10 +++++++++-
> include/configs/snow.h | 10 +++++++++-
> 3 files changed, 22 insertions(+), 13 deletions(-)
>
> diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h
> index c8c4b35..e855745 100644
> --- a/include/configs/exynos5250-dt.h
> +++ b/include/configs/exynos5250-dt.h
> @@ -1,13 +1,13 @@
> /*
> - * Copyright (C) 2012 Samsung Electronics
> + * Copyright (C) 2012,2013 Samsung Electronics
> *
> - * Configuration settings for the SAMSUNG EXYNOS5250 board.
> + * Configuration settings for SAMSUNG EXYNOS5250 based boards.
> *
> * SPDX-License-Identifier: GPL-2.0+
> */
>
> -#ifndef __CONFIG_H
> -#define __CONFIG_H
> +#ifndef __CONFIG_EXYNOS_5250_DT_H
> +#define __CONFIG_EXYNOS_5250_DT_H
>
> /* High Level Configuration Options */
> #define CONFIG_SAMSUNG /* in a SAMSUNG core */
> @@ -165,7 +165,6 @@
> /* Miscellaneous configurable options */
> #define CONFIG_SYS_LONGHELP /* undef to save memory */
> #define CONFIG_SYS_HUSH_PARSER /* use "hush" command parser */
> -#define CONFIG_SYS_PROMPT "SMDK5250 # "
> #define CONFIG_SYS_CBSIZE 256 /* Console I/O Buffer Size */
> #define CONFIG_SYS_PBSIZE 384 /* Print Buffer Size */
> #define CONFIG_SYS_MAXARGS 16 /* max number of command args */
> @@ -205,7 +204,6 @@
> /* FLASH and environment organization */
> #define CONFIG_SYS_NO_FLASH
> #undef CONFIG_CMD_IMLS
> -#define CONFIG_IDENT_STRING " for SMDK5250"
>
> #define CONFIG_SYS_MMC_ENV_DEV 0
>
> @@ -258,9 +256,6 @@
> #define CONFIG_I2C_EDID
>
> /* SPI */
> -#define CONFIG_ENV_IS_IN_SPI_FLASH
> -#define CONFIG_SPI_FLASH
> -
> #ifdef CONFIG_SPI_FLASH
> #define CONFIG_EXYNOS_SPI
> #define CONFIG_CMD_SF
> @@ -299,7 +294,6 @@
> #endif
>
> /* Sound */
> -#define CONFIG_CMD_SOUND
> #ifdef CONFIG_CMD_SOUND
> #define CONFIG_SOUND
> #define CONFIG_I2S
> @@ -317,7 +311,6 @@
> #define CONFIG_SHA256
>
> /* Display */
> -#define CONFIG_LCD
> #ifdef CONFIG_LCD
> #define CONFIG_EXYNOS_FB
> #define CONFIG_EXYNOS_DP
> diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h
> index 183aae7..b1bb783 100644
> --- a/include/configs/smdk5250.h
> +++ b/include/configs/smdk5250.h
> @@ -9,9 +9,17 @@
> #ifndef __CONFIG_SMDK_H
> #define __CONFIG_SMDK_H
>
> +#define CONFIG_ENV_IS_IN_SPI_FLASH
> +#define CONFIG_SPI_FLASH
> +#define CONFIG_LCD
> +#define CONFIG_CMD_SOUND
> +
> #include <configs/exynos5250-dt.h>
>
> -#undef CONFIG_DEFAULT_DEVICE_TREE
> #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-smdk5250
>
> +#define CONFIG_SYS_PROMPT "SMDK5250 # "
> +
> +#define CONFIG_IDENT_STRING " for SMDK5250"
> +
> #endif /* __CONFIG_SMDK_H */
> diff --git a/include/configs/snow.h b/include/configs/snow.h
> index ed5c0b6..4d34c48 100644
> --- a/include/configs/snow.h
> +++ b/include/configs/snow.h
> @@ -9,9 +9,17 @@
> #ifndef __CONFIG_SNOW_H
> #define __CONFIG_SNOW_H
>
> +#define CONFIG_ENV_IS_IN_SPI_FLASH
> +#define CONFIG_SPI_FLASH
> +#define CONFIG_LCD
> +#define CONFIG_CMD_SOUND
> +
> #include <configs/exynos5250-dt.h>
>
> -#undef CONFIG_DEFAULT_DEVICE_TREE
> #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-snow
>
> +#define CONFIG_SYS_PROMPT "SMDK5250 # "
"SNOW #"?
> +
> +#define CONFIG_IDENT_STRING " for SMDK5250"
SNOW?
> +
> #endif /* __CONFIG_SNOW_H */
>
Thanks,
Minkyu Kang.
next prev parent reply other threads:[~2013-12-05 8:08 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-25 10:42 [U-Boot] [PATCH 0/5] ARM: Exynos5250: consolidate configuration files Andre Przywara
2013-09-25 10:42 ` [U-Boot] [PATCH 1/5] ARM: Exynos5250: rename obsoleted CONFIG_PMIC defines Andre Przywara
2013-09-25 10:42 ` [U-Boot] [PATCH 2/5] ARM: Exynos5250: remove redundant defines in exynos5250-dt.h Andre Przywara
2013-12-05 8:07 ` Minkyu Kang
2013-09-25 10:42 ` [U-Boot] [PATCH 3/5] ARM: Exynos5250: move feature defines out of generic config file Andre Przywara
2013-12-05 8:08 ` Minkyu Kang [this message]
2013-12-05 10:44 ` Rajeshwari Birje
2013-12-05 10:50 ` Andre Przywara
2013-09-25 10:42 ` [U-Boot] [PATCH 4/5] ARM: snow: move defines for Chromebook embedded controller Andre Przywara
2013-09-25 10:42 ` [U-Boot] [PATCH 5/5] ARM: Arndale: include generic exynos5250-dt.h in arndale.h Andre Przywara
2013-10-08 17:22 ` [U-Boot] [PATCH 0/5] ARM: Exynos5250: consolidate configuration files Simon Glass
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=52A0347E.9030102@samsung.com \
--to=mk7.kang@samsung.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox