From patchwork Sun Oct 18 01:41:23 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 531909 X-Patchwork-Delegate: monstr@monstr.eu 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 CB7FB1402D5 for ; Sun, 18 Oct 2015 12:42:26 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b=SsQJE8dQ; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D3D754B6D1; Sun, 18 Oct 2015 03:42:18 +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 bWv9rbFoEirw; Sun, 18 Oct 2015 03:42:18 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 5F9C74B6A8; Sun, 18 Oct 2015 03:41:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CD0EC4B69E for ; Sun, 18 Oct 2015 03:41:39 +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 u2W31XcctnOv for ; Sun, 18 Oct 2015 03:41:39 +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-ig0-f171.google.com (mail-ig0-f171.google.com [209.85.213.171]) by theia.denx.de (Postfix) with ESMTPS id 5866B4B698 for ; Sun, 18 Oct 2015 03:41:36 +0200 (CEST) Received: by igbni9 with SMTP id ni9so35417433igb.1 for ; Sat, 17 Oct 2015 18:41:36 -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=Yy7MrbqF69rQwTGUJZ+sH5IuwmRpI8LrVjV66cpWZEk=; b=SsQJE8dQueMBSyCHIe0H1A4/gDLbopECB9097H9cWHg2re4hpTqawLiV44RiFBKbw0 cjnwcSDsaid4/80pCNt76itNrg/hJGS4bdXPHBiXdbq41k8yPY/rtGyT9ugbX2vSycl3 LRybplKjFj9SuawQrBQLKhyjdVQHn/V+AfqzsaMStSALDoJSELz2RRzPhe3v8eJXSOOy CK8MA3MY3c1Z+W3tTrw32EV2q7xTTqj+OjL+ybpkQLwf/aA983WqqRsMXLcOQbdJmvGU vMhLeIPCq6IbOXxy1BEdmcJvJDviC5jlc3qVPXRidXRiDhI1xzuGrMNGhyqmwY+gLWuF +HAw== 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=Yy7MrbqF69rQwTGUJZ+sH5IuwmRpI8LrVjV66cpWZEk=; b=W148B8ZmqnkbNwdvTrtzxjxjf4MHaFWtSsOjTwGZatOVmLZYFVKfzVTLj5y2jJcqCw J5mK8tGLJ6QLBvAMfRr3NYpjSP4w3/N6q0F4I5EzQfYFg/gYYqxLTkHAsY4laDyguE/x wEYYceZ5i6EETL9rXSjQjF2TCh+Ksnh0L42vJnpUlDC2/k4kevc7Uxy4GhrFODIX6Uho qGaUl4DlLOg96B9V3zqPPgeMtQIot26utwYV5fGS1cAk2xmZq/443iDWYGPZqWP6Cq+Z 3LtdISNrThutRO2t4pnVRyr9yl/KiVMhgZ6YLXFc8pmfTirjwbj+x0DKQXSBWePqlJMM 4bTw== X-Gm-Message-State: ALoCoQlgEv8UTtMO3KnwQQdI5Y/c6+w1XIiop/K8X4zFI32J/Id1GluBMCqDNDvaNnb5erHlNIbx X-Received: by 10.50.49.46 with SMTP id r14mr12383941ign.71.1445132495791; Sat, 17 Oct 2015 18:41:35 -0700 (PDT) Received: from kaki.bld.corp.google.com ([172.29.216.32]) by smtp.gmail.com with ESMTPSA id d82sm11427935iod.43.2015.10.17.18.41.33 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 17 Oct 2015 18:41:35 -0700 (PDT) Received: by kaki.bld.corp.google.com (Postfix, from userid 121222) id A07B32233F1; Sat, 17 Oct 2015 19:41:32 -0600 (MDT) From: Simon Glass To: U-Boot Mailing List Date: Sat, 17 Oct 2015 19:41:23 -0600 Message-Id: <1445132487-13172-11-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 2.6.0.rc2.230.g3dd15c0 In-Reply-To: <1445132487-13172-1-git-send-email-sjg@chromium.org> References: <1445132487-13172-1-git-send-email-sjg@chromium.org> Subject: [U-Boot] [PATCH v2 10/14] dm: arm: zynq: Enable device tree control in SPL 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" Move to using device tree control in SPL so that we can use the same driver code in both SPL and U-Boot proper. Signed-off-by: Simon Glass --- Changes in v2: None arch/arm/Kconfig | 3 +++ arch/arm/mach-zynq/u-boot-spl.lds | 10 +++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/arch/arm/Kconfig b/arch/arm/Kconfig index 7981355..1d85240 100644 --- a/arch/arm/Kconfig +++ b/arch/arm/Kconfig @@ -547,9 +547,12 @@ config ARCH_ZYNQ select CPU_V7 select SUPPORT_SPL select OF_CONTROL + select SPL_OF_CONTROL select DM + select SPL_DM select DM_SPI select DM_SPI_FLASH + select SPL_SEPARATE_BSS config ARCH_ZYNQMP bool "Support Xilinx ZynqMP Platform" diff --git a/arch/arm/mach-zynq/u-boot-spl.lds b/arch/arm/mach-zynq/u-boot-spl.lds index 0f2f756..ecdf6a0 100644 --- a/arch/arm/mach-zynq/u-boot-spl.lds +++ b/arch/arm/mach-zynq/u-boot-spl.lds @@ -38,10 +38,18 @@ SECTIONS } > .sram . = ALIGN(4); +#ifdef CONFIG_SPL_DM + .u_boot_list : { + KEEP(*(SORT(.u_boot_list_*_driver_*))); + KEEP(*(SORT(.u_boot_list_*_uclass_*))); + } > .sram + + . = ALIGN(4); +#endif . = .; - __image_copy_end = .; + _image_binary_end = .; _end = .;