Received: by 10.223.185.116 with SMTP id b49csp2824431wrg; Mon, 5 Mar 2018 09:14:06 -0800 (PST) X-Google-Smtp-Source: AG47ELsH6b61o9oPum7pP4EXmhwkZW3M1gCOlghS/Gl0dKZVOirvWmRbe5XnZuFaOsRKn/NJV6Qc X-Received: by 10.101.97.207 with SMTP id j15mr12568155pgv.266.1520270045942; Mon, 05 Mar 2018 09:14:05 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520270045; cv=none; d=google.com; s=arc-20160816; b=kXYowSEbOcrvskpzXlZfpAtpM0dOIJL3rgjO7HPagOe0HPNzc2jk3N+blEcrizo32w qmIJZUi88ZP2daiN9+QC+Hxkp3tBPYDfIcdvaE6whyNBx17EPCUpVEmV/+renqFeOYoo Z7XGcckdVR3G7tvc/ILJ9dpNIiyFIQxITw9ljt0HteMBCiOkqhIB6JFX2PNUsrNnvjW5 c2ibKsnDCho7FPGoq/JK5XyfbU45/rZ9SCNsj1GXmhSI3kk38bWZ2NbwKhjlI2lm+dkE OUXEtpXBm4u1OHf4BAbTFsFSA1FAmXUbVT1IwSbMGM4ey51OJ4v5VeuHUWglipg+rL40 opiw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:message-id:date:subject:cc :to:from:arc-authentication-results; bh=VQhEWSIORGaP0/GB8rmvZ9Yt5M9/bLET3ZKKZx8vrCg=; b=CjWJTvtpW5gGtAwOYzRiv0Wt1p6ecRNHw6zp3f/4MCfznlEXIuVJWDc/VxqzrLS07g E6wZznkHyHaXH9+/p6w0b16QtTzOz+BRX44rPGqiYz94l5cC85uJ7hfuOTNxFqySTkbx vPbW5ZHqzwZP3SpJgNT8PwADqWG0MwVSfkkqcDSyrvs0NLXmwoWphyaeiCxKWWTF/+tn cy/9UHaS6B5qSBScC78FUgP8OeKtuEjmP5TU8BYIIVS/HxZhsfvjUF9MMR0/dc9nlnM9 ybGVSIr4LlyyNXwqUf9ntaF8UTnVu94BkZTjqNKeJOR30GSGOISGOn0XPvc3WSFz5u+L HATA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=bnM5iMB5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u86si10407399pfa.69.2018.03.05.09.13.52; Mon, 05 Mar 2018 09:14:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=bnM5iMB5; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=crapouillou.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752677AbeCERMo (ORCPT + 99 others); Mon, 5 Mar 2018 12:12:44 -0500 Received: from outils.crapouillou.net ([89.234.176.41]:50284 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCERMm (ORCPT ); Mon, 5 Mar 2018 12:12:42 -0500 X-Greylist: delayed 324 seconds by postgrey-1.27 at vger.kernel.org; Mon, 05 Mar 2018 12:12:42 EST From: Paul Cercueil To: Ralf Baechle , James Hogan Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH] MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4770 Date: Mon, 5 Mar 2018 18:07:04 +0100 Message-Id: <20180305170704.17073-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1520269637; bh=VQhEWSIORGaP0/GB8rmvZ9Yt5M9/bLET3ZKKZx8vrCg=; h=From:To:Cc:Subject:Date:Message-Id; b=bnM5iMB5TKGc+24ei9eHjrpszQWb1IOMdFHHah/BIIm/3dxDIRkW/OitrLPGQU0EGZMr8F5S+lG1n8t5V6//URiDWVcE1mviuig0sJN9Z2WPDL6+8i+wAe8+cqDdBNo4skeuP+PhCopjen8vi7h2xsK3Lve11BcpZNFoKfKfG9M= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The debug definitions were missing for MACH_JZ4770, resulting in a build failure when DEBUG_ZBOOT was set. Since the UART addresses are the same across all Ingenic SoCs, we just use a #ifdef CONFIG_MACH_INGENIC instead of checking for indifidual Ingenic SoCs. Additionally, I added a #define for the UART0 address in-code and dropped the include, for the reason that this include file is slowly being phased out as the whole platform is being moved to devicetree. Signed-off-by: Paul Cercueil --- arch/mips/boot/compressed/uart-16550.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/boot/compressed/uart-16550.c b/arch/mips/boot/compressed/uart-16550.c index b3043c08f769..dd4e6d622184 100644 --- a/arch/mips/boot/compressed/uart-16550.c +++ b/arch/mips/boot/compressed/uart-16550.c @@ -18,9 +18,9 @@ #define PORT(offset) (CKSEG1ADDR(AR7_REGS_UART0) + (4 * offset)) #endif -#if defined(CONFIG_MACH_JZ4740) || defined(CONFIG_MACH_JZ4780) -#include -#define PORT(offset) (CKSEG1ADDR(JZ4740_UART0_BASE_ADDR) + (4 * offset)) +#if CONFIG_MACH_INGENIC +#define INGENIC_UART0_BASE_ADDR 0x10030000 +#define PORT(offset) (CKSEG1ADDR(INGENIC_UART0_BASE_ADDR) + (4 * offset)) #endif #ifdef CONFIG_CPU_XLR -- 2.11.0