From patchwork Fri Dec 14 06:49:20 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 206340 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 D0EA12C008C for ; Fri, 14 Dec 2012 18:01:46 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AA6834A226; Fri, 14 Dec 2012 08:01:04 +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 niJ3vYXiPga8; Fri, 14 Dec 2012 08:01:04 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 35CBD4A227; Fri, 14 Dec 2012 07:55:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id C78754A12B for ; Fri, 14 Dec 2012 07:53:32 +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 FnF-Hg-OetjN for ; Fri, 14 Dec 2012 07:53:31 +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-vb0-f74.google.com (mail-vb0-f74.google.com [209.85.212.74]) by theia.denx.de (Postfix) with ESMTPS id 02CF24A15B for ; Fri, 14 Dec 2012 07:50:25 +0100 (CET) Received: by mail-vb0-f74.google.com with SMTP id s24so311455vbi.3 for ; Thu, 13 Dec 2012 22:50:23 -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=rQDs6kqkREGs8DenKFPj+1Kln32sCvk01P65wDOXagw=; b=nIlmVKFmvx+mbxp1Tre42fKA3dgf4gdDR0PlxkjeLxaDogVkDDlghCGSe76IulrfvD jrsED4xJKbYs0G/Ua9lQPp8A2p+cw3x4VVscbb2k6eNwLNVKS4BflCxv+XNc6GunQujq DW93A0Z8c0HfVFThuickZ+MBL3w+2rZcHVvZGEeXAGyWFwDHAWN/5POAKG/oZofIQDRP nQKAy7gD2JWQ9aCeGqyJ7Z2X+lbA21SMnSZi3kK36gncTD29Nu3oZfIgD/BlLy0qtWSt qoxWkcqqqAUzLXQqhKVJdA822zbOliutposZDSX/RO0qNlAlM73QleJxSWO85AGnsIUz cfhA== Received: by 10.236.69.101 with SMTP id m65mr2289809yhd.27.1355467823854; Thu, 13 Dec 2012 22:50:23 -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 i63si346998yhk.5.2012.12.13.22.50.23 (version=TLSv1/SSLv3 cipher=AES128-SHA); Thu, 13 Dec 2012 22:50:23 -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 AD2FC100047; Thu, 13 Dec 2012 22:50:23 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 8EAB3160878; Thu, 13 Dec 2012 22:50:23 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Thu, 13 Dec 2012 22:49:20 -0800 Message-Id: <1355467767-29575-52-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: ALoCoQn+YflCsYRGxq0NQ6kQgfMsB/nxUE+Z1gLTuqcW2Mzgb5Rz/pmkmvduA3DpAsWzuNHCn2mh+j8lD20fO1bL1Egrvh4+xX1+XGnhlLelPBNSajLH/0za3rn1uf9IyMvrozIK7djjHK36zVQP+e3Wvt3UybU4LeRTjxwHvuNu9Hu80Vn9n347AFu5klf4zfXrA+rN6qpk Cc: Tom Rini , Macpaul Lin Subject: [U-Boot] [PATCH v2 51/58] nds32: 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 nds32 over to use generic global_data. Signed-off-by: Simon Glass --- Changes in v2: None arch/nds32/include/asm/global_data.h | 32 +------------------------------- 1 files changed, 1 insertions(+), 31 deletions(-) diff --git a/arch/nds32/include/asm/global_data.h b/arch/nds32/include/asm/global_data.h index e693b01..4927d52 100644 --- a/arch/nds32/include/asm/global_data.h +++ b/arch/nds32/include/asm/global_data.h @@ -38,37 +38,7 @@ struct arch_global_data { }; -/* - * 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 reloc_off; /* Relocation Offset */ - 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 */ - - unsigned long relocaddr; /* Start address of U-Boot in RAM */ - phys_size_t ram_size; /* RAM size */ - unsigned long mon_len; /* monitor len */ - unsigned long irq_sp; /* irq stack pointer */ - unsigned long start_addr_sp; /* start_addr_stackpointer */ - - 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 #ifdef CONFIG_GLOBAL_DATA_NOT_REG10 extern volatile gd_t g_gd;