diff options
author | Steven Sherk <steven.sherk@se-eng.com> | 2013-04-11 08:40:57 -0600 |
---|---|---|
committer | Ronald G. Minnich <rminnich@gmail.com> | 2013-04-12 00:37:34 +0200 |
commit | d9de6c4f0eb1c863f8fd81ede326973ad1aab0f2 (patch) | |
tree | cd4fdf68fd796f4aa4111a5165cc5593657814fd /src/superio/nuvoton/nct5104d/nct5104d.h | |
parent | 6a1210901dff47a65dac157445f0a76219be0d55 (diff) |
Add new superio device
- Added in new support for Nuvoton NCT5104D LPC device.
Change-Id: I0af8c5e3e46fdd0a549475b30917897ae9e144a7
Signed-off-by: Steven Sherk <steven.sherk@se-eng.com>
Reviewed-on: http://review.coreboot.org/3072
Tested-by: build bot (Jenkins)
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'src/superio/nuvoton/nct5104d/nct5104d.h')
-rwxr-xr-x | src/superio/nuvoton/nct5104d/nct5104d.h | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/src/superio/nuvoton/nct5104d/nct5104d.h b/src/superio/nuvoton/nct5104d/nct5104d.h new file mode 100755 index 0000000000..2f833afde9 --- /dev/null +++ b/src/superio/nuvoton/nct5104d/nct5104d.h @@ -0,0 +1,40 @@ +/* + * This file is part of the coreboot project. + * + * Copyright (C) 2011 Advanced Micro Devices, Inc. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + */ + +#ifndef SUPERIO_NUVOTON_NCT5104D_NCT5104D_H +#define SUPERIO_NUVOTON_NCT5104D_NCT5104D_H + +/* Logical Device Numbers (LDN). */ +#define NCT5104D_SP1 0x02 /* Com1 */ +#define NCT5104D_SP2 0x03 /* Com2 */ +#define NCT5104D_GPIO_WDT 0x08 /* GPIO WDT Interface */ +#define NCT5104D_GPIO_PP_OD 0xF /* GPIO Push-Pull / Open drain select */ + +/* Virtual Logical Device Numbers (LDN) */ +#define NCT5104D_GPIO_V 0x07 /* GPIO - 0,1,6 Interface */ + +/* Virtual devices sharing the enables are encoded as follows: + VLDN = baseLDN[7:0] | [10:8] bitpos of enable in 0x30 of baseLDN +*/ +#define NCT5104D_GPIO0 ((0 << 8) | NCT5104D_GPIO_V) +#define NCT5104D_GPIO1 ((1 << 8) | NCT5104D_GPIO_V) +#define NCT5104D_GPIO6 ((6 << 8) | NCT5104D_GPIO_V) + +#endif |