From patchwork Wed Sep 21 07:25:01 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chander Kashyap X-Patchwork-Id: 4208 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 3F44723F58 for ; Wed, 21 Sep 2011 07:25:25 +0000 (UTC) Received: from mail-fx0-f52.google.com (mail-fx0-f52.google.com [209.85.161.52]) by fiordland.canonical.com (Postfix) with ESMTP id 2E6D2A189A5 for ; Wed, 21 Sep 2011 07:25:25 +0000 (UTC) Received: by mail-fx0-f52.google.com with SMTP id 23so1925184fxe.11 for ; Wed, 21 Sep 2011 00:25:25 -0700 (PDT) Received: by 10.223.61.66 with SMTP id s2mr602935fah.27.1316589925027; Wed, 21 Sep 2011 00:25:25 -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.152.18.198 with SMTP id y6cs111584lad; Wed, 21 Sep 2011 00:25:24 -0700 (PDT) Received: by 10.150.31.16 with SMTP id e16mr551972ybe.245.1316589924046; Wed, 21 Sep 2011 00:25:24 -0700 (PDT) Received: from mail-gx0-f178.google.com (mail-gx0-f178.google.com [209.85.161.178]) by mx.google.com with ESMTPS id d11si3267939anb.159.2011.09.21.00.25.23 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 21 Sep 2011 00:25:24 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) client-ip=209.85.161.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.161.178 is neither permitted nor denied by best guess record for domain of chander.kashyap@linaro.org) smtp.mail=chander.kashyap@linaro.org Received: by mail-gx0-f178.google.com with SMTP id 21so2170674gxk.37 for ; Wed, 21 Sep 2011 00:25:23 -0700 (PDT) Received: by 10.68.60.3 with SMTP id d3mr1072579pbr.80.1316589922689; Wed, 21 Sep 2011 00:25:22 -0700 (PDT) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id h5sm14177076pbq.11.2011.09.21.00.25.18 (version=SSLv3 cipher=OTHER); Wed, 21 Sep 2011 00:25:21 -0700 (PDT) From: Chander Kashyap To: u-boot@lists.denx.de Cc: mk7.kang@samsung.com, bjlee@samsung.com, patches@linaro.org, samsung@lists.linaro.org, linaro-dev@lists.linaro.org, Chander Kashyap Subject: [PATCH 1/4] SMDKV310: Initialize board id using CONFIG_MACH_TYPE Date: Wed, 21 Sep 2011 12:55:01 +0530 Message-Id: <1316589904-17431-2-git-send-email-chander.kashyap@linaro.org> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1316589904-17431-1-git-send-email-chander.kashyap@linaro.org> References: <1316589904-17431-1-git-send-email-chander.kashyap@linaro.org> Use CONFIG_MACH_TYPE generic macro to initialize board id. Signed-off-by: Chander Kashyap --- board/samsung/smdkv310/smdkv310.c | 1 - include/configs/smdkv310.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletions(-) diff --git a/board/samsung/smdkv310/smdkv310.c b/board/samsung/smdkv310/smdkv310.c index e0b89dd..4478b0b 100644 --- a/board/samsung/smdkv310/smdkv310.c +++ b/board/samsung/smdkv310/smdkv310.c @@ -57,7 +57,6 @@ int board_init(void) smc9115_pre_init(); - gd->bd->bi_arch_number = MACH_TYPE_SMDKV310; gd->bd->bi_boot_params = (PHYS_SDRAM_1 + 0x100UL); return 0; } diff --git a/include/configs/smdkv310.h b/include/configs/smdkv310.h index 2f97bea..1c974ea 100644 --- a/include/configs/smdkv310.h +++ b/include/configs/smdkv310.h @@ -37,6 +37,9 @@ #define CONFIG_DISPLAY_CPUINFO #define CONFIG_DISPLAY_BOARDINFO +/* Mach Type */ +#define CONFIG_MACH_TYPE MACH_TYPE_SMDKV310 + /* Keep L2 Cache Disabled */ #define CONFIG_L2_OFF 1