From patchwork Mon Jun 13 05:33:07 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 634385 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 3rShns0wvbz9sD5 for ; Mon, 13 Jun 2016 15:55:13 +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=lzgUN5cw; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E0A8BA785D; Mon, 13 Jun 2016 07:53:59 +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 KBhIQfaycrE7; Mon, 13 Jun 2016 07:53:59 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 17A49A77B0; Mon, 13 Jun 2016 07:53:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 75A26A77F1 for ; Mon, 13 Jun 2016 07:52:37 +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 oZEcMwc5X9zD for ; Mon, 13 Jun 2016 07:52:37 +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-f171.google.com (mail-io0-f171.google.com [209.85.223.171]) by theia.denx.de (Postfix) with ESMTPS id 166A5A780C for ; Mon, 13 Jun 2016 07:52:25 +0200 (CEST) Received: by mail-io0-f171.google.com with SMTP id d2so24246370iof.0 for ; Sun, 12 Jun 2016 22:52:25 -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=/1Rn/KWO0z6znFdEAYt75Yto3NXO4E1V0p2Wdyb+c68=; b=lzgUN5cwLNi3i25d3fgrJTnNiO/0E6IeK/m9GQr8gzUow1B4DiglpfGnMt+Bs2Hu+C LZpHueM9GzE40bFbEJ3sM/BzwZvXtYPj1a00UG4UhusG+dT4E8q9sInROENuQOj7A6iM lvdqi5M6U/Gv4GsxnctxFWAAs9YakosVEp5MMigSaLA8H96apVug+Lzc8uQHcS9VMKpw +if2ZS2Ic0kbZq9TUr9rAPKm04aYeCZ/MvfFnD6Tgx4xyWT0+caVXLTu2iYG24s7Fzim KIcDrYVS8RyYlA6ljDbf+BLNNOpKEcYw32JatxRHrXFdl/rYo+r2rbmKK78aWs1Zaz8P aqsw== 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=/1Rn/KWO0z6znFdEAYt75Yto3NXO4E1V0p2Wdyb+c68=; b=K6mrzF2VcadSaNRcU1BeBTWfZj6ikgEgQCQVoIcCFejdRwqS7RVxFeSpTXg5O2SwTd LxQqTBG+4DiturogpyNGTSXdVgdAnbHePtz/Fi8ZxVbxevk0nVZjlB6A2GylIZHtjWL/ 6OqKcnaDcA08+7r7D1nZzVdu7HeQ+gE+XG68+w/6AEC99fhQK7QA7XoE7d+PZUfwKiHt 1K3y+5rwPLFKUG8Cx5/JPF+mBoEHnEJXYev/dqHQPrset1XboLJrxU9bVBLIwpXHpz2U FvbGl3w7PC+GAVSySketvqhFSJjS3p5IT+lV5BpQ2yTKx9GWFdjTa2Q28F5us5Ft6Mpo 2EJw== X-Gm-Message-State: ALyK8tISiaUuZIXbER9CpqYYjlxhWbpqsmoPovpH7dZdQFEXXe+sVBFXzoggGWdfqv6fYKEX X-Received: by 10.107.170.170 with SMTP id g42mr21404348ioj.44.1465797144268; Sun, 12 Jun 2016 22:52:24 -0700 (PDT) Received: from kaki.bld.corp.google.com ([100.100.202.57]) by smtp.gmail.com with ESMTPSA id e126sm5699110ith.21.2016.06.12.22.52.20 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 12 Jun 2016 22:52:23 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id 0A19D223F70; Sun, 12 Jun 2016 23:35:12 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sun, 12 Jun 2016 23:33:07 -0600 Message-Id: <1465796016-18375-27-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 26/55] dm: Add an option to enable the of-platdata feature 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" Add a Kconfig option to enable this feature. Signed-off-by: Simon Glass --- Changes in v2: None dts/Kconfig | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/dts/Kconfig b/dts/Kconfig index c56c129..4b7d8b1 100644 --- a/dts/Kconfig +++ b/dts/Kconfig @@ -85,4 +85,25 @@ config OF_SPL_REMOVE_PROPS can be discarded. This option defines the list of properties to discard. +config SPL_OF_PLATDATA + bool "Generate platform data for use in SPL" + depends on SPL_OF_CONTROL + help + For very constrained SPL environments the overhead of decoding + device tree nodes and converting their contents into platform data + is too large. This overhead includes libfdt code as well as the + device tree contents itself. The latter is fairly compact, but the + former can add 3KB or more to a Thumb 2 Image. + + This option enables generation of platform data from the device + tree as C code. This code creates devices using U_BOOT_DEVICE() + declarations. The benefit is that it allows driver code to access + the platform data directly in C structures, avoidin the libfdt + overhead. + + This option works by generating C structure declarations for each + compatible string, then adding platform data and U_BOOT_DEVICE + declarations for each node. See README.platdata for more + information. + endmenu