From patchwork Fri Jul 6 12:32:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 9886 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 31F7323E56 for ; Fri, 6 Jul 2012 12:32:50 +0000 (UTC) Received: from mail-gh0-f180.google.com (mail-gh0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id D2CEFA18263 for ; Fri, 6 Jul 2012 12:32:49 +0000 (UTC) Received: by ghbz12 with SMTP id z12so9140341ghb.11 for ; Fri, 06 Jul 2012 05:32:49 -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:x-gm-message-state; bh=lZs+D0i9PhSfGJ8dw8fOOHRJbPBfZbxhVN5RlimCsmQ=; b=YbOpeUWcTjUSIo3Jkd3ZvY/brnlHo03dyL0rCA2P84fbaSgFx00TMuN+iChDdrWhNl IS3IbRyAp9anCUqOyNFxEowS/v+l/aITMhf1mFNDFeIxVmOHqFSP93K5bBwebr61BlgG BqxX6F4E7wxQKZdLcV1bjCbcR01Wvr6s0iAwH7tK37gSG+4LTh4Uor21cxJ9FVCdMZR1 w7JvoOXOsDC/dgJTX/KVodN0Qvqd7W2yHQ/yOu2NmvsMcW7UDuX7oUWLvQykoZVjKWL9 9byl6KLPKajoNItx8aamVCkxCj9kMtvvPfeJm6sknjb+Xv7Hx8p2Q4Gvnv7iKboNx9zQ vhbA== Received: by 10.50.163.99 with SMTP id yh3mr2265487igb.53.1341577969184; Fri, 06 Jul 2012 05:32:49 -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.231.24.148 with SMTP id v20csp9656ibb; Fri, 6 Jul 2012 05:32:47 -0700 (PDT) Received: by 10.180.107.103 with SMTP id hb7mr7573456wib.3.1341577967445; Fri, 06 Jul 2012 05:32:47 -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 j58si19083450wel.6.2012.07.06.05.32.46 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jul 2012 05:32:47 -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 werf13 with SMTP id f13so8393989wer.37 for ; Fri, 06 Jul 2012 05:32:46 -0700 (PDT) Received: by 10.180.80.134 with SMTP id r6mr7582289wix.1.1341577966373; Fri, 06 Jul 2012 05:32:46 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id o2sm5208622wiz.11.2012.07.06.05.32.44 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 06 Jul 2012 05:32:45 -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, Lee Jones Subject: [PATCH] ARM: ux500: Pass PMU platform data due for Perf though AUXDATA Date: Fri, 6 Jul 2012 13:32:38 +0100 Message-Id: <1341577958-8521-1-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQlyaVMuixEEiaotLwPmLKsfjdyhdCEkq0TcPPjPmuhLA2Wmwu8BeE6jWHiYjKBlxBwGLQly 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. 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 9c78e40..aa1bdcf 100644 --- a/arch/arm/mach-ux500/board-mop500.c +++ b/arch/arm/mach-ux500/board-mop500.c @@ -727,6 +727,8 @@ MACHINE_END #ifdef CONFIG_MACH_UX500_DT 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);