From patchwork Thu Apr 3 01:01:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haojian Zhuang X-Patchwork-Id: 27660 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7651720490 for ; Thu, 3 Apr 2014 01:02:11 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id hn18sf3017333igb.0 for ; Wed, 02 Apr 2014 18:02:10 -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 :in-reply-to:references: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=wk2wjV0/nYRARjPY/PZ93j1yM2sgvJNMHXmNEE5TsOU=; b=jlnNnxjJOCqgyC4dAvexmeKPCQRs4QGAWEnMy9c96X/FXYQaM6akk/35rEYDhVcpaG ansSihGPXEqweSyf2Q+DTZsiRPYBYJ4qAzE0XqJVQx6pCYMtR8yILTX2zelUNRp9vH5c qqypIeCh4259GsWw/hbU3z4AJgM3Nh7qbmt3m44Y8T6dkKiJJ+j9RHRw300ljbputk+S Oq57wWC5Nkq+XOIbP4K5zPnuuYCLB/r3fVhykFHpOG1W3/tYAKHrri/P3EnsYfhkjJXh QVPxXW/HXIXlQeaf63s3xlhwHD4uwx5Uvs+IXX6OljyxAs1rNJ84rNEcKOsVmG2NWprZ mZdw== X-Gm-Message-State: ALoCoQlF/w0i/NtI2+8s+tDynBeZKHI2KplncsMuf0BjrKmOMCPKa7kH4Q2G6RYNMGNWJCePBW9a X-Received: by 10.50.79.197 with SMTP id l5mr6242610igx.0.1396486930667; Wed, 02 Apr 2014 18:02:10 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.96.132 with SMTP id k4ls499080qge.42.gmail; Wed, 02 Apr 2014 18:02:10 -0700 (PDT) X-Received: by 10.52.134.202 with SMTP id pm10mr804708vdb.55.1396486930551; Wed, 02 Apr 2014 18:02:10 -0700 (PDT) Received: from mail-ve0-f174.google.com (mail-ve0-f174.google.com [209.85.128.174]) by mx.google.com with ESMTPS id uq6si982024vcb.0.2014.04.02.18.02.10 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 18:02:10 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.128.174 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.128.174; Received: by mail-ve0-f174.google.com with SMTP id oz11so8895210veb.19 for ; Wed, 02 Apr 2014 18:02:10 -0700 (PDT) X-Received: by 10.52.90.37 with SMTP id bt5mr4237363vdb.7.1396486930433; Wed, 02 Apr 2014 18:02:10 -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 v8csp366389vcv; Wed, 2 Apr 2014 18:02:09 -0700 (PDT) X-Received: by 10.194.81.98 with SMTP id z2mr5301202wjx.12.1396486929535; Wed, 02 Apr 2014 18:02:09 -0700 (PDT) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id j7si1594633wjy.45.2014.04.02.18.02.09 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Apr 2014 18:02:09 -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 1WVW2V-0004Ai-OI; Thu, 03 Apr 2014 01:01:55 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVW2T-0004LH-8w; Thu, 03 Apr 2014 01:01:53 +0000 Received: from mail-pd0-f173.google.com ([209.85.192.173]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WVW2Q-0004KI-T6 for linux-arm-kernel@lists.infradead.org; Thu, 03 Apr 2014 01:01:51 +0000 Received: by mail-pd0-f173.google.com with SMTP id z10so969493pdj.4 for ; Wed, 02 Apr 2014 18:01:28 -0700 (PDT) X-Received: by 10.67.8.102 with SMTP id dj6mr3788237pad.10.1396486887214; Wed, 02 Apr 2014 18:01:27 -0700 (PDT) Received: from localhost.localdomain ([140.206.182.114]) by mx.google.com with ESMTPSA id yo9sm16869375pab.16.2014.04.02.18.01.16 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 02 Apr 2014 18:01:24 -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 v2 1/2] ARM: hisi: enable L2 driver Date: Thu, 3 Apr 2014 09:01:04 +0800 Message-Id: <1396486864-13813-1-git-send-email-haojian.zhuang@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <20140402170034.GK7528@n2100.arm.linux.org.uk> References: <20140402170034.GK7528@n2100.arm.linux.org.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140402_210151_010750_8FC1CA0F X-CRM114-Status: UNSURE ( 9.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.173 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.128.174 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..5877e7d 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, ~0); + 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