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