summaryrefslogtreecommitdiff
path: root/drivers/staging/cw1200/cw1200_plat.h
blob: 4d30dbd39790951a636d3f504543944632715b82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*
 * Copyright (C) ST-Ericsson SA 2011
 *
 * Author: Dmitry Tarnyagin <dmitry.tarnyagin@stericsson.com>
 * License terms: GNU General Public License (GPL) version 2
 */

#ifndef CW1200_PLAT_H_INCLUDED
#define CW1200_PLAT_H_INCLUDED

#include <linux/ioport.h>

struct cw1200_platform_data {
	const char *mmc_id;
	const struct resource *irq;
	const struct resource *reset;
	int (*power_ctrl)(const struct cw1200_platform_data *pdata,
			  bool enable);
	int (*clk_ctrl)(const struct cw1200_platform_data *pdata,
			  bool enable);
};

/* Declaration only. Should be implemented in arch/xxx/mach-yyy */
const struct cw1200_platform_data *cw1200_get_platform_data(void);

#endif /* CW1200_PLAT_H_INCLUDED */