blob: f1e9cc00d4df8c930d52b4b3ee3b3d151b362404 [file] [log] [blame]
Mike Frysinger69148652008-10-11 21:55:21 -04001/*
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 0x0003
10#define PORT_x_MUX_1_MASK 0x000C
11#define PORT_x_MUX_2_MASK 0x0030
12#define PORT_x_MUX_3_MASK 0x00C0
13#define PORT_x_MUX_4_MASK 0x0300
14#define PORT_x_MUX_5_MASK 0x0C00
15#define PORT_x_MUX_6_MASK 0x3000
16#define PORT_x_MUX_7_MASK 0xC000
17
18#define PORT_x_MUX_FUNC_1 (0x0)
19#define PORT_x_MUX_FUNC_2 (0x1)
20#define PORT_x_MUX_FUNC_3 (0x2)
21#define PORT_x_MUX_FUNC_4 (0x3)
22#define PORT_x_MUX_0_FUNC_1 (PORT_x_MUX_FUNC_1 << 0)
23#define PORT_x_MUX_0_FUNC_2 (PORT_x_MUX_FUNC_2 << 0)
24#define PORT_x_MUX_0_FUNC_3 (PORT_x_MUX_FUNC_3 << 0)
25#define PORT_x_MUX_0_FUNC_4 (PORT_x_MUX_FUNC_4 << 0)
26#define PORT_x_MUX_1_FUNC_1 (PORT_x_MUX_FUNC_1 << 2)
27#define PORT_x_MUX_1_FUNC_2 (PORT_x_MUX_FUNC_2 << 2)
28#define PORT_x_MUX_1_FUNC_3 (PORT_x_MUX_FUNC_3 << 2)
29#define PORT_x_MUX_1_FUNC_4 (PORT_x_MUX_FUNC_4 << 2)
30#define PORT_x_MUX_2_FUNC_1 (PORT_x_MUX_FUNC_1 << 4)
31#define PORT_x_MUX_2_FUNC_2 (PORT_x_MUX_FUNC_2 << 4)
32#define PORT_x_MUX_2_FUNC_3 (PORT_x_MUX_FUNC_3 << 4)
33#define PORT_x_MUX_2_FUNC_4 (PORT_x_MUX_FUNC_4 << 4)
34#define PORT_x_MUX_3_FUNC_1 (PORT_x_MUX_FUNC_1 << 6)
35#define PORT_x_MUX_3_FUNC_2 (PORT_x_MUX_FUNC_2 << 6)
36#define PORT_x_MUX_3_FUNC_3 (PORT_x_MUX_FUNC_3 << 6)
37#define PORT_x_MUX_3_FUNC_4 (PORT_x_MUX_FUNC_4 << 6)
38#define PORT_x_MUX_4_FUNC_1 (PORT_x_MUX_FUNC_1 << 8)
39#define PORT_x_MUX_4_FUNC_2 (PORT_x_MUX_FUNC_2 << 8)
40#define PORT_x_MUX_4_FUNC_3 (PORT_x_MUX_FUNC_3 << 8)
41#define PORT_x_MUX_4_FUNC_4 (PORT_x_MUX_FUNC_4 << 8)
42#define PORT_x_MUX_5_FUNC_1 (PORT_x_MUX_FUNC_1 << 10)
43#define PORT_x_MUX_5_FUNC_2 (PORT_x_MUX_FUNC_2 << 10)
44#define PORT_x_MUX_5_FUNC_3 (PORT_x_MUX_FUNC_3 << 10)
45#define PORT_x_MUX_5_FUNC_4 (PORT_x_MUX_FUNC_4 << 10)
46#define PORT_x_MUX_6_FUNC_1 (PORT_x_MUX_FUNC_1 << 12)
47#define PORT_x_MUX_6_FUNC_2 (PORT_x_MUX_FUNC_2 << 12)
48#define PORT_x_MUX_6_FUNC_3 (PORT_x_MUX_FUNC_3 << 12)
49#define PORT_x_MUX_6_FUNC_4 (PORT_x_MUX_FUNC_4 << 12)
50#define PORT_x_MUX_7_FUNC_1 (PORT_x_MUX_FUNC_1 << 14)
51#define PORT_x_MUX_7_FUNC_2 (PORT_x_MUX_FUNC_2 << 14)
52#define PORT_x_MUX_7_FUNC_3 (PORT_x_MUX_FUNC_3 << 14)
53#define PORT_x_MUX_7_FUNC_4 (PORT_x_MUX_FUNC_4 << 14)
54
55#include "../mach-common/bits/ports-f.h"
56#include "../mach-common/bits/ports-g.h"
57#include "../mach-common/bits/ports-h.h"
58
59#endif