summaryrefslogtreecommitdiffstats
path: root/firmware/target/arm/imx233/pins/pins-stmp3600.h
diff options
context:
space:
mode:
authorAmaury Pouly <amaury.pouly@gmail.com>2013-06-18 16:21:38 +0200
committerAmaury Pouly <amaury.pouly@gmail.com>2013-06-18 16:21:38 +0200
commit49628540053103315a188164c96fdedb524ae59c (patch)
tree6b44116546c069133e4e2b7d9041592769ceb7df /firmware/target/arm/imx233/pins/pins-stmp3600.h
parentea8b22a9b67b6db6ae6975d995999f9322071ead (diff)
downloadrockbox-49628540053103315a188164c96fdedb524ae59c.tar.gz
rockbox-49628540053103315a188164c96fdedb524ae59c.tar.bz2
rockbox-49628540053103315a188164c96fdedb524ae59c.zip
imx233: add stmp3600 and stmp3700 pin descriptions
Change-Id: I1f64b669eac688583f27dde5216e40f7333de0b6
Diffstat (limited to 'firmware/target/arm/imx233/pins/pins-stmp3600.h')
-rw-r--r--firmware/target/arm/imx233/pins/pins-stmp3600.h90
1 files changed, 90 insertions, 0 deletions
diff --git a/firmware/target/arm/imx233/pins/pins-stmp3600.h b/firmware/target/arm/imx233/pins/pins-stmp3600.h
new file mode 100644
index 0000000000..9db0ad9a76
--- /dev/null
+++ b/firmware/target/arm/imx233/pins/pins-stmp3600.h
@@ -0,0 +1,90 @@
+/***************************************************************************
+ * __________ __ ___.
+ * Open \______ \ ____ ____ | | _\_ |__ _______ ___
+ * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
+ * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
+ * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
+ * \/ \/ \/ \/ \/
+ * $Id$
+ *
+ * Copyright © 2013 by Amaury Pouly
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ****************************************************************************/
+#ifndef __PINS_STMP3600__
+#define __PINS_STMP3600__
+
+#define VPIN_PWM(channel) VPIN_PACK(3, 10 + (channel), MAIN)
+
+#define VPIN_I2C_SCL VPIN_PACK(3, 17, MAIN)
+#define VPIN_I2C_SDA VPIN_PACK(3, 18, MAIN)
+
+#define VPIN_SSP1_DET VPIN_PACK(0, 25, MAIN)
+#define VPIN_SSP1_CMD VPIN_PACK(0, 26, MAIN)
+#define VPIN_SSP1_SCK VPIN_PACK(0, 27, MAIN)
+#define VPIN_SSP1_D0 VPIN_PACK(0, 28, MAIN)
+#define VPIN_SSP1_D1 VPIN_PACK(0, 29, MAIN)
+#define VPIN_SSP1_D2 VPIN_PACK(0, 30, MAIN)
+#define VPIN_SSP1_D3 VPIN_PACK(0, 31, MAIN)
+
+#define VPIN_UARTDBG_TX VPIN_PACK(3, 11, ALT2)
+#define VPIN_UARTDBG_RX VPIN_PACK(3, 10, ALT2)
+
+#define VPIN_LCD_D0 VPIN_PACK(1, 0, MAIN)
+#define VPIN_LCD_D1 VPIN_PACK(1, 1, MAIN)
+#define VPIN_LCD_D2 VPIN_PACK(1, 2, MAIN)
+#define VPIN_LCD_D3 VPIN_PACK(1, 3, MAIN)
+#define VPIN_LCD_D4 VPIN_PACK(1, 4, MAIN)
+#define VPIN_LCD_D5 VPIN_PACK(1, 5, MAIN)
+#define VPIN_LCD_D6 VPIN_PACK(1, 6, MAIN)
+#define VPIN_LCD_D7 VPIN_PACK(1, 7, MAIN)
+#define VPIN_LCD_D8 VPIN_PACK(1, 8, MAIN)
+#define VPIN_LCD_D9 VPIN_PACK(1, 9, MAIN)
+#define VPIN_LCD_D10 VPIN_PACK(1, 10, MAIN)
+#define VPIN_LCD_D11 VPIN_PACK(1, 11, MAIN)
+#define VPIN_LCD_D12 VPIN_PACK(1, 12, MAIN)
+#define VPIN_LCD_D13 VPIN_PACK(1, 13, MAIN)
+#define VPIN_LCD_D14 VPIN_PACK(1, 14, MAIN)
+#define VPIN_LCD_D15 VPIN_PACK(1, 15, MAIN)
+#define VPIN_LCD_RESET VPIN_PACK(1, 16, MAIN)
+#define VPIN_LCD_RS VPIN_PACK(1, 17, MAIN)
+#define VPIN_LCD_WR VPIN_PACK(1, 18, MAIN)
+#define VPIN_LCD_CS VPIN_PACK(1, 19, MAIN)
+
+#define VPIN_GPMI_D0 VPIN_PACK(0, 0, MAIN)
+#define VPIN_GPMI_D1 VPIN_PACK(0, 1, MAIN)
+#define VPIN_GPMI_D2 VPIN_PACK(0, 2, MAIN)
+#define VPIN_GPMI_D3 VPIN_PACK(0, 3, MAIN)
+#define VPIN_GPMI_D4 VPIN_PACK(0, 4, MAIN)
+#define VPIN_GPMI_D5 VPIN_PACK(0, 5, MAIN)
+#define VPIN_GPMI_D6 VPIN_PACK(0, 6, MAIN)
+#define VPIN_GPMI_D7 VPIN_PACK(0, 7, MAIN)
+#define VPIN_GPMI_D8 VPIN_PACK(0, 8, MAIN)
+#define VPIN_GPMI_D9 VPIN_PACK(0, 9, MAIN)
+#define VPIN_GPMI_D10 VPIN_PACK(0, 10, MAIN)
+#define VPIN_GPMI_D11 VPIN_PACK(0, 11, MAIN)
+#define VPIN_GPMI_D12 VPIN_PACK(0, 12, MAIN)
+#define VPIN_GPMI_D13 VPIN_PACK(0, 13, MAIN)
+#define VPIN_GPMI_D14 VPIN_PACK(0, 14, MAIN)
+#define VPIN_GPMI_D15 VPIN_PACK(0, 15, MAIN)
+#define VPIN_GPMI_IRQ VPIN_PACK(0, 16, MAIN)
+#define VPIN_GPMI_RDn VPIN_PACK(0, 17, MAIN)
+#define VPIN_GPMI_RDY VPIN_PACK(0, 18, MAIN)
+#define VPIN_GPMI_RDY3 VPIN_PACK(0, 19, MAIN)
+#define VPIN_GPMI_RDY2 VPIN_PACK(0, 20, MAIN)
+#define VPIN_GPMI_WRn VPIN_PACK(0, 21, MAIN)
+#define VPIN_GPMI_A0 VPIN_PACK(0, 22, MAIN)
+#define VPIN_GPMI_A1 VPIN_PACK(0, 23, MAIN)
+#define VPIN_GPMI_A2 VPIN_PACK(0, 24, MAIN)
+#define VPIN_GPMI_RESETn VPIN_PACK(1, 20, MAIN)
+#define VPIN_GPMI_CE0n VPIN_PACK(3, 0, ALT1)
+#define VPIN_GPMI_CE1n VPIN_PACK(3, 1, ALT1)
+
+#endif /* __PINS_STMP3600__ */ \ No newline at end of file