Mike Frysinger | 66c4cf4 | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 1 | /* |
| 2 | * Port Masks |
| 3 | */ |
| 4 | |
| 5 | #ifndef __BFIN_PERIPHERAL_PORT__ |
| 6 | #define __BFIN_PERIPHERAL_PORT__ |
| 7 | |
| 8 | /* PORTx_MUX Masks */ |
| 9 | #define PORT_x_MUX_0_MASK 0x00000003 |
| 10 | #define PORT_x_MUX_1_MASK 0x0000000C |
| 11 | #define PORT_x_MUX_2_MASK 0x00000030 |
| 12 | #define PORT_x_MUX_3_MASK 0x000000C0 |
| 13 | #define PORT_x_MUX_4_MASK 0x00000300 |
| 14 | #define PORT_x_MUX_5_MASK 0x00000C00 |
| 15 | #define PORT_x_MUX_6_MASK 0x00003000 |
| 16 | #define PORT_x_MUX_7_MASK 0x0000C000 |
| 17 | #define PORT_x_MUX_8_MASK 0x00030000 |
| 18 | #define PORT_x_MUX_9_MASK 0x000C0000 |
| 19 | #define PORT_x_MUX_10_MASK 0x00300000 |
| 20 | #define PORT_x_MUX_11_MASK 0x00C00000 |
| 21 | #define PORT_x_MUX_12_MASK 0x03000000 |
| 22 | #define PORT_x_MUX_13_MASK 0x0C000000 |
| 23 | #define PORT_x_MUX_14_MASK 0x30000000 |
| 24 | #define PORT_x_MUX_15_MASK 0xC0000000 |
| 25 | |
| 26 | #define PORT_x_MUX_FUNC_1 (0x0) |
| 27 | #define PORT_x_MUX_FUNC_2 (0x1) |
| 28 | #define PORT_x_MUX_FUNC_3 (0x2) |
| 29 | #define PORT_x_MUX_FUNC_4 (0x3) |
| 30 | #define PORT_x_MUX_0_FUNC_1 (PORT_x_MUX_FUNC_1 << 0) |
| 31 | #define PORT_x_MUX_0_FUNC_2 (PORT_x_MUX_FUNC_2 << 0) |
| 32 | #define PORT_x_MUX_0_FUNC_3 (PORT_x_MUX_FUNC_3 << 0) |
| 33 | #define PORT_x_MUX_0_FUNC_4 (PORT_x_MUX_FUNC_4 << 0) |
| 34 | #define PORT_x_MUX_1_FUNC_1 (PORT_x_MUX_FUNC_1 << 2) |
| 35 | #define PORT_x_MUX_1_FUNC_2 (PORT_x_MUX_FUNC_2 << 2) |
| 36 | #define PORT_x_MUX_1_FUNC_3 (PORT_x_MUX_FUNC_3 << 2) |
| 37 | #define PORT_x_MUX_1_FUNC_4 (PORT_x_MUX_FUNC_4 << 2) |
| 38 | #define PORT_x_MUX_2_FUNC_1 (PORT_x_MUX_FUNC_1 << 4) |
| 39 | #define PORT_x_MUX_2_FUNC_2 (PORT_x_MUX_FUNC_2 << 4) |
| 40 | #define PORT_x_MUX_2_FUNC_3 (PORT_x_MUX_FUNC_3 << 4) |
| 41 | #define PORT_x_MUX_2_FUNC_4 (PORT_x_MUX_FUNC_4 << 4) |
| 42 | #define PORT_x_MUX_3_FUNC_1 (PORT_x_MUX_FUNC_1 << 6) |
| 43 | #define PORT_x_MUX_3_FUNC_2 (PORT_x_MUX_FUNC_2 << 6) |
| 44 | #define PORT_x_MUX_3_FUNC_3 (PORT_x_MUX_FUNC_3 << 6) |
| 45 | #define PORT_x_MUX_3_FUNC_4 (PORT_x_MUX_FUNC_4 << 6) |
| 46 | #define PORT_x_MUX_4_FUNC_1 (PORT_x_MUX_FUNC_1 << 8) |
| 47 | #define PORT_x_MUX_4_FUNC_2 (PORT_x_MUX_FUNC_2 << 8) |
| 48 | #define PORT_x_MUX_4_FUNC_3 (PORT_x_MUX_FUNC_3 << 8) |
| 49 | #define PORT_x_MUX_4_FUNC_4 (PORT_x_MUX_FUNC_4 << 8) |
| 50 | #define PORT_x_MUX_5_FUNC_1 (PORT_x_MUX_FUNC_1 << 10) |
| 51 | #define PORT_x_MUX_5_FUNC_2 (PORT_x_MUX_FUNC_2 << 10) |
| 52 | #define PORT_x_MUX_5_FUNC_3 (PORT_x_MUX_FUNC_3 << 10) |
| 53 | #define PORT_x_MUX_5_FUNC_4 (PORT_x_MUX_FUNC_4 << 10) |
| 54 | #define PORT_x_MUX_6_FUNC_1 (PORT_x_MUX_FUNC_1 << 12) |
| 55 | #define PORT_x_MUX_6_FUNC_2 (PORT_x_MUX_FUNC_2 << 12) |
| 56 | #define PORT_x_MUX_6_FUNC_3 (PORT_x_MUX_FUNC_3 << 12) |
| 57 | #define PORT_x_MUX_6_FUNC_4 (PORT_x_MUX_FUNC_4 << 12) |
| 58 | #define PORT_x_MUX_7_FUNC_1 (PORT_x_MUX_FUNC_1 << 14) |
| 59 | #define PORT_x_MUX_7_FUNC_2 (PORT_x_MUX_FUNC_2 << 14) |
| 60 | #define PORT_x_MUX_7_FUNC_3 (PORT_x_MUX_FUNC_3 << 14) |
| 61 | #define PORT_x_MUX_7_FUNC_4 (PORT_x_MUX_FUNC_4 << 14) |
Ben Maan | 15d5c7c | 2008-08-07 13:14:21 -0400 | [diff] [blame] | 62 | #define PORT_x_MUX_8_FUNC_1 (PORT_x_MUX_FUNC_1 << 16) |
| 63 | #define PORT_x_MUX_8_FUNC_2 (PORT_x_MUX_FUNC_2 << 16) |
| 64 | #define PORT_x_MUX_8_FUNC_3 (PORT_x_MUX_FUNC_3 << 16) |
| 65 | #define PORT_x_MUX_8_FUNC_4 (PORT_x_MUX_FUNC_4 << 16) |
| 66 | #define PORT_x_MUX_9_FUNC_1 (PORT_x_MUX_FUNC_1 << 18) |
| 67 | #define PORT_x_MUX_9_FUNC_2 (PORT_x_MUX_FUNC_2 << 18) |
| 68 | #define PORT_x_MUX_9_FUNC_3 (PORT_x_MUX_FUNC_3 << 18) |
| 69 | #define PORT_x_MUX_9_FUNC_4 (PORT_x_MUX_FUNC_4 << 18) |
| 70 | #define PORT_x_MUX_10_FUNC_1 (PORT_x_MUX_FUNC_1 << 20) |
| 71 | #define PORT_x_MUX_10_FUNC_2 (PORT_x_MUX_FUNC_2 << 20) |
| 72 | #define PORT_x_MUX_10_FUNC_3 (PORT_x_MUX_FUNC_3 << 20) |
| 73 | #define PORT_x_MUX_10_FUNC_4 (PORT_x_MUX_FUNC_4 << 20) |
| 74 | #define PORT_x_MUX_11_FUNC_1 (PORT_x_MUX_FUNC_1 << 22) |
| 75 | #define PORT_x_MUX_11_FUNC_2 (PORT_x_MUX_FUNC_2 << 22) |
| 76 | #define PORT_x_MUX_11_FUNC_3 (PORT_x_MUX_FUNC_3 << 22) |
| 77 | #define PORT_x_MUX_11_FUNC_4 (PORT_x_MUX_FUNC_4 << 22) |
| 78 | #define PORT_x_MUX_12_FUNC_1 (PORT_x_MUX_FUNC_1 << 24) |
| 79 | #define PORT_x_MUX_12_FUNC_2 (PORT_x_MUX_FUNC_2 << 24) |
| 80 | #define PORT_x_MUX_12_FUNC_3 (PORT_x_MUX_FUNC_3 << 24) |
| 81 | #define PORT_x_MUX_12_FUNC_4 (PORT_x_MUX_FUNC_4 << 24) |
| 82 | #define PORT_x_MUX_13_FUNC_1 (PORT_x_MUX_FUNC_1 << 26) |
| 83 | #define PORT_x_MUX_13_FUNC_2 (PORT_x_MUX_FUNC_2 << 26) |
| 84 | #define PORT_x_MUX_13_FUNC_3 (PORT_x_MUX_FUNC_3 << 26) |
| 85 | #define PORT_x_MUX_13_FUNC_4 (PORT_x_MUX_FUNC_4 << 26) |
| 86 | #define PORT_x_MUX_14_FUNC_1 (PORT_x_MUX_FUNC_1 << 28) |
| 87 | #define PORT_x_MUX_14_FUNC_2 (PORT_x_MUX_FUNC_2 << 28) |
| 88 | #define PORT_x_MUX_14_FUNC_3 (PORT_x_MUX_FUNC_3 << 28) |
| 89 | #define PORT_x_MUX_14_FUNC_4 (PORT_x_MUX_FUNC_4 << 28) |
| 90 | #define PORT_x_MUX_15_FUNC_1 (PORT_x_MUX_FUNC_1 << 30) |
| 91 | #define PORT_x_MUX_15_FUNC_2 (PORT_x_MUX_FUNC_2 << 30) |
| 92 | #define PORT_x_MUX_15_FUNC_3 (PORT_x_MUX_FUNC_3 << 30) |
| 93 | #define PORT_x_MUX_15_FUNC_4 (PORT_x_MUX_FUNC_4 << 30) |
Mike Frysinger | 66c4cf4 | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 94 | |
Mike Frysinger | e562dcc | 2009-02-07 05:25:35 -0500 | [diff] [blame^] | 95 | #include "../mach-common/bits/ports-a.h" |
| 96 | #include "../mach-common/bits/ports-b.h" |
| 97 | #include "../mach-common/bits/ports-c.h" |
| 98 | #include "../mach-common/bits/ports-d.h" |
| 99 | #include "../mach-common/bits/ports-e.h" |
| 100 | #include "../mach-common/bits/ports-f.h" |
| 101 | #include "../mach-common/bits/ports-g.h" |
| 102 | #include "../mach-common/bits/ports-h.h" |
| 103 | #include "../mach-common/bits/ports-i.h" |
| 104 | #include "../mach-common/bits/ports-j.h" |
Mike Frysinger | 66c4cf4 | 2008-02-04 19:26:55 -0500 | [diff] [blame] | 105 | |
| 106 | #endif |