From patchwork Sat Oct 13 19:31:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Pali_Roh=C3=A1r?= X-Patchwork-Id: 191307 X-Patchwork-Delegate: marek.vasut@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 46AA82C0090 for ; Sun, 14 Oct 2012 06:38:06 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CDC324A023; Sat, 13 Oct 2012 21:38:04 +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 gtGZgTEhg7XM; Sat, 13 Oct 2012 21:38:04 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40BD54A01E; Sat, 13 Oct 2012 21:38:03 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BD904A01E for ; Sat, 13 Oct 2012 21:38:02 +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 K9qFqKl8+nS3 for ; Sat, 13 Oct 2012 21:38:01 +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-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) by theia.denx.de (Postfix) with ESMTPS id 9A2354A01C for ; Sat, 13 Oct 2012 21:38:00 +0200 (CEST) Received: by mail-wi0-f174.google.com with SMTP id hq7so495709wib.9 for ; Sat, 13 Oct 2012 12:37:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=kXRKgEyD9lSP98Ty45yFIqOg4uFHLD1zADIY2sS0Rkg=; b=n5VF4CjwDI+z6W5M24J8erOGYopl6qh+q6RdaaQT1OkE3qGSG4nqB0OvbK+LU5E0ly NxfdA9lCSUPMRRsDQUIiNcUgS3b5DfGn+fAjt3jOwGN6aIGhdKs4yXpRoRT+1Ci8aqhc uNGzlVeF7QXKdVocro+teMy46QN+kPWN+Rrt2v6v6XcybMVb0nXD6w2zuSHxQg077DyV bEi+nknYYD9Zu3L3q5/FM048QpP3eXaER97gW+SQ/PSoV+PK+5UlZFXaMogfmdbvS+le yRHadBwPGZmrusp1PCJBrORUivMpX1BgnCLOnfST+5iaPwwKqkd3HgU9vBm2kMVe2yF1 PBMQ== Received: by 10.180.90.78 with SMTP id bu14mr13596112wib.21.1350156766211; Sat, 13 Oct 2012 12:32:46 -0700 (PDT) Received: from Pali-EliteBook.kolej.mff.cuni.cz (pali.kolej.mff.cuni.cz. [78.128.193.202]) by mx.google.com with ESMTPS id ei1sm5293959wid.7.2012.10.13.12.32.44 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 13 Oct 2012 12:32:45 -0700 (PDT) From: =?UTF-8?q?Pali=20Roh=C3=A1r?= To: u-boot@lists.denx.de Date: Sat, 13 Oct 2012 21:31:56 +0200 Message-Id: <1350156720-13387-2-git-send-email-pali.rohar@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1350156720-13387-1-git-send-email-pali.rohar@gmail.com> References: <1327415291-13260-1-git-send-email-pali.rohar@gmail.com> <1350156720-13387-1-git-send-email-pali.rohar@gmail.com> MIME-Version: 1.0 Cc: =?UTF-8?q?Pali=20Roh=C3=A1r?= Subject: [U-Boot] [PATCH v3 1/5] arm bootm: Allow to pass board specified atags 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: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Pali Rohár --- arch/arm/include/asm/setup.h | 5 +++++ arch/arm/lib/bootm.c | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/arch/arm/include/asm/setup.h b/arch/arm/include/asm/setup.h index 89df4dc..78a7fac 100644 --- a/arch/arm/include/asm/setup.h +++ b/arch/arm/include/asm/setup.h @@ -267,3 +267,8 @@ struct meminfo { extern struct meminfo meminfo; #endif + +/* + * Board specified tags + */ +void setup_board_tags(struct tag **in_params); diff --git a/arch/arm/lib/bootm.c b/arch/arm/lib/bootm.c index a9070d5..c092bfa 100644 --- a/arch/arm/lib/bootm.c +++ b/arch/arm/lib/bootm.c @@ -266,6 +266,10 @@ static int create_fdt(bootm_headers_t *images) } #endif +void __setup_board_tags(void) {} +void setup_board_tags(struct tag **in_params) + __attribute__((weak, alias("__setup_board_tags"))); + /* Subcommand: PREP */ static void boot_prep_linux(bootm_headers_t *images) { @@ -307,6 +311,7 @@ static void boot_prep_linux(bootm_headers_t *images) setup_initrd_tag(gd->bd, images->rd_start, images->rd_end); #endif + setup_board_tags(¶ms); setup_end_tag(gd->bd); #else /* all tags */ printf("FDT and ATAGS support not compiled in - hanging\n");