From patchwork Fri Dec 14 06:49:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 206326 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 E55F32C008C for ; Fri, 14 Dec 2012 17:59:09 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id E6D454A1DB; Fri, 14 Dec 2012 07:58:52 +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 bXmIe6EU8zMF; Fri, 14 Dec 2012 07:58:52 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id CC3104A193; Fri, 14 Dec 2012 07:55:20 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8D58B4A136 for ; Fri, 14 Dec 2012 07:53: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 6i1oElSz8AEv for ; Fri, 14 Dec 2012 07:53: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-ee0-f74.google.com (mail-ee0-f74.google.com [74.125.83.74]) by theia.denx.de (Postfix) with ESMTPS id C5C194A146 for ; Fri, 14 Dec 2012 07:50:25 +0100 (CET) Received: by mail-ee0-f74.google.com with SMTP id t10so156590eei.3 for ; Thu, 13 Dec 2012 22:50:24 -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=i6AA6gYdWze/LjpzhSp+QdQYEBApCWgT+4LveJyO7OQ=; b=QsPt+s3oY4uxLvZEDY5FX6dM3/sAtayjdomxPM0oOy5JP6pB2d2KMhplyROEw2xwgW oART14jk6V4Tv3+3qnKEvXFD0YdwWmKMr+WXPnVRs+M4P/hyJiPvGDJXBtq5fWAi4NMO OvJEFkQZHMRT+ymN7vh2i23t2G0HSQZp83AQ+tMZDPN9sUxOA0IqKGlHWGCq/FwwCuFU UUV1W9CTOOTx01L165mJ44IgqOGt7V4+etxgg0fhObuyoDfYcb5Lv4wXDWpz35w+bluu 1JAcq8PvorPnYW76KThjjzpVatZvlCnLGHzNG2BRUfMLOYQ78HL+Wd8MBMmpPiR0RWaA PtRA== Received: by 10.14.180.2 with SMTP id i2mr4627975eem.1.1355467824556; Thu, 13 Dec 2012 22:50:24 -0800 (PST) Received: from hpza10.eem.corp.google.com ([74.125.121.33]) by gmr-mx.google.com with ESMTPS id g9si962982eeo.1.2012.12.13.22.50.24 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 13 Dec 2012 22:50:24 -0800 (PST) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.73.79]) by hpza10.eem.corp.google.com (Postfix) with ESMTP id 31FDF20004E; Thu, 13 Dec 2012 22:50:24 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id E6D0B160878; Thu, 13 Dec 2012 22:50:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 13 Dec 2012 22:49:24 -0800 Message-Id: <1355467767-29575-56-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.7.7.3 In-Reply-To: <1355467767-29575-1-git-send-email-sjg@chromium.org> References: <1355467767-29575-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQm5y0MqpAKhYPITvuUGZtq4W5L9JavX1NGyYFOtAEh/hFSCK3Ycmmmv0UfZ+Qjoka59DvDRO6atciCepwgtGN2wi126z7GkWKeO2K5lWrlW+I08bcZRRafjr1B6eBAMcxaQPHEL5aU1tWUnEQn8i7cwQUcXJGCwxONmzDIt0rPZP59/9xt7s87Z117Wf0V0kMHjbMKf Cc: Tom Rini Subject: [U-Boot] [PATCH v2 55/58] 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 --- Changes in v2: None 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