coreboot-kgpe-d16/src/southbridge/intel/i3100/chip.h
Ed Swierk aaea11b749 Here is an updated patch addressing most of Uwe's and Peter's
comments. Ripping out the ehci/uhci_init() code doesn't seem to have                                                                                                                         
done any harm, and I got rid of a bunch of unused junk in                                                                                                                                    
i3100_smbus.h                                                                                                                                                                                
                                                                                                                                                                                             
I left the *_set_subsystem() arguments unsigned, as that's how the                                                                                                                           
function is declared in include/device/pci.h.                                                                                                                                                
                                                                                                                                                                                             
Signed-off-by: Ed Swierk <eswierk@arastra.com>   
Acked-by: Stefan Reinauer <stepan@coresystems.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3157 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
2008-03-16 23:34:10 +00:00

49 lines
1.5 KiB
C

/*
* This file is part of the coreboot project.
*
* Copyright (C) 2008 Arastra, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*
* 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
*
*/
struct southbridge_intel_i3100_config
{
#define I3100_GPIO_USE_MASK 0x03
#define I3100_GPIO_USE_DEFAULT 0x00
#define I3100_GPIO_USE_AS_NATIVE 0x01
#define I3100_GPIO_USE_AS_GPIO 0x02
#define I3100_GPIO_SEL_MASK 0x0c
#define I3100_GPIO_SEL_DEFAULT 0x00
#define I3100_GPIO_SEL_OUTPUT 0x04
#define I3100_GPIO_SEL_INPUT 0x08
#define I3100_GPIO_LVL_MASK 0x30
#define I3100_GPIO_LVL_DEFAULT 0x00
#define I3100_GPIO_LVL_LOW 0x10
#define I3100_GPIO_LVL_HIGH 0x20
#define I3100_GPIO_LVL_BLINK 0x30
#define I3100_GPIO_INV_MASK 0xc0
#define I3100_GPIO_INV_DEFAULT 0x00
#define I3100_GPIO_INV_OFF 0x40
#define I3100_GPIO_INV_ON 0x80
/* GPIO use select */
u8 gpio[64];
u32 pirq_a_d;
u32 pirq_e_h;
};
extern struct chip_operations southbridge_intel_i3100_ops;