diff options
Diffstat (limited to 'firmware')
-rw-r--r-- | firmware/target/arm/imx233/pins/pins-stmp3600.h | 90 | ||||
-rw-r--r-- | firmware/target/arm/imx233/pins/pins-stmp3700.h | 83 |
2 files changed, 173 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 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright © 2013 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef __PINS_STMP3600__ | ||
22 | #define __PINS_STMP3600__ | ||
23 | |||
24 | #define VPIN_PWM(channel) VPIN_PACK(3, 10 + (channel), MAIN) | ||
25 | |||
26 | #define VPIN_I2C_SCL VPIN_PACK(3, 17, MAIN) | ||
27 | #define VPIN_I2C_SDA VPIN_PACK(3, 18, MAIN) | ||
28 | |||
29 | #define VPIN_SSP1_DET VPIN_PACK(0, 25, MAIN) | ||
30 | #define VPIN_SSP1_CMD VPIN_PACK(0, 26, MAIN) | ||
31 | #define VPIN_SSP1_SCK VPIN_PACK(0, 27, MAIN) | ||
32 | #define VPIN_SSP1_D0 VPIN_PACK(0, 28, MAIN) | ||
33 | #define VPIN_SSP1_D1 VPIN_PACK(0, 29, MAIN) | ||
34 | #define VPIN_SSP1_D2 VPIN_PACK(0, 30, MAIN) | ||
35 | #define VPIN_SSP1_D3 VPIN_PACK(0, 31, MAIN) | ||
36 | |||
37 | #define VPIN_UARTDBG_TX VPIN_PACK(3, 11, ALT2) | ||
38 | #define VPIN_UARTDBG_RX VPIN_PACK(3, 10, ALT2) | ||
39 | |||
40 | #define VPIN_LCD_D0 VPIN_PACK(1, 0, MAIN) | ||
41 | #define VPIN_LCD_D1 VPIN_PACK(1, 1, MAIN) | ||
42 | #define VPIN_LCD_D2 VPIN_PACK(1, 2, MAIN) | ||
43 | #define VPIN_LCD_D3 VPIN_PACK(1, 3, MAIN) | ||
44 | #define VPIN_LCD_D4 VPIN_PACK(1, 4, MAIN) | ||
45 | #define VPIN_LCD_D5 VPIN_PACK(1, 5, MAIN) | ||
46 | #define VPIN_LCD_D6 VPIN_PACK(1, 6, MAIN) | ||
47 | #define VPIN_LCD_D7 VPIN_PACK(1, 7, MAIN) | ||
48 | #define VPIN_LCD_D8 VPIN_PACK(1, 8, MAIN) | ||
49 | #define VPIN_LCD_D9 VPIN_PACK(1, 9, MAIN) | ||
50 | #define VPIN_LCD_D10 VPIN_PACK(1, 10, MAIN) | ||
51 | #define VPIN_LCD_D11 VPIN_PACK(1, 11, MAIN) | ||
52 | #define VPIN_LCD_D12 VPIN_PACK(1, 12, MAIN) | ||
53 | #define VPIN_LCD_D13 VPIN_PACK(1, 13, MAIN) | ||
54 | #define VPIN_LCD_D14 VPIN_PACK(1, 14, MAIN) | ||
55 | #define VPIN_LCD_D15 VPIN_PACK(1, 15, MAIN) | ||
56 | #define VPIN_LCD_RESET VPIN_PACK(1, 16, MAIN) | ||
57 | #define VPIN_LCD_RS VPIN_PACK(1, 17, MAIN) | ||
58 | #define VPIN_LCD_WR VPIN_PACK(1, 18, MAIN) | ||
59 | #define VPIN_LCD_CS VPIN_PACK(1, 19, MAIN) | ||
60 | |||
61 | #define VPIN_GPMI_D0 VPIN_PACK(0, 0, MAIN) | ||
62 | #define VPIN_GPMI_D1 VPIN_PACK(0, 1, MAIN) | ||
63 | #define VPIN_GPMI_D2 VPIN_PACK(0, 2, MAIN) | ||
64 | #define VPIN_GPMI_D3 VPIN_PACK(0, 3, MAIN) | ||
65 | #define VPIN_GPMI_D4 VPIN_PACK(0, 4, MAIN) | ||
66 | #define VPIN_GPMI_D5 VPIN_PACK(0, 5, MAIN) | ||
67 | #define VPIN_GPMI_D6 VPIN_PACK(0, 6, MAIN) | ||
68 | #define VPIN_GPMI_D7 VPIN_PACK(0, 7, MAIN) | ||
69 | #define VPIN_GPMI_D8 VPIN_PACK(0, 8, MAIN) | ||
70 | #define VPIN_GPMI_D9 VPIN_PACK(0, 9, MAIN) | ||
71 | #define VPIN_GPMI_D10 VPIN_PACK(0, 10, MAIN) | ||
72 | #define VPIN_GPMI_D11 VPIN_PACK(0, 11, MAIN) | ||
73 | #define VPIN_GPMI_D12 VPIN_PACK(0, 12, MAIN) | ||
74 | #define VPIN_GPMI_D13 VPIN_PACK(0, 13, MAIN) | ||
75 | #define VPIN_GPMI_D14 VPIN_PACK(0, 14, MAIN) | ||
76 | #define VPIN_GPMI_D15 VPIN_PACK(0, 15, MAIN) | ||
77 | #define VPIN_GPMI_IRQ VPIN_PACK(0, 16, MAIN) | ||
78 | #define VPIN_GPMI_RDn VPIN_PACK(0, 17, MAIN) | ||
79 | #define VPIN_GPMI_RDY VPIN_PACK(0, 18, MAIN) | ||
80 | #define VPIN_GPMI_RDY3 VPIN_PACK(0, 19, MAIN) | ||
81 | #define VPIN_GPMI_RDY2 VPIN_PACK(0, 20, MAIN) | ||
82 | #define VPIN_GPMI_WRn VPIN_PACK(0, 21, MAIN) | ||
83 | #define VPIN_GPMI_A0 VPIN_PACK(0, 22, MAIN) | ||
84 | #define VPIN_GPMI_A1 VPIN_PACK(0, 23, MAIN) | ||
85 | #define VPIN_GPMI_A2 VPIN_PACK(0, 24, MAIN) | ||
86 | #define VPIN_GPMI_RESETn VPIN_PACK(1, 20, MAIN) | ||
87 | #define VPIN_GPMI_CE0n VPIN_PACK(3, 0, ALT1) | ||
88 | #define VPIN_GPMI_CE1n VPIN_PACK(3, 1, ALT1) | ||
89 | |||
90 | #endif /* __PINS_STMP3600__ */ \ No newline at end of file | ||
diff --git a/firmware/target/arm/imx233/pins/pins-stmp3700.h b/firmware/target/arm/imx233/pins/pins-stmp3700.h new file mode 100644 index 0000000000..23e77bfedb --- /dev/null +++ b/firmware/target/arm/imx233/pins/pins-stmp3700.h | |||
@@ -0,0 +1,83 @@ | |||
1 | /*************************************************************************** | ||
2 | * __________ __ ___. | ||
3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | * \/ \/ \/ \/ \/ | ||
8 | * $Id$ | ||
9 | * | ||
10 | * Copyright © 2013 by Amaury Pouly | ||
11 | * | ||
12 | * This program is free software; you can redistribute it and/or | ||
13 | * modify it under the terms of the GNU General Public License | ||
14 | * as published by the Free Software Foundation; either version 2 | ||
15 | * of the License, or (at your option) any later version. | ||
16 | * | ||
17 | * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY | ||
18 | * KIND, either express or implied. | ||
19 | * | ||
20 | ****************************************************************************/ | ||
21 | #ifndef __PINS_IMX233__ | ||
22 | #define __PINS_IMX233__ | ||
23 | |||
24 | #define VPIN_PWM(channel) VPIN_PACK(2, 0 + (channel), MAIN) | ||
25 | |||
26 | #define VPIN_I2C_SCL VPIN_PACK(2, 5, MAIN) | ||
27 | #define VPIN_I2C_SDA VPIN_PACK(2, 6, MAIN) | ||
28 | |||
29 | #define VPIN_SSP1_DET VPIN_PACK(1, 28, MAIN) | ||
30 | #define VPIN_SSP1_CMD VPIN_PACK(1, 22, MAIN) | ||
31 | #define VPIN_SSP1_SCK VPIN_PACK(1, 23, MAIN) | ||
32 | #define VPIN_SSP1_D0 VPIN_PACK(1, 24, MAIN) | ||
33 | #define VPIN_SSP1_D1 VPIN_PACK(1, 25, MAIN) | ||
34 | #define VPIN_SSP1_D2 VPIN_PACK(1, 26, MAIN) | ||
35 | #define VPIN_SSP1_D3 VPIN_PACK(1, 27, MAIN) | ||
36 | #define VPIN_SSP1_D4 VPIN_PACK(0, 26, ALT2) | ||
37 | #define VPIN_SSP1_D5 VPIN_PACK(0, 27, ALT2) | ||
38 | #define VPIN_SSP1_D6 VPIN_PACK(0, 28, ALT2) | ||
39 | #define VPIN_SSP1_D7 VPIN_PACK(0, 29, ALT2) | ||
40 | |||
41 | #define VPIN_SSP2_DET VPIN_PACK(0, 19, ALT2) | ||
42 | #define VPIN_SSP2_CMD VPIN_PACK(0, 20, ALT2) | ||
43 | #define VPIN_SSP2_SCK VPIN_PACK(0, 23, ALT2) | ||
44 | #define VPIN_SSP2_D0 VPIN_PACK(2, 14, ALT2) | ||
45 | #define VPIN_SSP2_D1 VPIN_PACK(0, 1, ALT2) | ||
46 | #define VPIN_SSP2_D2 VPIN_PACK(0, 2, ALT2) | ||
47 | #define VPIN_SSP2_D3 VPIN_PACK(0, 3, ALT2) | ||
48 | #define VPIN_SSP2_D4 VPIN_PACK(0, 4, ALT2) | ||
49 | #define VPIN_SSP2_D5 VPIN_PACK(0, 5, ALT2) | ||
50 | #define VPIN_SSP2_D6 VPIN_PACK(0, 6, ALT2) | ||
51 | #define VPIN_SSP2_D7 VPIN_PACK(0, 7, ALT2) | ||
52 | |||
53 | #define VPIN_UARTDBG_TX VPIN_PACK(2, 1, ALT2) | ||
54 | #define VPIN_UARTDBG_RX VPIN_PACK(2, 0, ALT2) | ||
55 | |||
56 | #define VPIN_LCD_D0 VPIN_PACK(1, 0, MAIN) | ||
57 | #define VPIN_LCD_D1 VPIN_PACK(1, 1, MAIN) | ||
58 | #define VPIN_LCD_D2 VPIN_PACK(1, 2, MAIN) | ||
59 | #define VPIN_LCD_D3 VPIN_PACK(1, 3, MAIN) | ||
60 | #define VPIN_LCD_D4 VPIN_PACK(1, 4, MAIN) | ||
61 | #define VPIN_LCD_D5 VPIN_PACK(1, 5, MAIN) | ||
62 | #define VPIN_LCD_D6 VPIN_PACK(1, 6, MAIN) | ||
63 | #define VPIN_LCD_D7 VPIN_PACK(1, 7, MAIN) | ||
64 | #define VPIN_LCD_D8 VPIN_PACK(1, 8, MAIN) | ||
65 | #define VPIN_LCD_D9 VPIN_PACK(1, 9, MAIN) | ||
66 | #define VPIN_LCD_D10 VPIN_PACK(1, 10, MAIN) | ||
67 | #define VPIN_LCD_D11 VPIN_PACK(1, 11, MAIN) | ||
68 | #define VPIN_LCD_D12 VPIN_PACK(1, 12, MAIN) | ||
69 | #define VPIN_LCD_ENABLE VPIN_PACK(1, 12, MAIN) | ||
70 | #define VPIN_LCD_D13 VPIN_PACK(1, 13, MAIN) | ||
71 | #define VPIN_LCD_DOTCLK VPIN_PACK(1, 13, MAIN) | ||
72 | #define VPIN_LCD_D14 VPIN_PACK(1, 14, MAIN) | ||
73 | #define VPIN_LCD_HSYNC VPIN_PACK(1, 14, MAIN) | ||
74 | #define VPIN_LCD_D15 VPIN_PACK(1, 15, MAIN) | ||
75 | #define VPIN_LCD_VSYNC VPIN_PACK(1, 15, ALT2) | ||
76 | #define VPIN_LCD_RESET VPIN_PACK(1, 16, MAIN) | ||
77 | #define VPIN_LCD_RS VPIN_PACK(1, 17, MAIN) | ||
78 | #define VPIN_LCD_WR VPIN_PACK(1, 18, MAIN) | ||
79 | #define VPIN_LCD_RD VPIN_PACK(1, 19, MAIN) | ||
80 | #define VPIN_LCD_CS VPIN_PACK(1, 20, MAIN) | ||
81 | |||
82 | #endif /* __PINS_IMX233__ */ | ||
83 | |||