Author: stepan Date: 2010-01-03 00:35:27 +0100 (Sun, 03 Jan 2010) New Revision: 92
Added: trunk/SerialICE/mainboard/asrock_939a785gmh.c Modified: trunk/SerialICE/Kconfig Log: Add support for Asrock 939A785GMH
Signed-off-by: Rudolf Marek r.marek@assembler.cz
Modified: trunk/SerialICE/Kconfig =================================================================== --- trunk/SerialICE/Kconfig 2009-12-12 23:43:38 UTC (rev 91) +++ trunk/SerialICE/Kconfig 2010-01-02 23:35:27 UTC (rev 92) @@ -41,6 +41,10 @@ select VIA_ROMSTRAP select BUILD_XMMSTACK
+config BOARD_ASROCK_939A785GMH + bool "Asrock 939A785GMH" + select BUILD_XMMSTACK + config BOARD_MSI_MS6178 bool "MSI MS6178"
@@ -65,7 +69,7 @@ default "rca_rm4100.c" if BOARD_RCA_RM4100 default "thomson_ip1000.c" if BOARD_THOMSON_IP1000 default "asus_p2b.c" if BOARD_ASUS_P2B - + default "asrock_939a785gmh.c" if BOARD_ASROCK_939A785GMH choice prompt "Target communication"
Added: trunk/SerialICE/mainboard/asrock_939a785gmh.c =================================================================== --- trunk/SerialICE/mainboard/asrock_939a785gmh.c (rev 0) +++ trunk/SerialICE/mainboard/asrock_939a785gmh.c 2010-01-02 23:35:27 UTC (rev 92) @@ -0,0 +1,47 @@ +/* + * SerialICE + * + * Copyright (C) 2006 Uwe Hermann uwe@hermann-uwe.de + * Copyright (C) 2009 Rudolf Marek r.marek@assembler.cz + * + * 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; version 2 of the License. + * + * 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 + */ + +const char boardname[33]="Asrock 939a785gmh "; + +#define SUPERIO_CONFIG_PORT 0x2e + +static void superio_init(void) +{ + pnp_enter_ext_func_mode(SUPERIO_CONFIG_PORT); + + /* Enable the serial port. */ + pnp_set_logical_device(SUPERIO_CONFIG_PORT, 2); /* COM1 */ + pnp_set_enable(SUPERIO_CONFIG_PORT, 0); + pnp_set_iobase0(SUPERIO_CONFIG_PORT, 0x3f8); + pnp_set_irq0(SUPERIO_CONFIG_PORT, 4); + pnp_set_enable(SUPERIO_CONFIG_PORT, 1); + + pnp_exit_ext_func_mode(SUPERIO_CONFIG_PORT); +} + +static void chipset_init(void) +{ + + /* Enable LPC decoding */ + pci_write_config8(PCI_ADDR(0, 0x14, 3, 0x44), (1<<6)); + pci_write_config8(PCI_ADDR(0, 0x14, 3, 0x48), (1 << 1) | (1 << 0)); + + superio_init(); +}