From patchwork Fri Nov 16 21:20:39 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 199765 X-Patchwork-Delegate: trini@ti.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 0F6F62C0089 for ; Sat, 17 Nov 2012 08:34:20 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B6E904A1C4; Fri, 16 Nov 2012 22:33:36 +0100 (CET) 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 uC5+GKjotm00; Fri, 16 Nov 2012 22:33:36 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B0A354A215; Fri, 16 Nov 2012 22:30:36 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 77AF14A17C for ; Fri, 16 Nov 2012 22:29:22 +0100 (CET) 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 R7Xu0n+geqSE for ; Fri, 16 Nov 2012 22:29:21 +0100 (CET) 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-ye0-f202.google.com (mail-ye0-f202.google.com [209.85.213.202]) by theia.denx.de (Postfix) with ESMTPS id 2511A4A1AB for ; Fri, 16 Nov 2012 22:28:52 +0100 (CET) Received: by mail-ye0-f202.google.com with SMTP id r11so352398yen.3 for ; Fri, 16 Nov 2012 13:28:52 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=SIE9obenqXNkweTxJ4np79YrijxzLAOTuTKhgJmMVLs=; b=LDShWLz0x9EYwqd1IYqJRJ8w4EXsGb9KYJpa5L5FmL5BPq3f6gaJRD4GXljaM2J4rF a1AHWDfBBmsfq+QEKPO8A5jegtKd+cDzv8TplaskLXMF+yTeRIzHzncq3cutLgSMC0dE d/6MgYwqscAC5pV95t9fQz0moYqBuTnx8Q8thIhBlmP6UdFoViAL4bBZl2CmlYNHeHRn ypjgnKVeLxQmSfII7T9V0WJVYtfm5kq6hF6kHGvu6ya5w1NgwoELRQqMdMh4OOUlPv8a 24eiUhZ/raht7WAmRhaYToMInISbBvfv9pv3GcA7BlgNq6lqzIrB4N9s7BugUxfb6Ymp 3Blg== Received: by 10.236.82.9 with SMTP id n9mr4169128yhe.24.1353101332861; Fri, 16 Nov 2012 13:28:52 -0800 (PST) Received: from wpzn3.hot.corp.google.com (216-239-44-65.google.com [216.239.44.65]) by gmr-mx.google.com with ESMTPS id i63si211368yhk.5.2012.11.16.13.28.52 (version=TLSv1/SSLv3 cipher=AES128-SHA); Fri, 16 Nov 2012 13:28:52 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by wpzn3.hot.corp.google.com (Postfix) with ESMTP id 9CCCC100048; Fri, 16 Nov 2012 13:28:52 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 71C491604D2; Fri, 16 Nov 2012 13:28:52 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 16 Nov 2012 13:20:39 -0800 Message-Id: <1353100842-20126-55-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1353100842-20126-1-git-send-email-sjg@chromium.org> References: <1353100842-20126-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQlwpPbvDo7kTBsRdE1QIbxMZtDyj486eOg7L2SyLWeauSiQv/YCWDee5vYo5fTukCfKkGI9rl3TNIdNUmdXH02SARNMJXXuwJlPhPC5AGuHW/eP2ElnkLWwK6+LWEBtv0EZX2DEKsmll+BmSX8pvmE/ndVNc7lO3XkXa4VNwkWdl21sEg/jCpR/gzjaOUlgHnHIQ7In Cc: Tom Rini Subject: [U-Boot] [PATCH 54/57] sandbox: Use generic global_data 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Move sandbox over to use generic global_data. Signed-off-by: Simon Glass --- arch/sandbox/include/asm/global_data.h | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/sandbox/include/asm/global_data.h b/arch/sandbox/include/asm/global_data.h index 3ba7ed5..3bedf77 100644 --- a/arch/sandbox/include/asm/global_data.h +++ b/arch/sandbox/include/asm/global_data.h @@ -31,30 +31,7 @@ struct arch_global_data { u8 *ram_buf; /* emulated RAM buffer */ }; -/* - * The following data structure is placed in some memory wich is - * available very early after boot (like DPRAM on MPC8xx/MPC82xx, or - * some locked parts of the data cache) to allow for a minimum set of - * global variables during system initialization (until we have set - * up the memory controller so that we can use RAM). - */ - -typedef struct global_data { - bd_t *bd; - unsigned long flags; - unsigned int baudrate; - unsigned long have_console; /* serial_init() was called */ - unsigned long env_addr; /* Address of Environment struct */ - unsigned long env_valid; /* Checksum of Environment valid? */ - unsigned long fb_base; /* base address of frame buffer */ - phys_size_t ram_size; /* RAM size */ - const void *fdt_blob; /* Our device tree, NULL if none */ - void **jt; /* jump table */ - char env_buf[32]; /* buffer for getenv() before reloc. */ - struct arch_global_data arch; /* architecture-specific data */ -} gd_t; - -#include +#include #define DECLARE_GLOBAL_DATA_PTR extern gd_t *gd