Changeset 3594
- Timestamp:
- 09/24/08 00:19:27 (4 months ago)
- Location:
- trunk/coreboot-v2/src
- Files:
-
- 2 modified
-
mainboard/asus/a8n_e/cache_as_ram_auto.c (modified) (1 diff)
-
superio/ite/it8712f/it8712f_early_serial.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/coreboot-v2/src/mainboard/asus/a8n_e/cache_as_ram_auto.c
r3052 r3594 222 222 } 223 223 224 it8712f_24mhz_clkin(); 224 225 it8712f_enable_serial(SERIAL_DEV, TTYS0_BASE); 225 226 uart_init(); -
trunk/coreboot-v2/src/superio/ite/it8712f/it8712f_early_serial.c
r3052 r3594 46 46 } 47 47 48 /* Enable the peripheral devices on the IT8712F Super I/O chip. */ 49 static void it8712f_en able_serial(device_t dev, unsigned iobase)48 49 static void it8712f_enter_conf(void) 50 50 { 51 /* (1)Enter the configuration state (MB PnP mode). */51 /* Enter the configuration state (MB PnP mode). */ 52 52 53 53 /* Perform MB PnP setup to put the SIO chip at 0x2e. */ … … 58 58 outb(0x55, IT8712F_CONFIGURATION_PORT); 59 59 outb(0x55, IT8712F_CONFIGURATION_PORT); 60 } 61 62 static void it8712f_exit_conf(void) 63 { 64 /* Exit the configuration state (MB PnP mode). */ 65 it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CC, 0x02); 66 } 67 68 69 static void it8712f_24mhz_clkin(void) 70 { 71 it8712f_enter_conf(); 72 73 /* Select 24MHz CLKIN (48MHZ default)*/ 74 it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CLOCKSEL, 0x1); 75 76 it8712f_exit_conf(); 77 78 } 79 80 /* Enable the peripheral devices on the IT8712F Super I/O chip. */ 81 static void it8712f_enable_serial(device_t dev, unsigned iobase) 82 { 83 84 /* (1) Enter the configuration state (MB PnP mode). */ 85 it8712f_enter_conf(); 60 86 61 87 /* (2) Modify the data of configuration registers. */ … … 70 96 it8712f_sio_write(IT8712F_SP2, 0x30, 0x1); /* Serial port 2 */ 71 97 72 /* Select 24MHz CLKIN (set bit 0). */73 it8712f_sio_write(0x00, IT8712F_CONFIG_REG_CLOCKSEL, 0x01);74 75 98 /* Clear software suspend mode (clear bit 0). TODO: Needed? */ 76 99 /* it8712f_sio_write(0x00, IT8712F_CONFIG_REG_SWSUSP, 0x00); */ 77 100 78 101 /* (3) Exit the configuration state (MB PnP mode). */ 79 it8712f_ sio_write(0x00, IT8712F_CONFIG_REG_CC, 0x02);102 it8712f_exit_conf(); 80 103 } 81
