summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-exynos/pinmux.h
diff options
context:
space:
mode:
authorRajeshwari Shinde <rajeshwari.s@samsung.com>2012-12-26 20:03:11 +0000
committerMinkyu Kang <mk7.kang@samsung.com>2013-01-08 10:54:32 +0900
commitd055911887583e36e550900506c80fbd73c89a58 (patch)
treef199a616d70d105944d0a195c82e6d1dbc3f1d98 /arch/arm/include/asm/arch-exynos/pinmux.h
parentc34253d1fc83e4cf231af77c667827a51c3f28cb (diff)
downloadu-boot-imx-d055911887583e36e550900506c80fbd73c89a58.zip
u-boot-imx-d055911887583e36e550900506c80fbd73c89a58.tar.gz
u-boot-imx-d055911887583e36e550900506c80fbd73c89a58.tar.bz2
EXYNOS5: FDT : Decode peripheral id
Api is added to decode peripheral id based on the interrupt number of the peripheral. Signed-off-by: Rajeshwari Shinde <rajeshwari.s@samsung.com> Acked-by: Simon Glass <sjg@chromium.org> Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
Diffstat (limited to 'arch/arm/include/asm/arch-exynos/pinmux.h')
-rw-r--r--arch/arm/include/asm/arch-exynos/pinmux.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-exynos/pinmux.h b/arch/arm/include/asm/arch-exynos/pinmux.h
index 10ea736..014eebc 100644
--- a/arch/arm/include/asm/arch-exynos/pinmux.h
+++ b/arch/arm/include/asm/arch-exynos/pinmux.h
@@ -55,4 +55,12 @@ enum {
*/
int exynos_pinmux_config(int peripheral, int flags);
+/**
+ * Decode the peripheral id using the interrpt numbers.
+ *
+ * @param blob Device tree blob
+ * @param node FDT I2C node to find
+ * @return peripheral id if ok, PERIPH_ID_NONE on error
+ */
+int pinmux_decode_periph_id(const void *blob, int node);
#endif