From patchwork Mon Jun 13 05:33:03 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 634358 X-Patchwork-Delegate: sjg@chromium.org 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 3rShTs3vg1z9t0Y for ; Mon, 13 Jun 2016 15:41:21 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=SctP0y+6; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 18BB0B39F6; Mon, 13 Jun 2016 07:38:05 +0200 (CEST) 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 wlDyndHTEIBT; Mon, 13 Jun 2016 07:38:05 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1CB05B39F8; Mon, 13 Jun 2016 07:36:40 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 000CCB395B for ; Mon, 13 Jun 2016 07:35:50 +0200 (CEST) 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 Z8I7LqhFvYAF for ; Mon, 13 Jun 2016 07:35:50 +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-io0-f180.google.com (mail-io0-f180.google.com [209.85.223.180]) by theia.denx.de (Postfix) with ESMTPS id 2B8B4B383A for ; Mon, 13 Jun 2016 07:35:20 +0200 (CEST) Received: by mail-io0-f180.google.com with SMTP id o127so65105603iod.2 for ; Sun, 12 Jun 2016 22:35:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=x+0hs14Id/QwIRuxjaxFWntFSZxishpoqTGBU18t55M=; b=SctP0y+67/PPbwMytV2BSLCt+P7+GOAT4LPbF81pNp2MIEP3FLX9yJhooPYQVXwk2T RxUbPzqavMXW6467OG6Xk9/HwQZ2ODDaocdY/jnwde7WDLB6mmRLf84gHW5AzA7z1J6E L+SgSHNWBa6b0gupoGtpNpo8L+9Y1jp9gD73X6VCzl+6wGOZy96ngqjVowftBiha1C56 FFGgR+onZAY3biHRoHiV9+x8mVSI6e31We/gTNAkObBQCMI+7XWUnFAOesqz5u5TUujw D3T+gQGUUgZ7ZDj68GdsxtbPXWAPlwJ79KOl5drbcvh03p64v1UxEUPgNecbwqjcl9Y8 gMMQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=x+0hs14Id/QwIRuxjaxFWntFSZxishpoqTGBU18t55M=; b=OEMWLqL9ol3VB8sYBwIpdL20k8CFakyaz0YxADrgPUz23yhNVhXCP9/WlWz8oFTzMg DnOMsTMRgqAnr7G4MhYMbbg7LGkRoTdqspkTkpbl2iVYb2Kr1ecZaD7JO09N+BUlp0QG 9XlyG2v/bz58UfWfbrb/yjdVad9Be5QF1VpRo/DYwlPwZu7mLlaDcaTuSJlxbJnmjYJM /WdgUefITiA5poQ2x9Acwut9dM3hua4goxHfOY/ll6E4RVyzt+IPcGQWSZjDgkiE2RD0 mgpgfhVJ+bTpujIuI3H1VxRJE3hqsBuxNcTZkvH9FBrlDrlltSIxwdbtCibAUlJz0FGP neNw== X-Gm-Message-State: ALyK8tJaYKQtzogLRbFPsUjurU8N05ufZpwNC5k43xPqzG5nPC9ddPqeOaMJZ+eCIp7HXtQM X-Received: by 10.107.10.197 with SMTP id 66mr20589214iok.12.1465796119268; Sun, 12 Jun 2016 22:35:19 -0700 (PDT) Received: from kaki.bld.corp.google.com ([2620:0:1005:12:fc26:39ef:b365:2bcc]) by smtp.gmail.com with ESMTPSA id o134sm213381ith.2.2016.06.12.22.35.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jun 2016 22:35:16 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 91D43223F4F; Sun, 12 Jun 2016 23:35:11 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 12 Jun 2016 23:33:03 -0600 Message-Id: <1465796016-18375-23-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1465796016-18375-1-git-send-email-sjg@chromium.org> References: <1465796016-18375-1-git-send-email-sjg@chromium.org> Cc: Tom Rini , huang lin , Jeffy Chen Subject: [U-Boot] [PATCH v2 22/55] dm: Add a header that provides access to the of-platdata structs X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" This header can be included from anywhere, but will only pull in the of-platdata struct definitions when this feature is enabled (and only in SPL). Signed-off-by: Simon Glass --- Changes in v2: None include/dt-structs.h | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 include/dt-structs.h diff --git a/include/dt-structs.h b/include/dt-structs.h new file mode 100644 index 0000000..e13afa6 --- /dev/null +++ b/include/dt-structs.h @@ -0,0 +1,19 @@ +/* + * Copyright (c) 2016 Google, Inc + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef __DT_STTUCTS +#define __DT_STTUCTS + +/* These structures may only be used in SPL */ +#if CONFIG_IS_ENABLED(OF_PLATDATA) +struct phandle_2_cell { + const void *node; + int id; +}; +#include +#endif + +#endif