Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * 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]="ASUS M2V-MX SE ";
- #define SUPERIO_CONFIG_PORT 0x2e
- static void superio_init(void)
- {
- pnp_enter_ext_func_mode_ite(SUPERIO_CONFIG_PORT);
- /* Disable the watchdog. */
- pnp_set_logical_device(SUPERIO_CONFIG_PORT, 7);
- pnp_write_register(SUPERIO_CONFIG_PORT, 0x72, 0x00);
- /* Enable the serial port. */
- pnp_set_logical_device(SUPERIO_CONFIG_PORT, 1); /* 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_ite(SUPERIO_CONFIG_PORT);
- }
- static void chipset_init(void)
- {
- superio_init();
- __asm__ __volatile__("\
- jmp skip\n\
- .align 128\n\
- .global via_romstrap\n\
- via_romstrap:\n\
- .long 0x504400AA, 0x61970FC2 //;200M\n\
- .long 0x504400AA, 0x61970FC2 //;400M\n\
- .long 0x504400AA, 0x61970FC2 //;600M\n\
- .long 0x504400AA, 0x61970FC2 //;800M\n\
- .long 0x504400AA, 0x61970FC2 //;1000M\n\
- skip:\n");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement