summaryrefslogtreecommitdiff
path: root/arch/blackfin/include/asm/mach-bf609/ports.h
blob: b361c7bcbe79ccf2e1d462246fbed26e4986a874 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
/*
 * Port Masks
 */

#ifndef __BFIN_PERIPHERAL_PORT__
#define __BFIN_PERIPHERAL_PORT__

/* PORTx_MUX Masks */
#define PORT_x_MUX_0_MASK	0x00000003
#define PORT_x_MUX_1_MASK	0x0000000C
#define PORT_x_MUX_2_MASK	0x00000030
#define PORT_x_MUX_3_MASK	0x000000C0
#define PORT_x_MUX_4_MASK	0x00000300
#define PORT_x_MUX_5_MASK	0x00000C00
#define PORT_x_MUX_6_MASK	0x00003000
#define PORT_x_MUX_7_MASK	0x0000C000
#define PORT_x_MUX_8_MASK	0x00030000
#define PORT_x_MUX_9_MASK	0x000C0000
#define PORT_x_MUX_10_MASK	0x00300000
#define PORT_x_MUX_11_MASK	0x00C00000
#define PORT_x_MUX_12_MASK	0x03000000
#define PORT_x_MUX_13_MASK	0x0C000000
#define PORT_x_MUX_14_MASK	0x30000000
#define PORT_x_MUX_15_MASK	0xC0000000

#define PORT_x_MUX_FUNC_1	(0x0)
#define PORT_x_MUX_FUNC_2	(0x1)
#define PORT_x_MUX_FUNC_3	(0x2)
#define PORT_x_MUX_FUNC_4	(0x3)
#define PORT_x_MUX_0_FUNC_1	(PORT_x_MUX_FUNC_1 << 0)
#define PORT_x_MUX_0_FUNC_2	(PORT_x_MUX_FUNC_2 << 0)
#define PORT_x_MUX_0_FUNC_3	(PORT_x_MUX_FUNC_3 << 0)
#define PORT_x_MUX_0_FUNC_4	(PORT_x_MUX_FUNC_4 << 0)
#define PORT_x_MUX_1_FUNC_1	(PORT_x_MUX_FUNC_1 << 2)
#define PORT_x_MUX_1_FUNC_2	(PORT_x_MUX_FUNC_2 << 2)
#define PORT_x_MUX_1_FUNC_3	(PORT_x_MUX_FUNC_3 << 2)
#define PORT_x_MUX_1_FUNC_4	(PORT_x_MUX_FUNC_4 << 2)
#define PORT_x_MUX_2_FUNC_1	(PORT_x_MUX_FUNC_1 << 4)
#define PORT_x_MUX_2_FUNC_2	(PORT_x_MUX_FUNC_2 << 4)
#define PORT_x_MUX_2_FUNC_3	(PORT_x_MUX_FUNC_3 << 4)
#define PORT_x_MUX_2_FUNC_4	(PORT_x_MUX_FUNC_4 << 4)
#define PORT_x_MUX_3_FUNC_1	(PORT_x_MUX_FUNC_1 << 6)
#define PORT_x_MUX_3_FUNC_2	(PORT_x_MUX_FUNC_2 << 6)
#define PORT_x_MUX_3_FUNC_3	(PORT_x_MUX_FUNC_3 << 6)
#define PORT_x_MUX_3_FUNC_4	(PORT_x_MUX_FUNC_4 << 6)
#define PORT_x_MUX_4_FUNC_1	(PORT_x_MUX_FUNC_1 << 8)
#define PORT_x_MUX_4_FUNC_2	(PORT_x_MUX_FUNC_2 << 8)
#define PORT_x_MUX_4_FUNC_3	(PORT_x_MUX_FUNC_3 << 8)
#define PORT_x_MUX_4_FUNC_4	(PORT_x_MUX_FUNC_4 << 8)
#define PORT_x_MUX_5_FUNC_1	(PORT_x_MUX_FUNC_1 << 10)
#define PORT_x_MUX_5_FUNC_2	(PORT_x_MUX_FUNC_2 << 10)
#define PORT_x_MUX_5_FUNC_3	(PORT_x_MUX_FUNC_3 << 10)
#define PORT_x_MUX_5_FUNC_4	(PORT_x_MUX_FUNC_4 << 10)
#define PORT_x_MUX_6_FUNC_1	(PORT_x_MUX_FUNC_1 << 12)
#define PORT_x_MUX_6_FUNC_2	(PORT_x_MUX_FUNC_2 << 12)
#define PORT_x_MUX_6_FUNC_3	(PORT_x_MUX_FUNC_3 << 12)
#define PORT_x_MUX_6_FUNC_4	(PORT_x_MUX_FUNC_4 << 12)
#define PORT_x_MUX_7_FUNC_1	(PORT_x_MUX_FUNC_1 << 14)
#define PORT_x_MUX_7_FUNC_2	(PORT_x_MUX_FUNC_2 << 14)
#define PORT_x_MUX_7_FUNC_3	(PORT_x_MUX_FUNC_3 << 14)
#define PORT_x_MUX_7_FUNC_4	(PORT_x_MUX_FUNC_4 << 14)
#define PORT_x_MUX_8_FUNC_1	(PORT_x_MUX_FUNC_1 << 16)
#define PORT_x_MUX_8_FUNC_2	(PORT_x_MUX_FUNC_2 << 16)
#define PORT_x_MUX_8_FUNC_3	(PORT_x_MUX_FUNC_3 << 16)
#define PORT_x_MUX_8_FUNC_4	(PORT_x_MUX_FUNC_4 << 16)
#define PORT_x_MUX_9_FUNC_1	(PORT_x_MUX_FUNC_1 << 18)
#define PORT_x_MUX_9_FUNC_2	(PORT_x_MUX_FUNC_2 << 18)
#define PORT_x_MUX_9_FUNC_3	(PORT_x_MUX_FUNC_3 << 18)
#define PORT_x_MUX_9_FUNC_4	(PORT_x_MUX_FUNC_4 << 18)
#define PORT_x_MUX_10_FUNC_1	(PORT_x_MUX_FUNC_1 << 20)
#define PORT_x_MUX_10_FUNC_2	(PORT_x_MUX_FUNC_2 << 20)
#define PORT_x_MUX_10_FUNC_3	(PORT_x_MUX_FUNC_3 << 20)
#define PORT_x_MUX_10_FUNC_4	(PORT_x_MUX_FUNC_4 << 20)
#define PORT_x_MUX_11_FUNC_1	(PORT_x_MUX_FUNC_1 << 22)
#define PORT_x_MUX_11_FUNC_2	(PORT_x_MUX_FUNC_2 << 22)
#define PORT_x_MUX_11_FUNC_3	(PORT_x_MUX_FUNC_3 << 22)
#define PORT_x_MUX_11_FUNC_4	(PORT_x_MUX_FUNC_4 << 22)
#define PORT_x_MUX_12_FUNC_1	(PORT_x_MUX_FUNC_1 << 24)
#define PORT_x_MUX_12_FUNC_2	(PORT_x_MUX_FUNC_2 << 24)
#define PORT_x_MUX_12_FUNC_3	(PORT_x_MUX_FUNC_3 << 24)
#define PORT_x_MUX_12_FUNC_4	(PORT_x_MUX_FUNC_4 << 24)
#define PORT_x_MUX_13_FUNC_1	(PORT_x_MUX_FUNC_1 << 26)
#define PORT_x_MUX_13_FUNC_2	(PORT_x_MUX_FUNC_2 << 26)
#define PORT_x_MUX_13_FUNC_3	(PORT_x_MUX_FUNC_3 << 26)
#define PORT_x_MUX_13_FUNC_4	(PORT_x_MUX_FUNC_4 << 26)
#define PORT_x_MUX_14_FUNC_1	(PORT_x_MUX_FUNC_1 << 28)
#define PORT_x_MUX_14_FUNC_2	(PORT_x_MUX_FUNC_2 << 28)
#define PORT_x_MUX_14_FUNC_3	(PORT_x_MUX_FUNC_3 << 28)
#define PORT_x_MUX_14_FUNC_4	(PORT_x_MUX_FUNC_4 << 28)
#define PORT_x_MUX_15_FUNC_1	(PORT_x_MUX_FUNC_1 << 30)
#define PORT_x_MUX_15_FUNC_2	(PORT_x_MUX_FUNC_2 << 30)
#define PORT_x_MUX_15_FUNC_3	(PORT_x_MUX_FUNC_3 << 30)
#define PORT_x_MUX_15_FUNC_4	(PORT_x_MUX_FUNC_4 << 30)

#include "../mach-common/bits/ports-a.h"
#include "../mach-common/bits/ports-b.h"
#include "../mach-common/bits/ports-c.h"
#include "../mach-common/bits/ports-d.h"
#include "../mach-common/bits/ports-e.h"
#include "../mach-common/bits/ports-f.h"
#include "../mach-common/bits/ports-g.h"

#endif