Changeset 5064
- Timestamp:
- Jan 29, 2010 8:15:10 PM (3 years ago)
- Location:
- trunk/src/mainboard
- Files:
-
- 2 edited
-
rca/rm4100/auto.c (modified) (5 diffs)
-
thomson/ip1000/auto.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/mainboard/rca/rm4100/auto.c
r4998 r5064 2 2 * This file is part of the coreboot project. 3 3 * 4 * Copyright (C) 20 08 Joseph Smith <joe@settoplinux.org>4 * Copyright (C) 2010 Joseph Smith <joe@settoplinux.org> 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify … … 46 46 47 47 #include "southbridge/intel/i82801xx/i82801xx_early_smbus.c" 48 #include "southbridge/intel/i82801xx/i82801xx_early_lpc.c"49 48 50 49 /** 51 * The onboard 128MB PC133 memory does not have a SPD EEPROM so the50 * The onboard 64MB PC133 memory does not have a SPD EEPROM so the 52 51 * values have to be set manually, the SO-DIMM socket is located in 53 52 * socket0 (0x50), and the onboard memory is located in socket1 (0x51). … … 74 73 75 74 /** 76 * The AC'97 Audio Controller I/O space registers are read only by default 77 * so we need to enable them by setting register 0x41 to 0x01. 75 * Setup mainboard specific registers pre raminit. 78 76 */ 79 static void ac97_io_enable(void)77 static void mb_early_setup(void) 80 78 { 81 device_t dev; 79 /* - Hub Interface to PCI Bridge Registers - */ 80 /* 12-Clock Retry Enable */ 81 pci_write_config16(PCI_DEV(0, 0x1e, 0), 0x50, 0x1402); 82 /* Master Latency Timer Count */ 83 pci_write_config8(PCI_DEV(0, 0x1e, 0), 0x1b, 0x20); 84 /* I/O Address Base */ 85 pci_write_config8(PCI_DEV(0, 0x1e, 0), 0x1c, 0xf0); 82 86 83 /* Set the ac97 audio device staticly. */ 84 dev = PCI_DEV(0x0, 0x1f, 0x5); 85 86 /* Enable access to the IO space. */ 87 pci_write_config8(dev, 0x41, 0x01); 87 /* - LPC Interface Bridge Registers - */ 88 /* Delayed Transaction Enable */ 89 pci_write_config32(PCI_DEV(0, 0x1f, 0), 0xd0, 0x00000002); 90 /* Disable the TCO Timer system reboot feature */ 91 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xd4, 0x02); 92 /* CPU Frequency Strap */ 93 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xd5, 0x02); 94 /* ACPI base address and enable Resource Indicator */ 95 pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, (PMBASE_ADDR | 1)); 96 /* Enable the SMBUS */ 97 enable_smbus(); 98 /* ACPI base address and disable Resource Indicator */ 99 pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, (PMBASE_ADDR)); 100 /* ACPI Enable */ 101 pci_write_config8(PCI_DEV(0, 0x1f, 0), ACPI_CNTL, 0x10); 88 102 } 89 103 … … 103 117 } 104 118 119 /* Set southbridge and superio gpios */ 120 mb_gpio_init(); 121 105 122 smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); 106 mb_gpio_init();107 123 uart_init(); 108 124 console_init(); 109 110 enable_smbus();111 112 /* Prevent the TCO timer from rebooting us */113 i82801xx_halt_tco_timer();114 125 115 126 /* Halt if there was a built in self test failure. */ 116 127 report_bist_failure(bist); 117 128 129 /* Setup mainboard specific registers */ 130 mb_early_setup(); 131 132 /* SDRAM init */ 118 133 sdram_set_registers(memctrl); 119 134 sdram_set_spd_registers(memctrl); … … 122 137 /* Check RAM. */ 123 138 /* ram_check(0, 640 * 1024); */ 124 /* ram_check(130048 * 1024, 131072 * 1024); */ 125 126 ac97_io_enable(); 139 /* ram_check(64512 * 1024, 65536 * 1024); */ 127 140 } -
trunk/src/mainboard/thomson/ip1000/auto.c
r4998 r5064 2 2 * This file is part of the coreboot project. 3 3 * 4 * Copyright (C) 20 08Joseph Smith <joe@settoplinux.org>4 * Copyright (C) 2010 Joseph Smith <joe@settoplinux.org> 5 5 * 6 6 * This program is free software; you can redistribute it and/or modify … … 46 46 47 47 #include "southbridge/intel/i82801xx/i82801xx_early_smbus.c" 48 #include "southbridge/intel/i82801xx/i82801xx_early_lpc.c"49 48 50 49 /** … … 74 73 75 74 /** 76 * The AC'97 Audio Controller I/O space registers are read only by default 77 * so we need to enable them by setting register 0x41 to 0x01. 75 * Setup mainboard specific registers pre raminit. 78 76 */ 79 static void ac97_io_enable(void)77 static void mb_early_setup(void) 80 78 { 81 device_t dev; 79 /* - Hub Interface to PCI Bridge Registers - */ 80 /* 12-Clock Retry Enable */ 81 pci_write_config16(PCI_DEV(0, 0x1e, 0), 0x50, 0x1402); 82 /* Master Latency Timer Count */ 83 pci_write_config8(PCI_DEV(0, 0x1e, 0), 0x1b, 0x20); 84 /* I/O Address Base */ 85 pci_write_config8(PCI_DEV(0, 0x1e, 0), 0x1c, 0xf0); 82 86 83 /* Set the ac97 audio device staticly. */ 84 dev = PCI_DEV(0x0, 0x1f, 0x5); 85 86 /* Enable access to the IO space. */ 87 pci_write_config8(dev, 0x41, 0x01); 87 /* - LPC Interface Bridge Registers - */ 88 /* Delayed Transaction Enable */ 89 pci_write_config32(PCI_DEV(0, 0x1f, 0), 0xd0, 0x00000002); 90 /* Disable the TCO Timer system reboot feature */ 91 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xd4, 0x02); 92 /* CPU Frequency Strap */ 93 pci_write_config8(PCI_DEV(0, 0x1f, 0), 0xd5, 0x02); 94 /* ACPI base address and enable Resource Indicator */ 95 pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, (PMBASE_ADDR | 1)); 96 /* Enable the SMBUS */ 97 enable_smbus(); 98 /* ACPI base address and disable Resource Indicator */ 99 pci_write_config32(PCI_DEV(0, 0x1f, 0), PMBASE, (PMBASE_ADDR)); 100 /* ACPI Enable */ 101 pci_write_config8(PCI_DEV(0, 0x1f, 0), ACPI_CNTL, 0x10); 88 102 } 89 103 … … 103 117 } 104 118 119 /* Set southbridge and superio gpios */ 120 mb_gpio_init(); 121 105 122 smscsuperio_enable_serial(SERIAL_DEV, CONFIG_TTYS0_BASE); 106 mb_gpio_init();107 123 uart_init(); 108 124 console_init(); 109 110 enable_smbus();111 112 /* Prevent the TCO timer from rebooting us */113 i82801xx_halt_tco_timer();114 125 115 126 /* Halt if there was a built in self test failure. */ 116 127 report_bist_failure(bist); 117 128 129 /* Setup mainboard specific registers */ 130 mb_early_setup(); 131 132 /* SDRAM init */ 118 133 sdram_set_registers(memctrl); 119 134 sdram_set_spd_registers(memctrl); … … 123 138 /* ram_check(0, 640 * 1024); */ 124 139 /* ram_check(64512 * 1024, 65536 * 1024); */ 125 126 ac97_io_enable();127 140 }
Note: See TracChangeset
for help on using the changeset viewer.
