summaryrefslogtreecommitdiffstats
path: root/target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h
diff options
context:
space:
mode:
Diffstat (limited to 'target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h')
-rw-r--r--target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h b/target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h
new file mode 100644
index 000000000..314085e92
--- /dev/null
+++ b/target/linux/realtek/files/drivers/serial/gpio_8972d_v100.h
@@ -0,0 +1,37 @@
+/*
+* Copyright c Realtek Semiconductor Corporation, 2009
+* All rights reserved.
+*
+* Program : 8972D V100 GPIO Header File
+* Abstract :
+* Author :
+*
+*/
+
+#ifndef __GPIO_8972D_V100_H__
+#define __GPIO_8972D_V100_H__
+
+////// For 8972D V100 ATA SLIC /////
+#if defined(CONFIG_RTK_VOIP_DRIVERS_ATA_SLIC)
+
+#define GPIO "ATA"
+#define PIN_RESET1 GPIO_ID(GPIO_PORT_G,0) //output
+//#define PIN_RESET2 GPIO_ID(GPIO_PORT_D,6) //output
+
+#define PIN_CS1 GPIO_ID(GPIO_PORT_B,7) //output
+#define PIN_CS2 GPIO_ID(GPIO_PORT_C,0) //output
+
+#define PIN_CLK GPIO_ID(GPIO_PORT_C,4) //output
+#define PIN_DI GPIO_ID(GPIO_PORT_C,5) //input
+#define PIN_DO GPIO_ID(GPIO_PORT_A,1) //output
+
+/* LED */
+/* V100 use below GPIO as SLIC CS */
+#define PIN_VOIP0_LED GPIO_ID(GPIO_PORT_G,5)
+#define PIN_VOIP1_LED GPIO_ID(GPIO_PORT_G,6)
+
+#endif //CONFIG_RTK_VOIP_DRIVERS_ATA_SLIC
+
+
+#endif /* __GPIO_8972D_V100_H__ */
+