-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch adds an initcall for the s5p platforms so that they register their PMU IRQs with the PMU framework in the Kernel. Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
- Loading branch information
Joonyoung Shim
authored and
Kukjin Kim
committed
Aug 5, 2010
1 parent
9fe6206
commit 02a0456
Showing
6 changed files
with
41 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,6 +12,7 @@ obj- := | |
|
||
# Core files | ||
|
||
obj-y += dev-pmu.o | ||
obj-y += dev-uart.o | ||
obj-y += cpu.o | ||
obj-y += clock.o | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
/* | ||
* linux/arch/arm/plat-s5p/dev-pmu.c | ||
* | ||
* Copyright (C) 2010 Samsung Electronics Co.Ltd | ||
* Author: Joonyoung Shim <jy0922.shim@samsung.com> | ||
* | ||
* This program is free software; you can redistribute it and/or modify it | ||
* under the terms of the GNU General Public License as published by the | ||
* Free Software Foundation; either version 2 of the License, or (at your | ||
* option) any later version. | ||
* | ||
*/ | ||
|
||
#include <linux/platform_device.h> | ||
#include <asm/pmu.h> | ||
#include <mach/irqs.h> | ||
|
||
static struct resource s5p_pmu_resource = { | ||
.start = IRQ_PMU, | ||
.end = IRQ_PMU, | ||
.flags = IORESOURCE_IRQ, | ||
}; | ||
|
||
struct platform_device s5p_device_pmu = { | ||
.name = "arm-pmu", | ||
.id = ARM_PMU_DEVICE_CPU, | ||
.num_resources = 1, | ||
.resource = &s5p_pmu_resource, | ||
}; | ||
|
||
static int __init s5p_pmu_init(void) | ||
{ | ||
platform_device_register(&s5p_device_pmu); | ||
return 0; | ||
} | ||
arch_initcall(s5p_pmu_init); |