summaryrefslogtreecommitdiff
path: root/arch/arm/include/asm/arch-hi6220/periph.h
diff options
context:
space:
mode:
authorPeter Griffin <peter.griffin@linaro.org>2015-07-30 18:55:20 +0100
committerTom Rini <trini@konsulko.com>2015-08-12 20:48:00 -0400
commit8a954eb695326eb406c4a548bb686190fea82bca (patch)
treef311dbe22c474fa51142b69d4c689555091ed0b1 /arch/arm/include/asm/arch-hi6220/periph.h
parent8293009baa3de9ef22cff50bfea6a31f3fa1af62 (diff)
hisilicon: hi6220: Add a hi6220 pinmux driver.
This patch adds basic pinmux support for the hi6220 SoC, which is found on the hikey board. Signed-off-by: Peter Griffin <peter.griffin@linaro.org>
Diffstat (limited to 'arch/arm/include/asm/arch-hi6220/periph.h')
-rw-r--r--arch/arm/include/asm/arch-hi6220/periph.h30
1 files changed, 30 insertions, 0 deletions
diff --git a/arch/arm/include/asm/arch-hi6220/periph.h b/arch/arm/include/asm/arch-hi6220/periph.h
new file mode 100644
index 0000000000..7155f60b34
--- /dev/null
+++ b/arch/arm/include/asm/arch-hi6220/periph.h
@@ -0,0 +1,30 @@
+/*
+ * Copyright (C) 2015 Linaro
+ * Peter Griffin <peter.griffin@linaro.org>
+ *
+ * SPDX-License-Identifier: GPL-2.0+
+ */
+
+#ifndef __ASM_ARM_ARCH_PERIPH_H
+#define __ASM_ARM_ARCH_PERIPH_H
+
+/*
+ * Peripherals required for pinmux configuration. List will
+ * grow with support for more devices getting added.
+ * Numbering based on interrupt table.
+ *
+ */
+enum periph_id {
+ PERIPH_ID_UART0 = 36,
+ PERIPH_ID_UART1,
+ PERIPH_ID_UART2,
+ PERIPH_ID_UART3,
+ PERIPH_ID_UART4,
+ PERIPH_ID_UART5,
+ PERIPH_ID_SDMMC0 = 72,
+ PERIPH_ID_SDMMC1,
+
+ PERIPH_ID_NONE = -1,
+};
+
+#endif /* __ASM_ARM_ARCH_PERIPH_H */