From patchwork Thu Sep 20 12:12:21 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 11540 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 7C6271B4E37 for ; Thu, 20 Sep 2012 12:13:09 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id ECE3CA1922F for ; Thu, 20 Sep 2012 12:13:08 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so2722067iej.11 for ; Thu, 20 Sep 2012 05:13:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=ONNGfo/RCDSeyodrC9f0tBOc1GAVwbpnWkmKxzbWkmk=; b=Tcy8/HechKrBjdePrR+c8J6Lq6x0A1Jp6ncktgv/M1xXC1k8fa5oXd6H+KPJLMhPIF dgxCAZyod5ngpFDOlgVvtp71XW1oscnp72YHG+BCLorAAilybe4zS0Flv9k5nuPz9clD wh5wRJeSDkJKmQARyWjWrcG8TgrrUTXMElnWd6VWdTKW5YMStWVa87/MgsDbhe13XrND B5WHCM0uIYjaXaATb14RYADIzV6DR7alJPwgC90wIEbk0dWh8gMQJtFjiUBaF8LdPqu6 VlZoIe4gScf0h4qob1lm7UQg1eAtywmuLn0sA+x4ar5WCSg0x0IyAm11Hp5QwUfOp8MY y38A== Received: by 10.50.0.193 with SMTP id 1mr1521145igg.0.1348143188653; Thu, 20 Sep 2012 05:13:08 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp71577igc; Thu, 20 Sep 2012 05:13:07 -0700 (PDT) Received: by 10.180.81.165 with SMTP id b5mr5599532wiy.17.1348143187433; Thu, 20 Sep 2012 05:13:07 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id z42si7296505weo.132.2012.09.20.05.13.06 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Sep 2012 05:13:07 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by weyu7 with SMTP id u7so1482334wey.37 for ; Thu, 20 Sep 2012 05:13:06 -0700 (PDT) Received: by 10.180.79.103 with SMTP id i7mr3367700wix.13.1348143186803; Thu, 20 Sep 2012 05:13:06 -0700 (PDT) Received: from localhost.localdomain (LPuteaux-156-14-44-212.w82-127.abo.wanadoo.fr. [82.127.83.212]) by mx.google.com with ESMTPS id w7sm32394460wiz.0.2012.09.20.05.13.05 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 20 Sep 2012 05:13:06 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: STEricsson_nomadik_linux@list.st.com, linus.walleij@stericsson.com, arnd@arndb.de, olof.johansson@gmail.com, Lee Jones Subject: [PATCH 03/32] ARM: ux500: Pass PMU platform data due for Perf though AUXDATA Date: Thu, 20 Sep 2012 14:12:21 +0200 Message-Id: <1348143170-2130-4-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1348143170-2130-1-git-send-email-lee.jones@linaro.org> References: <1348143170-2130-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQkm446khP3SQQRL+3frPRooHcAoQHoG+Ms0MO6btsDJIBmeiBf/4sod/30rXNlxDJPUU5BN When booting with Device Tree we need a way to call-back to the DB8500 PMU IRQ handler. This is necessary because the two CPU IRQ lines are muxed together on the DB8500 chip. The DB8500 PMU IRQ handler contains logic to pass over to the other core in the case of IRQ_NONE. This patch allows the DB8500 PMU IRQ handler to be passed to Perf through platform data. Acked-by: Linus Walleij Signed-off-by: Lee Jones --- arch/arm/mach-ux500/board-mop500.c | 2 ++ arch/arm/mach-ux500/board-mop500.h | 1 + 2 files changed, 3 insertions(+) diff --git a/arch/arm/mach-ux500/board-mop500.c b/arch/arm/mach-ux500/board-mop500.c index a534d88..5d9600b 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -732,6 +732,8 @@ static struct platform_device *snowball_of_platform_devs[] __initdata = { }; struct of_dev_auxdata u8500_auxdata_lookup[] __initdata = { + /* Requires call-back bindings. */ + OF_DEV_AUXDATA("arm,cortex-a9-pmu", 0, "arm-pmu", &db8500_pmu_platdata), /* Requires DMA and call-back bindings. */ OF_DEV_AUXDATA("arm,pl011", 0x80120000, "uart0", &uart0_plat), OF_DEV_AUXDATA("arm,pl011", 0x80121000, "uart1", &uart1_plat), diff --git a/arch/arm/mach-ux500/board-mop500.h b/arch/arm/mach-ux500/board-mop500.h index b5bfc1a..d04a8e6 100644 --- a/arch/arm/mach-ux500/board-mop500.h +++ b/arch/arm/mach-ux500/board-mop500.h @@ -81,6 +81,7 @@ struct device; struct i2c_board_info; extern struct mmci_platform_data mop500_sdi0_data; extern struct mmci_platform_data mop500_sdi4_data; +extern struct arm_pmu_platdata db8500_pmu_platdata; extern void mop500_sdi_init(struct device *parent); extern void snowball_sdi_init(struct device *parent);