]> rtime.felk.cvut.cz Git - can-eth-gw-linux.git/commitdiff
ARM: ux500: Pass PMU platform data due for Perf though AUXDATA
authorLee Jones <lee.jones@linaro.org>
Fri, 6 Jul 2012 08:06:20 +0000 (09:06 +0100)
committerLee Jones <lee.jones@linaro.org>
Thu, 20 Sep 2012 10:32:29 +0000 (12:32 +0200)
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 <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
arch/arm/mach-ux500/board-mop500.c
arch/arm/mach-ux500/board-mop500.h

index a534d8880de12e2a92b0c7a35ec1ebdc3034c44e..5d9600b1020be52c0f1eed729f762bf87fa67f1b 100644 (file)
@@ -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),
index b5bfc1a78b1adb0313dd96ff301f7a10f8a842c3..d04a8e6ce7ee57082106375162ec8b88e79939ee 100644 (file)
@@ -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);