From patchwork Tue Sep 23 18:59:36 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 392638 X-Patchwork-Delegate: promsoft@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 650A71400B7 for ; Wed, 24 Sep 2014 05:09:18 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 92A3BA73EB; Tue, 23 Sep 2014 21:09:16 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 15R0K-hJRUXK; Tue, 23 Sep 2014 21:09:16 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 989B4A73F8; Tue, 23 Sep 2014 21:09:13 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 481E3A743C for ; Tue, 23 Sep 2014 21:09:09 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bla9-SEV67P5 for ; Tue, 23 Sep 2014 21:09:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yk0-f202.google.com (mail-yk0-f202.google.com [209.85.160.202]) by theia.denx.de (Postfix) with ESMTPS id 2D5C8A73EB for ; Tue, 23 Sep 2014 21:09:03 +0200 (CEST) Received: by mail-yk0-f202.google.com with SMTP id 19so209811ykq.5 for ; Tue, 23 Sep 2014 12:09:02 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=kEVyg6F6T9+MmGgZHU11EIbZqzZDwaCzUma06eCKvr0=; b=ETB11kN6079ugfJ4T++jmJ0y1ZmhcwXKo6qG6HOjaWP8VkjWC7ETnpi/IxUTCRB14N VnC0XZbvbuj1q36RQkc9pEMmZNmwdlKPP/jcICi3jbPkbqJgQAulac//NqDodWxUq0MV 3mlFBVF/CYVu2Xzk5pFz2OdUPvZUY+pIvfBZ5hEnBS5QsUTAJcwDbi72/uYnv7EQ6OU5 r7pNdlytincsQWLI6rh2HeA7n2AEwZzZO8a0967Fx/qQuFc1BKfiPNXIIzyhkBvd6HzF BwWx74KlHZgkGRoGpCUp7UHuvmInrynPwSLSRs+FxZ6ACvGs9FZJJ6TEOuC2L/3w/oT+ l3XA== X-Gm-Message-State: ALoCoQndEUpRATIWvhU9KyJU5dIe41SkQipF/GSf8ugD2ycMoXDwQmv2h8PcLEmjJzgWTYES3PCM X-Received: by 10.52.118.40 with SMTP id kj8mr1339209vdb.9.1411499342132; Tue, 23 Sep 2014 12:09:02 -0700 (PDT) Received: from corpmail-nozzle1-1.hot.corp.google.com ([100.108.1.104]) by gmr-mx.google.com with ESMTPS id f102si313983yhp.7.2014.09.23.12.09.01 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 23 Sep 2014 12:09:02 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by corpmail-nozzle1-1.hot.corp.google.com with ESMTP id rOklkONu.1; Tue, 23 Sep 2014 12:09:02 -0700 Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id B54D02210FD; Tue, 23 Sep 2014 13:00:22 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 23 Sep 2014 12:59:36 -0600 Message-Id: <1411498777-10833-15-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.1.0.rc2.206.gedb03e5 In-Reply-To: <1411498777-10833-1-git-send-email-sjg@chromium.org> References: <1411498777-10833-1-git-send-email-sjg@chromium.org> Cc: Chander Kashyap , Przemyslaw Marczak , Ajay Kumar Subject: [U-Boot] [PATCH v3 14/15] samsung: Enable device tree for smdkc100 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Change this board to add a device tree. Signed-off-by: Simon Glass --- Changes in v3: None Changes in v2: - Avoid using a common file, and just add a device tree - Fix device tree base addresses arch/arm/dts/Makefile | 1 + arch/arm/dts/s5pc1xx-smdkc100.dts | 29 +++++++++++++++++++++++++++++ include/configs/smdkc100.h | 5 +++++ 3 files changed, 35 insertions(+) create mode 100644 arch/arm/dts/s5pc1xx-smdkc100.dts diff --git a/arch/arm/dts/Makefile b/arch/arm/dts/Makefile index 076e0f7..c37580e 100644 --- a/arch/arm/dts/Makefile +++ b/arch/arm/dts/Makefile @@ -1,3 +1,4 @@ +dtb-$(CONFIG_S5PC100) += s5pc1xx-smdkc100.dtb dtb-$(CONFIG_S5PC110) += s5pc1xx-goni.dtb dtb-$(CONFIG_EXYNOS4) += exynos4210-origen.dtb \ exynos4210-smdkv310.dtb \ diff --git a/arch/arm/dts/s5pc1xx-smdkc100.dts b/arch/arm/dts/s5pc1xx-smdkc100.dts new file mode 100644 index 0000000..42754ce --- /dev/null +++ b/arch/arm/dts/s5pc1xx-smdkc100.dts @@ -0,0 +1,29 @@ +/* + * Samsung's Exynos4210-based SMDKV310 board device tree source + * + * Copyright (c) 2014 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +/dts-v1/; + +#include "skeleton.dtsi" + +/ { + model = "Samsung SMDKC100 based on S5PC100"; + compatible = "samsung,smdkc100", "samsung,s5pc100"; + + aliases { + serial0 = "/serial@ec000000"; + console = "/serial@ec000000"; + }; + + serial@ec000000 { + compatible = "samsung,exynos4210-uart"; + reg = <0xec000000 0x100>; + interrupts = <0 51 0>; + id = <0>; + }; + +}; diff --git a/include/configs/smdkc100.h b/include/configs/smdkc100.h index c9a2e15..1623963 100644 --- a/include/configs/smdkc100.h +++ b/include/configs/smdkc100.h @@ -217,4 +217,9 @@ #define CONFIG_ENV_SROM_BANK 3 /* Select SROM Bank-3 for Ethernet*/ #endif /* CONFIG_CMD_NET */ +#define CONFIG_DEFAULT_DEVICE_TREE s5pc1xx-smdkc100 +#define CONFIG_OF_CONTROL +#define CONFIG_OF_SEPARATE +#define CONFIG_OF_LIBFDT + #endif /* __CONFIG_H */