]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Menelaus: Add function menelaus_get_slot_pin_states
authorJuha Yrjola <juha.yrjola@solidboot.com>
Fri, 30 Jun 2006 16:40:12 +0000 (19:40 +0300)
committerJuha Yrjola <juha.yrjola@solidboot.com>
Fri, 30 Jun 2006 16:40:12 +0000 (19:40 +0300)
Signed-off-by: Juha Yrjola <juha.yrjola@solidboot.com>
drivers/i2c/chips/menelaus.c
include/asm-arm/arch-omap/menelaus.h

index eebab924036128ab30b2bcb5821e729c5701cf1a..82dd2cf4b5ebaf27156fef502b3e5acab663de0b 100644 (file)
@@ -594,6 +594,11 @@ int menelaus_set_vmmc(unsigned int mV)
 }
 EXPORT_SYMBOL(menelaus_set_vmmc);
 
+int menelaus_get_slot_pin_states(void)
+{
+       return menelaus_read_reg(MENELAUS_MCT_PIN_ST);
+}
+EXPORT_SYMBOL(menelaus_get_slot_pin_states);
 
 /*-----------------------------------------------------------------------*/
 
index 614f02ccfea53fefc9e26ae6d9ee498ff372cfa8..1ae179da7179b2578002a486b540842eca652554 100644 (file)
@@ -18,6 +18,7 @@ extern int menelaus_set_vio(unsigned int mV);
 extern int menelaus_set_vmmc(unsigned int mV);
 extern int menelaus_set_vdcdc(int dcdc, unsigned int mV);
 extern int menelaus_set_slot_sel(int enable);
+extern int menelaus_get_slot_pin_states(void);
 
 #if defined(CONFIG_ARCH_OMAP24XX) && defined(CONFIG_MENELAUS)
 #define omap_has_menelaus()    1