From patchwork Fri May 11 16:20:25 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Golaszewski X-Patchwork-Id: 10394691 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 38D3560236 for ; Fri, 11 May 2018 16:28:00 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C1B90284C4 for ; Fri, 11 May 2018 16:27:59 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B23F628571; Fri, 11 May 2018 16:27:59 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 06C71284C4 for ; Fri, 11 May 2018 16:27:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=tvSIBMeDFjvWQUMwpyioQP+V8Icz9pQ3TtX6Z36fwLg=; b=GPb0bZ4ZjrDgHx+mQKdoUr37Ph z3DkkkXSgpNi3960HxknKPmtJgHzCdVYckL/AzacDDa+UpFwp732/QG7tO4Tg3DJP7RWuF6YdjQ88 PYY5AYNG9WHsXoxQVBh4xIpn/LBRo2qROkrCvg2GrzTjYipOvGyuNgPVVoVRChHDyXdZQMi+CkwVj 33WQ4olqyW5fdtpovn/G9cJxXziO9GmvDau37orX64kgAvZgPGJ+kKu7dMA+0jxO4kJnmGiHSTQns yDz+uqdKPfIeVryrqKsny/kSYg+EyXIw0tGQf4Crtq0RXYz/gESlExXX2VUTf11mQussIYQZSgKSg Yr9AA55g==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHAtX-0006Yk-SH; Fri, 11 May 2018 16:27:47 +0000 Received: from mail-wm0-x241.google.com ([2a00:1450:400c:c09::241]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fHAnn-0002iG-3t for linux-arm-kernel@lists.infradead.org; Fri, 11 May 2018 16:21:52 +0000 Received: by mail-wm0-x241.google.com with SMTP id f8-v6so4242999wmc.4 for ; Fri, 11 May 2018 09:21:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bgdev-pl.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=c/59s2btCAdE6ZmRJ76wTvr8mQqhLRJs3ON/VVisMIY=; b=lO6zITSQAv8S/wgalDsGwUm5Z2PrQQO0ZP/4idJZVhpHsW+ktbnPkGfzq9YFYoaOnR n8eTP0A4cRcXXaAcpLr++6OAw1lVe7VHvKi6w54qZCpKnxa/dTDFlWo+P+blao51rOuK 9GM4ZlSIt9yIv5GdNEMXF5CMTbPjeAKd9okJ8TKd3tYDFRLZErr2ul281qC4IkHEeZT6 0jE72Hdj5McAfXzAMVeuWFoHP5OkaxJgUXJRE1RbJBklaiNBBDFKCdhV2EnAnLLHQo2k yOYnd8D7Jxcw4WGhj0vXOtyoeA/Fbjxy7uINUia9NFTEzioLFmjFL7Pzf2P6qD8eYtI2 XPtQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=c/59s2btCAdE6ZmRJ76wTvr8mQqhLRJs3ON/VVisMIY=; b=rE1oh/rmajL3H2IBt9q06SjNtqNgA50zvs2+M+oxegOsvBkfXwsIjcPrQOQrPL68uz Sp+pQGXyrHeMTcoyXvVpVNweqrdeiZoZGZ3Q2GJ70zUyWmfFWjKXsl9Z0FLxbIJ8uzR7 tBYFJHeChwf131rkIe+GT2nlayMQCvTCMme7wNydP9tWyzjpe7L5340jELJIPRdpz+BR /6zWkLwWTXWX6ZkvEvisUUw4SmBK0nKBuItqf8DIstX+cl9e8BoWSGMmW0SX4QZFsAbF 6zl4ICSRnBfeG/7AS7oSG+m08nN5hQMF3Sk8dbSx1EgCF98wCvXYTkkMShS38YO7xCGT LSQQ== X-Gm-Message-State: ALKqPwekXbtVeMK3nPnR3janaXFJni8PqkBUE3N2pEwWMlzke+5jIvzq ydC7VvXB33h/6yRCmkHggjuMcA== X-Google-Smtp-Source: AB8JxZoWdZyWR/ENI6FhOVdOQErUKvho9si99/cpZD3QUfOkF5HbamTZI5bLtf0MiJ2rthMPK7RC5Q== X-Received: by 2002:a1c:83cc:: with SMTP id f195-v6mr2537663wmd.27.1526055702643; Fri, 11 May 2018 09:21:42 -0700 (PDT) Received: from brgl-bgdev.baylibre.local ([90.63.244.31]) by smtp.gmail.com with ESMTPSA id q17-v6sm1429523wmf.3.2018.05.11.09.21.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 May 2018 09:21:42 -0700 (PDT) From: Bartosz Golaszewski To: Sekhar Nori , Kevin Hilman , David Lechner , Michael Turquette , Stephen Boyd , Arnd Bergmann , Greg Kroah-Hartman , Mark Rutland , Yoshinori Sato , Rich Felker , Andy Shevchenko , Marc Zyngier , "Rafael J . Wysocki" , Peter Rosin , Jiri Slaby , Thomas Gleixner , Daniel Lezcano , Geert Uytterhoeven , Magnus Damm , Johan Hovold , Rob Herring , Frank Rowand Subject: [PATCH 09/12] platform/early: add an init section for early driver data Date: Fri, 11 May 2018 18:20:25 +0200 Message-Id: <20180511162028.20616-10-brgl@bgdev.pl> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180511162028.20616-1-brgl@bgdev.pl> References: <20180511162028.20616-1-brgl@bgdev.pl> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180511_092151_206800_E0771A59 X-CRM114-Status: GOOD ( 12.98 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arch@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Bartosz Golaszewski MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Bartosz Golaszewski Provide a separate section in which pointers to early platform driver structs will be stored. Signed-off-by: Bartosz Golaszewski --- include/asm-generic/vmlinux.lds.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index af240573e482..6b5205f30ef2 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -214,6 +214,16 @@ #define CPU_METHOD_OF_TABLES() OF_TABLE(CONFIG_SMP, cpu_method) #define CPUIDLE_METHOD_OF_TABLES() OF_TABLE(CONFIG_CPU_IDLE, cpuidle_method) +#ifdef CONFIG_EARLY_PLATFORM +#define EARLY_PLATFORM_DRIVERS_TABLE() \ + . = ALIGN(8); \ + VMLINUX_SYMBOL(__early_platform_drivers_table) = .; \ + KEEP(*(__early_platform_drivers_table)) \ + VMLINUX_SYMBOL(__early_platform_drivers_table_end) = .; +#else +#define EARLY_PLATFORM_DRIVERS_TABLE() +#endif + #ifdef CONFIG_ACPI #define ACPI_PROBE_TABLE(name) \ . = ALIGN(8); \ @@ -593,6 +603,7 @@ RESERVEDMEM_OF_TABLES() \ TIMER_OF_TABLES() \ IOMMU_OF_TABLES() \ + EARLY_PLATFORM_DRIVERS_TABLE() \ CPU_METHOD_OF_TABLES() \ CPUIDLE_METHOD_OF_TABLES() \ KERNEL_DTB() \