From patchwork Sat Jan 9 16:32:46 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Schwierzeck X-Patchwork-Id: 565189 X-Patchwork-Delegate: daniel.schwierzeck@googlemail.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 C3C9C140779 for ; Sun, 10 Jan 2016 03:33:53 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b=JtkgNmQu; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1660C4BAA4; Sat, 9 Jan 2016 17:33:46 +0100 (CET) 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 7fQdwb_EL1Oi; Sat, 9 Jan 2016 17:33:45 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 323054BA98; Sat, 9 Jan 2016 17:33:32 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 77F7A4BA52 for ; Sat, 9 Jan 2016 17:33:10 +0100 (CET) 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 MOB8qCcAL1Qq for ; Sat, 9 Jan 2016 17:33:10 +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-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by theia.denx.de (Postfix) with ESMTPS id 094F24B9EF for ; Sat, 9 Jan 2016 17:33:08 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id b14so20144177wmb.1 for ; Sat, 09 Jan 2016 08:33:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:subject:date:message-id:in-reply-to:references; bh=B8+W/CIM6Vn4gRQuJcn5Aln6t4Ksx38hHV1Lg0XSDl4=; b=JtkgNmQugiRHIpI3iZhHLJEmRpmNrFY4vMH9BR+NywOQ27CUil0teDxdySAxzMBzN+ luPZvyyRoIHq/77k5DIbrBig5N1MkyH88gTJPnlUmYQuyOCmRbsxy5lZVAHXp+iv857/ yegfLEtdEDy9dpMvMmV8nPaDJ8wGN/5YZ6Cgsdtq8rmxW9znECrulqOyRxreuw9QuXQ0 Qxr60ZY4JPnDSRo49J8pObBeJRHTO4S2/yuZu/K7chX8VK7RQ1c1+dFKoDNFVhu1R/XW isIM/WJbJV5pS6SSBc4BCdE1XwnlZN8OdUsvfKbobL4swjvkmwX7kUMjcziebbPAIUNn SeHQ== X-Received: by 10.194.6.37 with SMTP id x5mr117284396wjx.178.1452357188255; Sat, 09 Jan 2016 08:33:08 -0800 (PST) Received: from workstation.zombienet.local (pD9EBF166.dip0.t-ipconnect.de. [217.235.241.102]) by smtp.gmail.com with ESMTPSA id c15sm4386635wmd.19.2016.01.09.08.33.06 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 09 Jan 2016 08:33:06 -0800 (PST) From: Daniel Schwierzeck To: u-boot@lists.denx.de Date: Sat, 9 Jan 2016 17:32:46 +0100 Message-Id: <1452357172-19599-4-git-send-email-daniel.schwierzeck@gmail.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1452357172-19599-1-git-send-email-daniel.schwierzeck@gmail.com> References: <1452357172-19599-1-git-send-email-daniel.schwierzeck@gmail.com> Subject: [U-Boot] [PATCH v1 3/9] MIPS: vct: fix I/O accessor calls X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Use void pointers as address argument for readl( and writel()). This is required for the upcoming MIPS asm header file and I/O accessor update. Signed-off-by: Daniel Schwierzeck --- board/micronas/vct/vct.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/board/micronas/vct/vct.h b/board/micronas/vct/vct.h index 0a1c5fc..67da6a8 100644 --- a/board/micronas/vct/vct.h +++ b/board/micronas/vct/vct.h @@ -80,12 +80,14 @@ void vct_pin_mux_initialize(void); */ static inline void reg_write(u32 addr, u32 data) { - __raw_writel(data, addr + REG_GLOBAL_START_ADDR); + void *reg = (void *)(addr + REG_GLOBAL_START_ADDR); + __raw_writel(data, reg); } static inline u32 reg_read(u32 addr) { - return __raw_readl(addr + REG_GLOBAL_START_ADDR); + const void *reg = (const void *)(addr + REG_GLOBAL_START_ADDR); + return __raw_readl(reg); } #endif /* _VCT_H */