From patchwork Mon Apr 28 19:33:46 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Russell King X-Patchwork-Id: 29275 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f199.google.com (mail-pd0-f199.google.com [209.85.192.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id D8866202FE for ; Mon, 28 Apr 2014 19:33:56 +0000 (UTC) Received: by mail-pd0-f199.google.com with SMTP id fp1sf17312925pdb.10 for ; Mon, 28 Apr 2014 12:33:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:in-reply-to:references :from:to:cc:subject:message-id:date:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=0qIXY4QR1/LWIzt47QcLQum2SnjF1pJq7h4Vk8XwzBk=; b=FBBCRebRQ0zQO4nI9oErCPXpPE9si6J0sUkhgKaxeB3zETNwytE6wHxghIKau459Su yQZfM0D8o96M9CCavOomVTesvAtp7MJKZf8cUPEFhWy+qmRYOYHAeI6tytCronfDFXSq perSFAYQdUoq5dw8v/6lamwNfPXvfQVVUFKobLYrTVZVvQzxamsLp5EfVLrfxNdpFeiS MzRwK1yhFf4yzKO8LtP4+cdGjj/j+ZCHJdF7pCamxIFq8yvcSxpkTKoXF/aDhebwFslk BP5hojM4I1oJKVQrsunNsE4CKXlWo+hYXMlC22Bl7X7JVkGrTjx77G9ku1Es6/XoznHL dNJA== X-Gm-Message-State: ALoCoQlDbuSasifJHuS4H0SGnlXhom4vhnUIVSeXuSh8PU+grtI2xrmnE3ErMjck9cuYtF19xjNi X-Received: by 10.66.251.70 with SMTP id zi6mr12093299pac.37.1398713636139; Mon, 28 Apr 2014 12:33:56 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.33.203 with SMTP id j69ls2707716qgj.61.gmail; Mon, 28 Apr 2014 12:33:55 -0700 (PDT) X-Received: by 10.58.88.8 with SMTP id bc8mr1732745veb.39.1398713635857; Mon, 28 Apr 2014 12:33:55 -0700 (PDT) Received: from mail-ve0-x22d.google.com (mail-ve0-x22d.google.com [2607:f8b0:400c:c01::22d]) by mx.google.com with ESMTPS id dl2si3884360vcb.198.2014.04.28.12.33.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 28 Apr 2014 12:33:55 -0700 (PDT) Received-SPF: none (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) client-ip=2607:f8b0:400c:c01::22d; Received: by mail-ve0-f173.google.com with SMTP id oy12so8563662veb.4 for ; Mon, 28 Apr 2014 12:33:55 -0700 (PDT) X-Received: by 10.52.163.79 with SMTP id yg15mr9387vdb.53.1398713635789; Mon, 28 Apr 2014 12:33:55 -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.221.72 with SMTP id ib8csp141627vcb; Mon, 28 Apr 2014 12:33:55 -0700 (PDT) X-Received: by 10.68.203.39 with SMTP id kn7mr5883014pbc.141.1398713635039; Mon, 28 Apr 2014 12:33:55 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id hp1si11100766pad.262.2014.04.28.12.33.54; Mon, 28 Apr 2014 12:33:54 -0700 (PDT) Received-SPF: none (google.com: linux-omap-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932964AbaD1Tdu (ORCPT + 6 others); Mon, 28 Apr 2014 15:33:50 -0400 Received: from gw-1.arm.linux.org.uk ([78.32.30.217]:55856 "EHLO pandora.arm.linux.org.uk" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932704AbaD1Tds (ORCPT ); Mon, 28 Apr 2014 15:33:48 -0400 Received: from e0022681537dd.dyn.arm.linux.org.uk ([fd8f:7570:feb6:1:222:68ff:fe15:37dd]:35664 helo=rmk-PC.arm.linux.org.uk) by pandora.arm.linux.org.uk with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1WerJD-0008HU-5W; Mon, 28 Apr 2014 20:33:47 +0100 Received: from rmk by rmk-PC.arm.linux.org.uk with local (Exim 4.76) (envelope-from ) id 1WerJC-0001Zk-Oc; Mon, 28 Apr 2014 20:33:46 +0100 In-Reply-To: <20140428192419.GV26756@n2100.arm.linux.org.uk> References: <20140428192419.GV26756@n2100.arm.linux.org.uk> From: Russell King To: linux-arm-kernel@lists.ifradead.org Cc: Tony Lindgren , linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH 89/97] ARM: l2c: AM43x: add L2 cache support Message-Id: Date: Mon, 28 Apr 2014 20:33:46 +0100 Sender: linux-omap-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Original-Sender: rmk@arm.linux.org.uk X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: patch+caf_=patchwork-forward=linaro.org@linaro.org does not designate permitted sender hosts) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=neutral (body hash did not verify) header.i=@arm.linux.org.uk Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Sekhar Nori To: linux-arm-kernel@lists.ifradead.org Add support for L2 cache controller (PL310) on AM437x SoC. Signed-off-by: Sekhar Nori Acked-by: Santosh Shilimkar Signed-off-by: Russell King --- arch/arm/mach-omap2/Kconfig | 1 + arch/arm/mach-omap2/io.c | 1 + 2 files changed, 2 insertions(+) diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig index cb31d4390d52..0ba482638ebf 100644 --- a/arch/arm/mach-omap2/Kconfig +++ b/arch/arm/mach-omap2/Kconfig @@ -65,6 +65,7 @@ config SOC_AM43XX select ARCH_HAS_OPP select ARM_GIC select MACH_OMAP_GENERIC + select MIGHT_HAVE_CACHE_L2X0 config SOC_DRA7XX bool "TI DRA7XX" diff --git a/arch/arm/mach-omap2/io.c b/arch/arm/mach-omap2/io.c index b28299b5afd5..4e2df49991ad 100644 --- a/arch/arm/mach-omap2/io.c +++ b/arch/arm/mach-omap2/io.c @@ -609,6 +609,7 @@ void __init am43xx_init_early(void) am43xx_clockdomains_init(); am43xx_hwmod_init(); omap_hwmod_init_postsetup(); + omap_l2_cache_init(); omap_clk_soc_init = am43xx_dt_clk_init; }