From 23b266eb5c0e1705040a65554a11216ac1ac3873 Mon Sep 17 00:00:00 2001 From: Juha Yrjola Date: Fri, 30 Jun 2006 19:40:12 +0300 Subject: [PATCH] Menelaus: Add function menelaus_get_slot_pin_states Signed-off-by: Juha Yrjola --- drivers/i2c/chips/menelaus.c | 5 +++++ include/asm-arm/arch-omap/menelaus.h | 1 + 2 files changed, 6 insertions(+) diff --git a/drivers/i2c/chips/menelaus.c b/drivers/i2c/chips/menelaus.c index eebab924036..82dd2cf4b5e 100644 --- a/drivers/i2c/chips/menelaus.c +++ b/drivers/i2c/chips/menelaus.c @@ -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); /*-----------------------------------------------------------------------*/ diff --git a/include/asm-arm/arch-omap/menelaus.h b/include/asm-arm/arch-omap/menelaus.h index 614f02ccfea..1ae179da717 100644 --- a/include/asm-arm/arch-omap/menelaus.h +++ b/include/asm-arm/arch-omap/menelaus.h @@ -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 -- 2.41.1