From patchwork Wed Apr 2 13:34:22 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 27617 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f70.google.com (mail-pb0-f70.google.com [209.85.160.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 16B1A20490 for ; Wed, 2 Apr 2014 13:35:41 +0000 (UTC) Received: by mail-pb0-f70.google.com with SMTP id rp16sf695339pbb.5 for ; Wed, 02 Apr 2014 06:35:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id:cc :precedence:list-id:list-unsubscribe:list-archive:list-post :list-help:list-subscribe:mime-version:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :content-type:content-transfer-encoding; bh=H9t3vEzk1d1kbdBCgS0iiNWG/98+WbpZ8elmomNOm5A=; b=KTqwsB1nDY6X2z+F16IqRWhkzd7rBo0oHZLgCeeWE526hAqR1GmXlJkB9JBvrTnAhc Me8AnGqqkb20ESHC7mmtq8DwNuPiC13xUB4HtEVUkV6YgQBbp4nKLvVoK4BJAoXLgGcX EvVq9Ubb2i82KePa98J53eKnffG6RgD2E37IUbZ89mZxTbM5kpH3GnehdNlC8QR94DBp 1XNGLzkeTh+OM1kK0KKHWNymoUfBxmOm5Zi1Gp2WjbGUZZ5TpdECJDrcm8BdyyAhuxpb zMz1d0bPZVHLy7kjbYNjVDNxAFZT8nCF05gcXbEyBJQQOYauqD5xiaLqknGlCBnOZLur JI6Q== X-Gm-Message-State: ALoCoQnO63Whkzu3l0bp8jxyvHYZTrMXbnDvPUSRZuSXyLj32/7FE43qK7J1R0PUIdnnEmcOkFNq X-Received: by 10.66.65.109 with SMTP id w13mr16403459pas.21.1396445741155; Wed, 02 Apr 2014 06:35:41 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.108.10 with SMTP id i10ls316192qgf.62.gmail; Wed, 02 Apr 2014 06:35:41 -0700 (PDT) X-Received: by 10.52.3.129 with SMTP id c1mr493754vdc.37.1396445741042; Wed, 02 Apr 2014 06:35:41 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id tm8si524696vdc.206.2014.04.02.06.35.41 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 06:35:41 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id lg15so287393vcb.2 for ; Wed, 02 Apr 2014 06:35:41 -0700 (PDT) X-Received: by 10.52.180.98 with SMTP id dn2mr571518vdc.58.1396445740935; Wed, 02 Apr 2014 06:35:40 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.12.8 with SMTP id v8csp323597vcv; Wed, 2 Apr 2014 06:35:40 -0700 (PDT) X-Received: by 10.180.101.40 with SMTP id fd8mr2174794wib.1.1396445739764; Wed, 02 Apr 2014 06:35:39 -0700 (PDT) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id vr6si872969wjc.146.2014.04.02.06.35.39 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Apr 2014 06:35:39 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVLJw-0001PU-EP; Wed, 02 Apr 2014 13:35:12 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVLJu-0003vf-0G; Wed, 02 Apr 2014 13:35:10 +0000 Received: from mail-pa0-f44.google.com ([209.85.220.44]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVLJr-0003ur-JC for linux-arm-kernel@lists.infradead.org; Wed, 02 Apr 2014 13:35:08 +0000 Received: by mail-pa0-f44.google.com with SMTP id bj1so199151pad.3 for ; Wed, 02 Apr 2014 06:34:43 -0700 (PDT) X-Received: by 10.66.190.161 with SMTP id gr1mr2604pac.79.1396445683817; Wed, 02 Apr 2014 06:34:43 -0700 (PDT) Received: from localhost.localdomain ([140.206.182.114]) by mx.google.com with ESMTPSA id ac5sm4560323pbc.37.2014.04.02.06.34.35 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 06:34:43 -0700 (PDT) From: Haojian Zhuang To: linux@arm.linux.org.uk, linux-arm-kernel@lists.infradead.org, arnd@arndb.de, olof@lixom.net, khilman@kernel.org, xuwei5@hisilicon.com Subject: [PATCH 1/2] ARM: hisi: enable L2 driver Date: Wed, 2 Apr 2014 21:34:22 +0800 Message-Id: <1396445663-1357-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.8.3.2 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140402_093507_695271_F4835561 X-CRM114-Status: UNSURE ( 9.59 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.220.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Haojian Zhuang X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: haojian.zhuang@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.171 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 l2x0_of_init() is necessary to enable PL310 L2 cache controller. Signed-off-by: Haojian Zhuang --- arch/arm/mach-hisi/hisilicon.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm/mach-hisi/hisilicon.c b/arch/arm/mach-hisi/hisilicon.c index 741faf3..3a6f244 100644 --- a/arch/arm/mach-hisi/hisilicon.c +++ b/arch/arm/mach-hisi/hisilicon.c @@ -17,6 +17,7 @@ #include #include +#include #include #include @@ -51,6 +52,12 @@ static void __init hi3620_map_io(void) iotable_init(hi3620_io_desc, ARRAY_SIZE(hi3620_io_desc)); } +static void __init hi3xxx_init(void) +{ + l2x0_of_init(0, ~0UL); + of_platform_populate(NULL, of_default_bus_match_table, NULL, NULL); +} + static void hi3xxx_restart(enum reboot_mode mode, const char *cmd) { struct device_node *np; @@ -86,5 +93,6 @@ DT_MACHINE_START(HI3620, "Hisilicon Hi3620 (Flattened Device Tree)") .map_io = hi3620_map_io, .dt_compat = hi3xxx_compat, .smp = smp_ops(hi3xxx_smp_ops), + .init_machine = hi3xxx_init, .restart = hi3xxx_restart, MACHINE_END