From patchwork Tue Mar 26 09:37:49 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Inderpal Singh X-Patchwork-Id: 15648 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id C080F23DEE for ; Tue, 26 Mar 2013 09:38:10 +0000 (UTC) Received: from mail-ve0-f182.google.com (mail-ve0-f182.google.com [209.85.128.182]) by fiordland.canonical.com (Postfix) with ESMTP id 66FDBA1989C for ; Tue, 26 Mar 2013 09:38:10 +0000 (UTC) Received: by mail-ve0-f182.google.com with SMTP id m1so1251998ves.13 for ; Tue, 26 Mar 2013 02:38:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state; bh=BG4ainENRRPAtVExrkCKhsXIhmN9dbx32S1NHYyRnTM=; b=hgi5LqGFW8CvvtamG368+MgQoo+LIoPKV2pR9FV+192pZF2EzX/OjvC9hy/R1Dpncp uDa+Ch8NMixqBn8SwgE68/qIfO6cPmt0JzEsskPUjBGaXW1Cs8Z6TVvcrnAXJht/9251 LeveFr17GY5wq+MFXEeSa1WM9/SoxXkspuxiGhy0OlyjQCFo23YoYYWhbm+1Jq7Dd9aw IFmsCMt7ATL1+0ihfRmpbaJW+YzIJy+GIixmPFYfunAk0hoSYJKMkAklnU6fXQiVLSZ2 DsCiU70s6NIUmE3IvyigIJjLWXXOV/lu3vFMI+D7Dnde9Ihde/RWqORWLdUnOvtDtR46 P7qg== X-Received: by 10.52.76.103 with SMTP id j7mr16420155vdw.90.1364290689936; Tue, 26 Mar 2013 02:38:09 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.59.4.204 with SMTP id cg12csp62913ved; Tue, 26 Mar 2013 02:38:09 -0700 (PDT) X-Received: by 10.66.139.198 with SMTP id ra6mr22745951pab.148.1364290688967; Tue, 26 Mar 2013 02:38:08 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id io9si16781958pbc.258.2013.03.26.02.38.08 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:38:08 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) client-ip=209.85.192.172; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of inderpal.singh@linaro.org) smtp.mail=inderpal.singh@linaro.org Received: by mail-pd0-f172.google.com with SMTP id w10so2961754pde.31 for ; Tue, 26 Mar 2013 02:38:08 -0700 (PDT) X-Received: by 10.66.102.65 with SMTP id fm1mr22473443pab.164.1364290688290; Tue, 26 Mar 2013 02:38:08 -0700 (PDT) Received: from inder-ubuntu.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPS id hu2sm16867167pbc.38.2013.03.26.02.38.05 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:38:07 -0700 (PDT) From: Inderpal Singh To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com, promsoft@gmail.com, patches@linaro.org, chander.kashyap@linaro.org Subject: [PATCH 2/3] exynos5250: move board specific configs to board specific config file Date: Tue, 26 Mar 2013 15:07:49 +0530 Message-Id: <1364290670-7443-3-git-send-email-inderpal.singh@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1364290670-7443-1-git-send-email-inderpal.singh@linaro.org> References: <1364290670-7443-1-git-send-email-inderpal.singh@linaro.org> X-Gm-Message-State: ALoCoQnqLhfe5TkQO3CwxOuKkwpNNHWM84DG9I0GIxb74P4vLaQHdXu4bKELYy4VDl3iptfjCpNd Not all boards based on exynos5250 have SPI flash, same serial port and might not require the same lds script. Hence move them to board specific config file Signed-off-by: Inderpal Singh --- include/configs/exynos5250-dt.h | 8 +------- include/configs/smdk5250.h | 12 ++++++++++-- include/configs/snow.h | 12 ++++++++++-- 3 files changed, 21 insertions(+), 11 deletions(-) diff --git a/include/configs/exynos5250-dt.h b/include/configs/exynos5250-dt.h index d5d8e3a..615b788 100644 --- a/include/configs/exynos5250-dt.h +++ b/include/configs/exynos5250-dt.h @@ -29,7 +29,6 @@ #define CONFIG_SAMSUNG /* in a SAMSUNG core */ #define CONFIG_S5P /* S5P Family */ #define CONFIG_EXYNOS5 /* which is in a Exynos5 Family */ -#define CONFIG_SMDK5250 /* which is in a SMDK5250 */ #include /* get chip and board defs */ @@ -73,7 +72,6 @@ #define CONFIG_SYS_MALLOC_LEN (CONFIG_ENV_SIZE + (4 << 20)) /* select serial console configuration */ -#define CONFIG_SERIAL3 /* use SERIAL 3 */ #define CONFIG_BAUDRATE 115200 #define EXYNOS5_DEFAULT_UART_OFFSET 0x010000 @@ -132,8 +130,6 @@ #define CONFIG_SPL #define COPY_BL2_FNPTR_ADDR 0x02020030 -/* specific .lds file */ -#define CONFIG_SPL_LDSCRIPT "board/samsung/smdk5250/smdk5250-uboot-spl.lds" #define CONFIG_SPL_TEXT_BASE 0x02023400 #define CONFIG_SPL_MAX_SIZE (14 * 1024) @@ -142,7 +138,7 @@ /* 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_PROMPT "EXYNOS5250 # " #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 */ @@ -182,7 +178,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 @@ -242,7 +237,6 @@ #define CONFIG_PMIC_MAX77686 /* SPI */ -#define CONFIG_ENV_IS_IN_SPI_FLASH #define CONFIG_SPI_FLASH #ifdef CONFIG_SPI_FLASH diff --git a/include/configs/smdk5250.h b/include/configs/smdk5250.h index 81f83a8..487505b 100644 --- a/include/configs/smdk5250.h +++ b/include/configs/smdk5250.h @@ -25,9 +25,17 @@ #ifndef __CONFIG_SMDK_H #define __CONFIG_SMDK_H -#include - #undef CONFIG_DEFAULT_DEVICE_TREE #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-smdk5250 +#define CONFIG_SMDK5250 /* which is in a SMDK5250 */ +#define CONFIG_SERIAL3 /* use SERIAL 3 */ + +/* specific .lds file */ +#define CONFIG_SPL_LDSCRIPT "board/samsung/smdk5250/smdk5250-uboot-spl.lds" +#define CONFIG_IDENT_STRING " for SMDK5250" +#define CONFIG_ENV_IS_IN_SPI_FLASH + +#include + #endif /* __CONFIG_SMDK_H */ diff --git a/include/configs/snow.h b/include/configs/snow.h index b8460fd..a1f8404 100644 --- a/include/configs/snow.h +++ b/include/configs/snow.h @@ -25,9 +25,17 @@ #ifndef __CONFIG_SNOW_H #define __CONFIG_SNOW_H -#include - #undef CONFIG_DEFAULT_DEVICE_TREE #define CONFIG_DEFAULT_DEVICE_TREE exynos5250-snow +#define CONFIG_SMDK5250 /* which is in a SMDK5250 */ +#define CONFIG_SERIAL3 /* use SERIAL 3 */ + +/* specific .lds file */ +#define CONFIG_SPL_LDSCRIPT "board/samsung/smdk5250/smdk5250-uboot-spl.lds" +#define CONFIG_IDENT_STRING " for SMDK5250" +#define CONFIG_ENV_IS_IN_SPI_FLASH + +#include + #endif /* __CONFIG_SNOW_H */