Sven Schnelle | 071d835 | 2011-03-03 08:29:03 +0000 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright (C) 2011 Sven Schnelle <svens@stackframe.org> |
| 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; either version 2 of the License, or |
| 9 | * (at your option) any later version. |
| 10 | * |
| 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. |
Sven Schnelle | 071d835 | 2011-03-03 08:29:03 +0000 | [diff] [blame] | 15 | */ |
| 16 | |
| 17 | #ifndef SUPERIO_NSC_PC87384_H |
| 18 | #define SUPERIO_NSC_PC87384_H |
| 19 | |
| 20 | #define PC87384_PP 0x01 |
| 21 | #define PC87384_SP2 0x02 |
| 22 | #define PC87384_SP1 0x03 |
| 23 | #define PC87384_GPIO 0x07 |
Sven Schnelle | ae08c56 | 2011-04-12 18:18:12 +0000 | [diff] [blame] | 24 | |
| 25 | #define PC87384_GPIO_PIN_OE 0x01 |
| 26 | #define PC87384_GPIO_PIN_TYPE_PUSH_PULL 0x02 |
| 27 | #define PC87384_GPIO_PIN_PULLUP 0x04 |
| 28 | #define PC87384_GPIO_PIN_LOCK 0x08 |
| 29 | #define PC87384_GPIO_PIN_TRIG_LEVEL 0x10 |
| 30 | #define PC87384_GPIO_PIN_TRIG_LOW 0x20 |
| 31 | #define PC87384_GPIO_PIN_DEBOUNCE 0x40 |
| 32 | |
| 33 | #define PC87384_GPIO_PIN_TRIGGERS_IRQ 0x01 |
| 34 | |
Sven Schnelle | 071d835 | 2011-03-03 08:29:03 +0000 | [diff] [blame] | 35 | #endif |