Skip to content

Commit

Permalink
sh: Runtime PM pdev hwblk
Browse files Browse the repository at this point in the history
These patches extend struct platform device data for a bunch of
SuperH Mobile processors and embedded boards. The patches simply
add hardware block ids to on-chip platform devices. Platform
devices off chip (such as external ethernet controllers or flash
chips) are left out which gives them a special case hardware block
id of zero.

Upcoming Runtime PM code will make use of the hardware block id
to group devices together. The hardware block id can also be used
to extend the SuperH Mobile clock framework implementation.

This series of patches depend on the following:
"Driver Core: Add platform device arch data V3".

This patch adds a hwblk_id member to struct pdev_archdata. This member
should be used to point out on-chip hardware block id.

Signed-off-by: Magnus Damm <damm@igel.co.jp>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Aug 4, 2009
1 parent 0011107 commit 9aaa749
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/sh/include/asm/device.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
*
* This file is released under the GPLv2
*/
#include <asm-generic/device.h>

struct dev_archdata {
};

struct platform_device;
/* allocate contiguous memory chunk and fill in struct resource */
Expand All @@ -12,3 +14,6 @@ int platform_resource_setup_memory(struct platform_device *pdev,

void plat_early_device_setup(void);

struct pdev_archdata {
int hwblk_id;
};

0 comments on commit 9aaa749

Please sign in to comment.