From patchwork Fri Nov 16 21:20:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 199758 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 97CF72C0090 for ; Sat, 17 Nov 2012 08:33:10 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3121B4A1A0; Fri, 16 Nov 2012 22:32:45 +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 AccK5iYSHsCA; Fri, 16 Nov 2012 22:32:44 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7E9EE4A1FB; Fri, 16 Nov 2012 22:30:26 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 922654A17C for ; Fri, 16 Nov 2012 22:29:16 +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 TyG5Moaj8xVo for ; Fri, 16 Nov 2012 22:29:15 +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 C5B604A1A0 for ; Fri, 16 Nov 2012 22:28:52 +0100 (CET) Received: by mail-ye0-f202.google.com with SMTP id r11so352399yen.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=JpTzpQgIVFuAZygJjHOH2jBLcXTMjhVqvbM7vxgYh40=; b=NK0wcGsfgzjvdfXfFQEWCXuTxtVwXaxAM0+rhhVVImjSrhGMr4cdbRkRH+1MAxRZDj 2ODlbmfLpocRSS9PGVe62VXGrPBjXKr46/Yrw94w6vfRGT1OCbSPEdJAJMVY+Dzhuqu2 93Q07oP1FJKMyV+wII9c+K5iLFq56kdq02M4xq3lfnCP0hz8g3FCglJY6EbDJNba+Vg1 C8epVptwNj94OmsVJH8mmb45COo2FoByoaj1tceIMmJWY6hjaKlt/B/f3g+zxTw8sKTi nISd+NUDuHiG1IR2KOQ+ZgDdXcl8A6xMtUFfCwcxo6yYkfKcO3WYXAp+k86o69/RD/JW 0f/Q== Received: by 10.100.243.11 with SMTP id q11mr643561anh.2.1353101332531; 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 l20si212476yhi.2.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 615D6100049; Fri, 16 Nov 2012 13:28:52 -0800 (PST) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 4284E16086A; Fri, 16 Nov 2012 13:28:52 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Date: Fri, 16 Nov 2012 13:20:37 -0800 Message-Id: <1353100842-20126-53-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: ALoCoQlRv8sfoiQ1EXA3FgWAzAtG6JgifLeA++1DbRFwu/9YNATSbQtCizXh7C/DRmfkoTb1FIIn/nbLW+fPOWYN59+LHmadCm3LG2q5fTlQxIbeSjNhggSNc7DL+I29ZFr/BJXll7LAodpYjfTvJOIWsXEUEael+WJ8c1KU8q8BFQYzI0kCqbiFcofHD5oaRlqTopklYhUj Cc: Tom Rini Subject: [U-Boot] [PATCH 52/57] openrisc: 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 openrisc over to use generic global_data. Signed-off-by: Simon Glass --- arch/openrisc/include/asm/global_data.h | 25 +------------------------ 1 files changed, 1 insertions(+), 24 deletions(-) diff --git a/arch/openrisc/include/asm/global_data.h b/arch/openrisc/include/asm/global_data.h index b478afa..d267ccd 100644 --- a/arch/openrisc/include/asm/global_data.h +++ b/arch/openrisc/include/asm/global_data.h @@ -29,30 +29,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 cpu_clk; /* CPU clock in Hz! */ - unsigned long have_console; /* serial_init() was called */ - phys_size_t ram_size; /* RAM size */ - 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 */ - 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 /* OR32 GCC already has r10 set as fixed-use */ #define DECLARE_GLOBAL_DATA_PTR register volatile gd_t *gd asm ("r10")