From patchwork Tue Sep 15 18:15:00 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 7189131 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 5330C9F32B for ; Tue, 15 Sep 2015 18:21:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7F93B204FC for ; Tue, 15 Sep 2015 18:21:03 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 322B92046F for ; Tue, 15 Sep 2015 18:21:00 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZbupB-00044x-Pv; Tue, 15 Sep 2015 18:19:25 +0000 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zbuow-0003hI-P8 for linux-arm-kernel@lists.infradead.org; Tue, 15 Sep 2015 18:19:11 +0000 Received: by pacex6 with SMTP id ex6so183720937pac.0 for ; Tue, 15 Sep 2015 11:18:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/89TTgK/PlusOYh0WylKTrxjFgJZsRiqbup5yB13IYI=; b=CynVZnFIpp7/N2yHn7x3Qs+tRZS3RKlYcZW6tH3AtlSlxsiy1YIycGFyfYvpGUd+M2 8Kzo+HWdXt9+Nb4+u0vCrGFhg+MaUUc6oOaQzwCfwapRVDKdPkm66+weAIQDcbI0+XMq b0WNTKFsxwukswKkXvrXE+zgbkJsEPYXApR2VXx+VXkMRi3W9RTXLA9FBxMHja5JKUqu XY/nmTYdcA+NDi85CPBAdsDBUUF3xbul1Ec+41ROWJOqGtp8czu1Dv42dZhsGDRtdndd rfcOBSMLCSJpYbNq4+kuUcg8xQp/T+2gnQZ2s6sKh7jLFzvZPxyzUIfrC4AU8+Eu8iC5 AGTw== X-Received: by 10.68.243.37 with SMTP id wv5mr41446962pbc.68.1442341130157; Tue, 15 Sep 2015 11:18:50 -0700 (PDT) Received: from fainelli-desktop.broadcom.com (5520-maca-inet1-outside.broadcom.com. [216.31.211.11]) by smtp.gmail.com with ESMTPSA id bz4sm23381169pbd.6.2015.09.15.11.18.49 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 15 Sep 2015 11:18:49 -0700 (PDT) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Subject: [PATCH v2 3/3] ARM: brcmstb: Setup BIU control registers during boot Date: Tue, 15 Sep 2015 11:15:00 -0700 Message-Id: <1442340900-15320-4-git-send-email-f.fainelli@gmail.com> X-Mailer: git-send-email 2.1.0 In-Reply-To: <1442340900-15320-1-git-send-email-f.fainelli@gmail.com> References: <1442340900-15320-1-git-send-email-f.fainelli@gmail.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150915_111910_952992_F294D9C5 X-CRM114-Status: GOOD ( 11.79 ) X-Spam-Score: -2.0 (--) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, Florian Fainelli , bcm-kernel-feedback-list@broadcom.com, gregory.0xf0@gmail.com, computersforpeace@gmail.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Call brcmstb_biuctrl_init() in brcmstb's init_irq machine descriptor callback since we need to setup the Bus Interface Unit before SMP in particular, but we also need to be able to remap registers. Signed-off-by: Florian Fainelli Acked-by: Gregory Fong --- arch/arm/mach-bcm/brcmstb.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/arch/arm/mach-bcm/brcmstb.c b/arch/arm/mach-bcm/brcmstb.c index 3a60f7ee3f0c..99a67cfb7c0d 100644 --- a/arch/arm/mach-bcm/brcmstb.c +++ b/arch/arm/mach-bcm/brcmstb.c @@ -12,11 +12,19 @@ */ #include +#include #include +#include #include #include +static void __init brcmstb_init_irq(void) +{ + irqchip_init(); + brcmstb_biuctrl_init(); +} + static const char *const brcmstb_match[] __initconst = { "brcm,bcm7445", "brcm,brcmstb", @@ -25,4 +33,5 @@ static const char *const brcmstb_match[] __initconst = { DT_MACHINE_START(BRCMSTB, "Broadcom STB (Flattened Device Tree)") .dt_compat = brcmstb_match, + .init_irq = brcmstb_init_irq, MACHINE_END