1 /* 2 * This file is part of the flashrom project. 3 * 4 * Copyright (C) 2009 Carl-Daniel Hailfinger 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. 15 */ 16 17 #include "programmer.h" 18 19 int superio_count = 0; 20 #define SUPERIO_MAX_COUNT 3 21 22 struct superio superios[SUPERIO_MAX_COUNT]; 23 register_superio(struct superio s)24int register_superio(struct superio s) 25 { 26 if (superio_count == SUPERIO_MAX_COUNT) 27 return 1; 28 superios[superio_count++] = s; 29 return 0; 30 } 31 probe_superio(void)32void probe_superio(void) 33 { 34 probe_superio_winbond(); 35 /* ITE probe causes SMSC LPC47N217 to power off the serial UART. 36 * Always probe for SMSC first, and if a SMSC Super I/O is detected 37 * at a given I/O port, do _not_ probe that port with the ITE probe. 38 * This means SMSC probing must be done before ITE probing. 39 */ 40 //probe_superio_smsc(); 41 probe_superio_ite(); 42 } 43