From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm0-x22e.google.com ([2a00:1450:400c:c09::22e]) by casper.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fKjPF-00035E-RY for barebox@lists.infradead.org; Mon, 21 May 2018 11:55:15 +0000 Received: by mail-wm0-x22e.google.com with SMTP id f8-v6so26172675wmc.4 for ; Mon, 21 May 2018 04:55:03 -0700 (PDT) From: Peter Mamonov Date: Mon, 21 May 2018 14:54:32 +0300 Message-Id: <20180521115438.26493-7-pmamonov@gmail.com> In-Reply-To: <20180521115438.26493-1-pmamonov@gmail.com> References: <20180521115438.26493-1-pmamonov@gmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH v2 06/12] common.h: fix IOMEM() for MIPS64 To: barebox@lists.infradead.org Cc: Peter Mamonov Signed-off-by: Peter Mamonov --- include/common.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/common.h b/include/common.h index 60e5005b8..4b3bcae40 100644 --- a/include/common.h +++ b/include/common.h @@ -142,7 +142,11 @@ void barebox_set_hostname_no_overwrite(const char *); #if defined(CONFIG_MIPS) #include +#ifdef CONFIG_64BIT +#define IOMEM(addr) ((void __force __iomem *)PHYS_TO_XKSEG_UNCACHED(addr)) +#else #define IOMEM(addr) ((void __force __iomem *)CKSEG1ADDR(addr)) +#endif #else #define IOMEM(addr) ((void __force __iomem *)(addr)) #endif -- 2.17.0 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox