2 * linux/include/asm-arm/arch-omap/menelaus.h
4 * Functions to access Menelaus power management chip
7 #ifndef __ASM_ARCH_MENELAUS_H
8 #define __ASM_ARCH_MENELAUS_H
10 extern int menelaus_register_mmc_callback(void (*callback
)(void *data
, u8 card_mask
),
12 extern void menelaus_unregister_mmc_callback(void);
13 extern int menelaus_set_mmc_opendrain(int slot
, int enable
);
14 extern int menelaus_set_mmc_slot(int slot
, int enable
, int power
, int cd_on
);
16 extern int menelaus_set_vmem(unsigned int mV
);
17 extern int menelaus_set_vio(unsigned int mV
);
18 extern int menelaus_set_vmmc(unsigned int mV
);
19 extern int menelaus_set_vaux(unsigned int mV
);
20 extern int menelaus_set_vdcdc(int dcdc
, unsigned int mV
);
21 extern int menelaus_set_slot_sel(int enable
);
22 extern int menelaus_get_slot_pin_states(void);
24 #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS)
25 #define omap_has_menelaus() 1
27 #define omap_has_menelaus() 0