Received: by 10.213.65.68 with SMTP id h4csp564726imn; Wed, 28 Mar 2018 08:39:46 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+BOsQ4ag8CGjOwxUB/5bhr1xXqPsVerpjsJt30+3aHahbSUyHbJZN9WdG9bVqHJ1PqdC0X X-Received: by 10.101.68.68 with SMTP id e4mr2939445pgq.421.1522251586757; Wed, 28 Mar 2018 08:39:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522251586; cv=none; d=google.com; s=arc-20160816; b=YtTAATi1UI42Egap8nOS37r543tYZQbgkg0SAcDFZjcZk80yEtm/eM10B1QdVAB0RH IHYTwt5ucSxebLblK4+obQFu04byIbt+RAe2xs1iPpTxydAOAfWRXgEjK3DUCf/ebe10 awTsTo9ulI8zr+3SSOYG7uHcucMKNN2yhdQWMpSVhnVltuJ8/HjpHbqaPGcJyfunikXP iDCOIH8JBqEko/332DAxBzh+lYsySkRbMsOjcQeDnMn4T392PvqwaE5AMDwtTfjpuM7p BFFDSrE5WbOdwevGzWIQzsnirV5Nk+bP96j3bHlLK3sZk//SUQHVvDnxKngrEkhjuu1F 574g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:dkim-signature:references:in-reply-to :message-id:date:subject:cc:to:from:arc-authentication-results; bh=igdVHABaT49F8HsCpWv/UGOXBFK7fQgHOiORRIbUc0I=; b=A8o4S4rzbPO6Cbyr4PtO2lIJ4e80/+1Kl7vIJUbUpHwbzMkBo/DVZgQs8sEaptMBNt EKeEUfUNJ42aL2cSGbw2z07xZgE8XF+qbbcCaXGYAybndq17RR0w9SMt3gOVC9wsnCwA BPHNnVolZxTW1aQyFfBALCvBd5XWevg9L8j8mOQH89I/KrdXC3teI4Ok1aJK72TTSe3O B3nw1zj8OajLCoMKriQhFPad6ve8kbSVXUYO+F9aLjc7pl8MClVkvzErFB5bhVDVFyDn L9SMZJYVKKZndVvdSE7Pk6ay9hF4lTgFkURbW3d5BuZW8jVujk1BtuBeZgwjjsIMXoze hWsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@crapouillou.net header.s=mail header.b=LN20EwIU; 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 bj1-v6si3822824plb.663.2018.03.28.08.39.30; Wed, 28 Mar 2018 08:39:46 -0700 (PDT) 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=LN20EwIU; 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 S1753967AbeC1PiY (ORCPT + 99 others); Wed, 28 Mar 2018 11:38:24 -0400 Received: from outils.crapouillou.net ([89.234.176.41]:48634 "EHLO crapouillou.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753408AbeC1PiX (ORCPT ); Wed, 28 Mar 2018 11:38:23 -0400 From: Paul Cercueil To: Ralf Baechle , James Hogan Cc: linux-mips@linux-mips.org, linux-kernel@vger.kernel.org, Paul Cercueil Subject: [PATCH v2] MIPS: Fix build with DEBUG_ZBOOT and MACH_JZ4770 Date: Wed, 28 Mar 2018 17:38:12 +0200 Message-Id: <20180328153812.2592-1-paul@crapouillou.net> In-Reply-To: <20180305170704.17073-1-paul@crapouillou.net> References: <20180305170704.17073-1-paul@crapouillou.net> DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=crapouillou.net; s=mail; t=1522251502; bh=igdVHABaT49F8HsCpWv/UGOXBFK7fQgHOiORRIbUc0I=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=LN20EwIUVO972jPFERm1wFYKyNsuB0KkXxovLv/NS+U3nGm24AcOZU2/Q4is2BqTwLnxhAXgx16VkRCHobkj5EjvWGH5zPfc5CIIQmvbRGDIijm+Bv6KccVFrPD66t6CA1cJp8vEwZkE0SJzBClVdvwrr1FAQASTMunt3nFNF40= 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 individual 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..aee8d7b8f091 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)) +#ifdef 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