From patchwork Tue May 7 19:41:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 242442 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 02A0F2C0171 for ; Wed, 8 May 2013 05:44:06 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4E5124A1D5; Tue, 7 May 2013 21:43:55 +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 qxxQxPsbOiK4; Tue, 7 May 2013 21:43:55 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 620494A1C2; Tue, 7 May 2013 21:43:12 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8B06C4A1C6 for ; Tue, 7 May 2013 21:43:01 +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 r7Jov5cxE7cU for ; Tue, 7 May 2013 21:42:56 +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-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id 855F14A1BE for ; Tue, 7 May 2013 21:42:41 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id t59so99965yho.5 for ; Tue, 07 May 2013 12:42:40 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references:x-gm-message-state; bh=0WccP3b3w+JTBO2UsNNtK9JjUGn2nnP36INYoNzURzM=; b=AsqifOHNAF18yypuPkkn2kOivKM1PCpkOAzmyhh9lmATG4XEUC9UNP0NHqSqQUTkzH MbfHJEB43Gg+G9i7CNYXncyquWTL+eLJX/a27wCoRRKOEIW5IVMsmgcbwNPMZdx04fGk 2N8/9hfPtvfOF/fY0LyhTvpjLOkfrWufb5EFuP/9TxB85OV4xXMX+vWtuovPytLJlYXF FTZ9IpHET7799c86cey75giNe7/adUY16hQrfNz+srwHTBrh3vnmFyTi8wa/Oyyg8hKR zRZW3OiM4btZ3QOTJqa+onsZFeDnEd34+mmFMKbxKIyn432ooxePMuNms4CwGSWBOcQ5 /WKg== X-Received: by 10.236.72.129 with SMTP id t1mr2086946yhd.45.1367955760043; Tue, 07 May 2013 12:42:40 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id h2si1675872yhj.2.2013.05.07.12.42.40 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Tue, 07 May 2013 12:42:40 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.83.1]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id DF8B331C15F; Tue, 7 May 2013 12:42:39 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 8EF941607DD; Tue, 7 May 2013 12:42:39 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 7 May 2013 12:41:59 -0700 Message-Id: <1367955730-31902-4-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1367955730-31902-1-git-send-email-sjg@chromium.org> References: <1367955730-31902-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQnfhNAaF/sD3DBesX6pVwQmOlizdCg1taejVigdOTtmQfeSO0nwXKNEml88WESzlfS4xfUMZmTruedbOsEU6VVh7B1OudYqFjT6Ul+gxoag01li7CoTng/Ho1HHZawT4V2eP8M1JF/bUsq8SsK+6H6KVokX8RlJ3zbVhm5LETEXgIN6XKnSzfy75K7hcJTBNvjVVkBo Cc: Tom Rini , u-boot-review@google.com Subject: [U-Boot] [RFC PATCH v2 03/14] sandbox: config: Don't use 64-bit physical memory 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 Sandbox uses an emulated memory map which is quite small. We don't need the CONFIG_PHYS_64BIT option since we can address memory with a 32-bit offset into our ram_buf. Adjust the phys_addr_t and phys_size_t types accordingly. Signed-off-by: Simon Glass --- Changes in v2: None arch/sandbox/include/asm/types.h | 4 ++-- include/configs/sandbox.h | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/arch/sandbox/include/asm/types.h b/arch/sandbox/include/asm/types.h index 2316c2d..07c2986 100644 --- a/arch/sandbox/include/asm/types.h +++ b/arch/sandbox/include/asm/types.h @@ -64,8 +64,8 @@ typedef unsigned long long u64; #define BITS_PER_LONG CONFIG_SANDBOX_BITS_PER_LONG typedef unsigned long dma_addr_t; -typedef unsigned long phys_addr_t; -typedef unsigned long phys_size_t; +typedef u32 phys_addr_t; +typedef u32 phys_size_t; #endif /* __KERNEL__ */ diff --git a/include/configs/sandbox.h b/include/configs/sandbox.h index 788207d..78eda90 100644 --- a/include/configs/sandbox.h +++ b/include/configs/sandbox.h @@ -73,7 +73,6 @@ #define CONFIG_SYS_LOAD_ADDR 0x00000000 #define CONFIG_SYS_MEMTEST_START 0x00100000 #define CONFIG_SYS_MEMTEST_END (CONFIG_SYS_MEMTEST_START + 0x1000) -#define CONFIG_PHYS_64BIT #define CONFIG_SYS_FDT_LOAD_ADDR 0x1000000 /* Size of our emulated memory */