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>
This commit is contained in:
@@ -86,6 +86,20 @@
|
||||
#define OMAP_MUX_REG_8BIT (1 << 0)
|
||||
#define OMAP_MUX_GPIO_IN_MODE3 (1 << 1)
|
||||
|
||||
/**
|
||||
* struct omap_board_data - board specific device data
|
||||
* @id: instance id
|
||||
* @flags: additional flags for platform init code
|
||||
* @pads: array of device specific pads
|
||||
* @pads_cnt: ARRAY_SIZE() of pads
|
||||
*/
|
||||
struct omap_board_data {
|
||||
int id;
|
||||
u32 flags;
|
||||
struct omap_device_pad *pads;
|
||||
int pads_cnt;
|
||||
};
|
||||
|
||||
/**
|
||||
* struct mux_partition - contain partition related information
|
||||
* @name: name of the current partition
|
||||
|
Reference in New Issue
Block a user