Various license header consistency fixes (trivial).
[coreboot.git] / src / mainboard / roda / rk886ex / m3885.h
1 /*
2  * This file is part of the coreboot project.
3  *
4  * Copyright (C) 2008-2009 coresystems GmbH
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public License
16  * along with this program; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18  */
19
20 #ifndef _MAINBOARD_M3885_H
21 #define _MAINBOARD_M3885_H
22
23 #define M3885_CMCMD             0x04
24 #define M3885_CMDAT1            0x05
25 #define M3885_CMDAT2            0x06
26 #define M3885_CMDAT3            0x07
27
28 #define M3885_GPIO_LEVEL        (0<<7)
29 #define M3885_GPIO_PULSE        (1<<7)
30
31 #define M3885_GPIO_READ         (0<<5)
32 #define M3885_GPIO_SET          (1<<5)
33 #define M3885_GPIO_CLEAR        (2<<5)
34 #define M3885_GPIO_TOGGLE       (3<<5)
35
36 #define M3885_GPIO_P14          (0x00<<0)
37 #define M3885_GPIO_P15          (0x01<<0)
38 #define M3885_GPIO_P16          (0x02<<0)
39 #define M3885_GPIO_P17          (0x03<<0)
40
41 #define M3885_GPIO_P54          (0x04<<0)
42 #define M3885_GPIO_P55          (0x05<<0)
43 #define M3885_GPIO_P56          (0x06<<0)
44 #define M3885_GPIO_P57          (0x07<<0)
45
46 #define M3885_GPIO_P20          (0x08<<0)
47 #define M3885_GPIO_P21          (0x09<<0)
48 #define M3885_GPIO_P22          (0x0a<<0)
49 #define M3885_GPIO_P23          (0x0b<<0)
50 #define M3885_GPIO_P24          (0x0c<<0)
51 #define M3885_GPIO_P25          (0x0d<<0)
52 #define M3885_GPIO_P26          (0x0e<<0)
53 #define M3885_GPIO_P27          (0x0f<<0)
54
55 #define M3885_GPIO_P40          (0x10<<0)
56 #define M3885_GPIO_P41          (0x11<<0)
57 #define M3885_GPIO_P42          (0x12<<0)
58 #define M3885_GPIO_P43          (0x13<<0)
59 #define M3885_GPIO_P44          (0x14<<0)
60 #define M3885_GPIO_P45          (0x15<<0)
61 #define M3885_GPIO_P46          (0x16<<0)
62 #define M3885_GPIO_P47          (0x17<<0)
63
64 #define M3885_GPIO_P60          (0x18<<0)
65 #define M3885_GPIO_P61          (0x19<<0)
66 #define M3885_GPIO_P62          (0x1a<<0)
67 #define M3885_GPIO_P63          (0x1b<<0)
68 #define M3885_GPIO_P64          (0x1c<<0)
69 #define M3885_GPIO_P65          (0x1d<<0)
70 #define M3885_GPIO_P66          (0x1e<<0)
71 #define M3885_GPIO_P67          (0x1f<<0)
72
73 void m3885_configure_multikey(void);
74 u8 m3885_gpio(u8 value);
75
76 #endif