diff options
author | Paul Mundt <lethal@linux-sh.org> | 2009-08-23 05:04:07 -0400 |
---|---|---|
committer | Paul Mundt <lethal@linux-sh.org> | 2009-08-23 05:04:07 -0400 |
commit | c3144fc46f987413df10e83659f0bf1aad76f79e (patch) | |
tree | a09f3c13c32664a617d3981ae111436c3127ccc3 /arch/sh/include | |
parent | 4f896ffca2b72f4b719746e7fbb0b623252e6ac9 (diff) | |
parent | cc58f597afc63a57bb55ed97c2a72f7405320c93 (diff) |
Merge branches 'sh/hwblk' and 'sh/pm-runtime'
Diffstat (limited to 'arch/sh/include')
-rw-r--r-- | arch/sh/include/asm/device.h | 16 | ||||
-rw-r--r-- | arch/sh/include/asm/hwblk.h | 4 |
2 files changed, 18 insertions, 2 deletions
diff --git a/arch/sh/include/asm/device.h b/arch/sh/include/asm/device.h index 8688a88303ee..b16debfe8c1e 100644 --- a/arch/sh/include/asm/device.h +++ b/arch/sh/include/asm/device.h | |||
@@ -3,7 +3,9 @@ | |||
3 | * | 3 | * |
4 | * This file is released under the GPLv2 | 4 | * This file is released under the GPLv2 |
5 | */ | 5 | */ |
6 | #include <asm-generic/device.h> | 6 | |
7 | struct dev_archdata { | ||
8 | }; | ||
7 | 9 | ||
8 | struct platform_device; | 10 | struct platform_device; |
9 | /* allocate contiguous memory chunk and fill in struct resource */ | 11 | /* allocate contiguous memory chunk and fill in struct resource */ |
@@ -12,3 +14,15 @@ int platform_resource_setup_memory(struct platform_device *pdev, | |||
12 | 14 | ||
13 | void plat_early_device_setup(void); | 15 | void plat_early_device_setup(void); |
14 | 16 | ||
17 | #define PDEV_ARCHDATA_FLAG_INIT 0 | ||
18 | #define PDEV_ARCHDATA_FLAG_IDLE 1 | ||
19 | #define PDEV_ARCHDATA_FLAG_SUSP 2 | ||
20 | |||
21 | struct pdev_archdata { | ||
22 | int hwblk_id; | ||
23 | #ifdef CONFIG_PM_RUNTIME | ||
24 | unsigned long flags; | ||
25 | struct list_head entry; | ||
26 | struct mutex mutex; | ||
27 | #endif | ||
28 | }; | ||
diff --git a/arch/sh/include/asm/hwblk.h b/arch/sh/include/asm/hwblk.h index c01d72cb6757..5d3ccae4202b 100644 --- a/arch/sh/include/asm/hwblk.h +++ b/arch/sh/include/asm/hwblk.h | |||
@@ -5,7 +5,9 @@ | |||
5 | #include <asm/io.h> | 5 | #include <asm/io.h> |
6 | 6 | ||
7 | #define HWBLK_CNT_USAGE 0 | 7 | #define HWBLK_CNT_USAGE 0 |
8 | #define HWBLK_CNT_NR 1 | 8 | #define HWBLK_CNT_IDLE 1 |
9 | #define HWBLK_CNT_DEVICES 2 | ||
10 | #define HWBLK_CNT_NR 3 | ||
9 | 11 | ||
10 | #define HWBLK_AREA_FLAG_PARENT (1 << 0) /* valid parent */ | 12 | #define HWBLK_AREA_FLAG_PARENT (1 << 0) /* valid parent */ |
11 | 13 | ||