Changeset 3595

Show
Ignore:
Timestamp:
09/24/08 00:26:27 (2 months ago)
Author:
ruik
Message:

This patch adds support for watchdog kill and adds it to Asus M2V-MX SE.

Signed-off-by: Rudolf Marek <r.marek@…>
Acked-by: Marc Jones <marc.jones@…>

Location:
trunk/coreboot-v2/src
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/coreboot-v2/src/mainboard/asus/m2v-mx_se/cache_as_ram_auto.c

    r3591 r3595  
    158158        sio_init(); 
    159159        it8712f_enable_serial(SERIAL_DEV, TTYS0_BASE); 
     160        it8712f_kill_watchdog(); 
    160161        uart_init(); 
    161162        console_init(); 
     
    227228        sio_init(); 
    228229        it8712f_enable_serial(SERIAL_DEV, TTYS0_BASE); 
     230        it8712f_kill_watchdog(); 
    229231        uart_init(); 
    230232        console_init(); 
  • trunk/coreboot-v2/src/superio/ite/it8712f/it8712f_early_serial.c

    r3594 r3595  
    3333#define IT8712F_CONFIG_REG_CLOCKSEL  0x23 /* Clock Selection. */ 
    3434#define IT8712F_CONFIG_REG_SWSUSP    0x24 /* Software Suspend, Flash I/F. */ 
     35#define IT8712F_CONFIG_REG_WATCHDOG  0x72 /* Watchdog control. */ 
    3536 
    3637#define IT8712F_CONFIGURATION_PORT   0x2e /* Write-only. */ 
     
    7879} 
    7980 
     81static void it8712f_kill_watchdog(void) 
     82{ 
     83        it8712f_enter_conf(); 
     84 
     85        /* Kill the Watchdog */ 
     86        it8712f_sio_write(0x07, IT8712F_CONFIG_REG_WATCHDOG, 0x00); 
     87 
     88        it8712f_exit_conf(); 
     89} 
     90 
    8091/* Enable the peripheral devices on the IT8712F Super I/O chip. */ 
    8192static void it8712f_enable_serial(device_t dev, unsigned iobase)