blob: 19b6c270d2065eb8017f57ebed51757a0d22a68c [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)
Philippe Langlaisa71b8192011-01-14 10:53:59 +010014#define GPIO_PROX_SENSOR MOP500_EGPIO(7)
Sundar Iyer0c243522011-01-21 10:56:17 +053015#define GPIO_BU21013_CS MOP500_EGPIO(13)
Rabin Vincentb8410a12010-08-09 19:18:17 +053016#define GPIO_SDMMC_EN MOP500_EGPIO(17)
17#define GPIO_SDMMC_1V8_3V_SEL MOP500_EGPIO(18)
18
Rabin Vincent705e0982011-01-21 10:56:16 +053019struct i2c_board_info;
20
Hanumath Prasad008f8a22010-08-19 12:06:32 +010021extern void mop500_sdi_init(void);
Rabin Vincentb8410a12010-08-09 19:18:17 +053022extern void mop500_sdi_tc35892_init(void);
Rabin Vincent705e0982011-01-21 10:56:16 +053023void __init mop500_u8500uib_init(void);
24void __init mop500_stuib_init(void);
25
26void mop500_uib_i2c_add(int busnum, struct i2c_board_info *info,
27 unsigned n);
Hanumath Prasad008f8a22010-08-19 12:06:32 +010028
29#endif