blob: fe22b84f89eae59c4e75447d8718038b875541bd [file] [log] [blame]
Hanumath Prasad008f8a22010-08-19 12:06:32 +01001/*
2 * Copyright (C) ST-Ericsson SA 2010
3 *
4 * License terms: GNU General Public License (GPL) version 2
5 */
6
7#ifndef __BOARD_MOP500_H
8#define __BOARD_MOP500_H
9
Rabin Vincentb8410a12010-08-09 19:18:17 +053010#define MOP500_EGPIO(x) (NOMADIK_NR_GPIO + (x))
11
12/* GPIOs on the TC35892 expander */
13#define GPIO_SDMMC_CD MOP500_EGPIO(3)
Sundar Iyer0c243522011-01-21 10:56:17 +053014#define GPIO_BU21013_CS MOP500_EGPIO(13)
Rabin Vincentb8410a12010-08-09 19:18:17 +053015#define GPIO_SDMMC_EN MOP500_EGPIO(17)
16#define GPIO_SDMMC_1V8_3V_SEL MOP500_EGPIO(18)
17
Rabin Vincent705e0982011-01-21 10:56:16 +053018struct i2c_board_info;
19
Hanumath Prasad008f8a22010-08-19 12:06:32 +010020extern void mop500_sdi_init(void);
Rabin Vincentb8410a12010-08-09 19:18:17 +053021extern void mop500_sdi_tc35892_init(void);
Rabin Vincent705e0982011-01-21 10:56:16 +053022void __init mop500_u8500uib_init(void);
23void __init mop500_stuib_init(void);
24
25void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info,
26 unsigned n);
Hanumath Prasad008f8a22010-08-19 12:06:32 +010027
28#endif