diff options
author | Tony Lindgren <tony@atomide.com> | 2010-12-22 21:42:35 -0500 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2010-12-22 21:42:35 -0500 |
commit | 40e44399301b6dbd997408a184140b79b77f632d (patch) | |
tree | 0daf60d3c9f49fd1b5e7b34811a519ded2a89927 /arch/arm/mach-omap2/mux.h | |
parent | 8d9af88f55be89fa4c897ded3204ef12c947731e (diff) |
omap2+: Add struct omap_board_data and use it for platform level serial init
This is needed to pass board specific data such as pads used to the
platform level driver init code.
Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch/arm/mach-omap2/mux.h')
-rw-r--r-- | arch/arm/mach-omap2/mux.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/mux.h b/arch/arm/mach-omap2/mux.h index c9ec50de99c9..a4ab17a737a6 100644 --- a/arch/arm/mach-omap2/mux.h +++ b/arch/arm/mach-omap2/mux.h | |||
@@ -87,6 +87,20 @@ | |||
87 | #define OMAP_MUX_GPIO_IN_MODE3 (1 << 1) | 87 | #define OMAP_MUX_GPIO_IN_MODE3 (1 << 1) |
88 | 88 | ||
89 | /** | 89 | /** |
90 | * struct omap_board_data - board specific device data | ||
91 | * @id: instance id | ||
92 | * @flags: additional flags for platform init code | ||
93 | * @pads: array of device specific pads | ||
94 | * @pads_cnt: ARRAY_SIZE() of pads | ||
95 | */ | ||
96 | struct omap_board_data { | ||
97 | int id; | ||
98 | u32 flags; | ||
99 | struct omap_device_pad *pads; | ||
100 | int pads_cnt; | ||
101 | }; | ||
102 | |||
103 | /** | ||
90 | * struct mux_partition - contain partition related information | 104 | * struct mux_partition - contain partition related information |
91 | * @name: name of the current partition | 105 | * @name: name of the current partition |
92 | * @flags: flags specific to this partition | 106 | * @flags: flags specific to this partition |