Changeset 5136
- Timestamp:
- Feb 22, 2010 7:09:43 AM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 added
- 5 deleted
- 70 edited
-
src/arch/i386/boot/acpi.c (modified) (2 diffs)
-
src/arch/i386/boot/coreboot_table.c (modified) (1 diff)
-
src/arch/i386/boot/coreboot_table.h (deleted)
-
src/arch/i386/boot/pirq_routing.c (modified) (5 diffs)
-
src/arch/i386/boot/tables.c (modified) (3 diffs)
-
src/arch/i386/include/arch/acpi.h (modified) (2 diffs)
-
src/arch/i386/include/arch/coreboot_tables.h (added)
-
src/arch/i386/include/arch/smp/mpspec.h (modified) (1 diff)
-
src/arch/i386/lib/console_printk.c (modified) (1 diff)
-
src/arch/i386/lib/cpu.c (modified) (1 diff)
-
src/boot/hardwaremain.c (modified) (1 diff)
-
src/boot/selfboot.c (modified) (1 diff)
-
src/cpu/intel/model_6ex/cache_as_ram_disable.c (modified) (1 diff)
-
src/cpu/intel/model_6fx/cache_as_ram_disable.c (modified) (1 diff)
-
src/cpu/x86/car/copy_and_run.c (modified) (1 diff)
-
src/devices/hypertransport.c (modified) (1 diff)
-
src/devices/pci_device.c (modified) (1 diff)
-
src/devices/pnp_device.c (modified) (1 diff)
-
src/devices/root_device.c (modified) (1 diff)
-
src/drivers/generic/debug/debug_dev.c (modified) (1 diff)
-
src/drivers/i2c/adm1026/adm1026.c (modified) (1 diff)
-
src/drivers/i2c/adm1027/adm1027.c (modified) (1 diff)
-
src/include/cpu/cpu.h (modified) (1 diff)
-
src/include/cpu/x86/bist.h (modified) (1 diff)
-
src/include/cpu/x86/lapic.h (modified) (2 diffs)
-
src/include/cpu/x86/tsc.h (modified) (1 diff)
-
src/include/delay.h (modified) (1 diff)
-
src/include/device/pnp.h (modified) (1 diff)
-
src/include/device/pnp_def.h (modified) (2 diffs)
-
src/include/fallback.h (added)
-
src/include/part (deleted)
-
src/include/reset.h (added)
-
src/include/watchdog.h (added)
-
src/lib/cbmem.c (modified) (1 diff)
-
src/lib/fallback_boot.c (modified) (1 diff)
-
src/lib/ramtest.c (modified) (8 diffs)
-
src/mainboard/intel/d945gclf/Kconfig (modified) (1 diff)
-
src/mainboard/intel/d945gclf/acpi_tables.c (modified) (1 diff)
-
src/mainboard/kontron/986lcd-m/Kconfig (modified) (1 diff)
-
src/mainboard/kontron/986lcd-m/acpi_tables.c (modified) (5 diffs)
-
src/mainboard/kontron/986lcd-m/devicetree.cb (modified) (1 diff)
-
src/mainboard/kontron/986lcd-m/mainboard.c (modified) (1 diff)
-
src/mainboard/kontron/986lcd-m/mptable.c (modified) (5 diffs)
-
src/mainboard/kontron/986lcd-m/romstage.c (modified) (5 diffs)
-
src/mainboard/roda/rk886ex/Kconfig (modified) (1 diff)
-
src/mainboard/roda/rk886ex/acpi_tables.c (modified) (1 diff)
-
src/mainboard/via/epia-m700/acpi_tables.c (modified) (2 diffs)
-
src/mainboard/via/epia-m700/wakeup.c (modified) (1 diff)
-
src/northbridge/amd/amdfam10/misc_control.c (modified) (1 diff)
-
src/northbridge/amd/amdk8/misc_control.c (modified) (1 diff)
-
src/northbridge/intel/e7520/pciexp_porta.c (modified) (1 diff)
-
src/northbridge/intel/i3100/pciexp_porta.c (modified) (1 diff)
-
src/northbridge/intel/i3100/pciexp_porta_ep80579.c (modified) (1 diff)
-
src/northbridge/intel/i855pm/i855pm.h (deleted)
-
src/northbridge/intel/i945/northbridge.c (modified) (1 diff)
-
src/northbridge/intel/i945/raminit.c (modified) (4 diffs)
-
src/northbridge/intel/i945/raminit.h (modified) (1 diff)
-
src/pc80/mc146818rtc_early.c (modified) (1 diff)
-
src/pc80/serial.c (modified) (1 diff)
-
src/pc80/usbdebug_direct_serial.c (modified) (1 diff)
-
src/southbridge/intel/i3100/i3100_pciexp_portb.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/Kconfig (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx.h (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_azalia.c (modified) (8 diffs)
-
src/southbridge/intel/i82801gx/i82801gx_lpc.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_pci.c (modified) (3 diffs)
-
src/southbridge/intel/i82801gx/i82801gx_pcie.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_power.h (deleted)
-
src/southbridge/intel/i82801gx/i82801gx_reset.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_smi.c (modified) (3 diffs)
-
src/southbridge/intel/i82801gx/i82801gx_smihandler.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c (modified) (1 diff)
-
src/southbridge/intel/i82801gx/i82801gx_watchdog.c (modified) (1 diff)
-
src/southbridge/nvidia/ck804/ck804_reset.c (modified) (1 diff)
-
src/southbridge/sis/sis966/sis761.c (modified) (1 diff)
-
src/superio/winbond/w83627thg/superio.c (modified) (1 diff)
-
util/abuild/abuild (modified) (2 diffs)
-
util/romcc/romcc.c (modified) (1 diff)
-
util/x86emu/biosemu.c (deleted)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/arch/i386/boot/acpi.c
r5127 r5136 488 488 u8 acpi_slp_type = 0; 489 489 490 int acpi_is_wakeup(void)490 static int acpi_is_wakeup(void) 491 491 { 492 492 return (acpi_slp_type == 3); … … 601 601 602 602 /* copy wakeup trampoline in place */ 603 memcpy( WAKEUP_BASE, &__wakeup,&__wakeup_size);603 memcpy((void *)WAKEUP_BASE, &__wakeup, (size_t)&__wakeup_size); 604 604 605 605 acpi_do_wakeup((u32)vector, acpi_backup_memory, CONFIG_RAMBASE, HIGH_MEMORY_SAVE); -
trunk/src/arch/i386/boot/coreboot_table.c
r5135 r5136 25 25 #include <boot/tables.h> 26 26 #include <boot/coreboot_tables.h> 27 #include "coreboot_table.h"27 #include <arch/coreboot_tables.h> 28 28 #include <string.h> 29 29 #include <version.h> -
trunk/src/arch/i386/boot/pirq_routing.c
r4778 r5136 4 4 #include <device/pci.h> 5 5 6 #if (CONFIG_DEBUG==1 && CONFIG_GENERATE_PIRQ_TABLE==1) 6 #ifndef CONFIG_IRQ_SLOT_COUNT 7 #warning "CONFIG_IRQ_SLOT_COUNT is not defined. PIRQ won't work correctly." 8 #endif 9 10 #if CONFIG_DEBUG 7 11 static void check_pirq_routing_table(struct irq_routing_table *rt) 8 12 { … … 13 17 printk_info("Checking Interrupt Routing Table consistency...\n"); 14 18 15 #if defined(CONFIG_IRQ_SLOT_COUNT)16 19 if (sizeof(struct irq_routing_table) != rt->size) { 17 20 printk_warning("Inconsistent Interrupt Routing Table size (0x%x/0x%x).\n", … … 21 24 rt->size=sizeof(struct irq_routing_table); 22 25 } 23 #endif24 26 25 27 for (i = 0; i < rt->size; i++) … … 80 82 return 0; 81 83 } 82 #else83 #define verify_copy_pirq_routing_table(addr)84 84 #endif 85 85 86 #if CONFIG_GENERATE_PIRQ_TABLE==187 86 unsigned long copy_pirq_routing_table(unsigned long addr) 88 87 { … … 99 98 return addr + intel_irq_routing_table.size; 100 99 } 101 #endif102 100 103 #if (CONFIG_PIRQ_ROUTE==1 && CONFIG_GENERATE_PIRQ_TABLE==1)101 #if CONFIG_PIRQ_ROUTE 104 102 void pirq_routing_irqs(unsigned long addr) 105 103 { -
trunk/src/arch/i386/boot/tables.c
r4878 r5136 24 24 #include <boot/tables.h> 25 25 #include <boot/coreboot_tables.h> 26 #include <arch/coreboot_tables.h> 26 27 #include <arch/pirq_routing.h> 27 28 #include <arch/smp/mpspec.h> … … 29 30 #include <string.h> 30 31 #include <cpu/x86/multiboot.h> 31 #include "coreboot_table.h"32 32 #include <cbmem.h> 33 33 #include <lib.h> … … 168 168 acpi_write_rsdp(low_rsdp, 169 169 (acpi_rsdt_t *)(high_rsdp->rsdt_address), 170 (acpi_xsdt_t *)( high_rsdp->xsdt_address));170 (acpi_xsdt_t *)((unsigned long)high_rsdp->xsdt_address)); 171 171 } else { 172 172 printk_err("ERROR: Didn't find RSDP in high table.\n"); -
trunk/src/arch/i386/include/arch/acpi.h
r5130 r5136 356 356 357 357 358 /* These are implemented by the target port */358 /* These are implemented by the target port or north/southbridge*/ 359 359 unsigned long write_acpi_tables(unsigned long addr); 360 360 unsigned long acpi_fill_madt(unsigned long current); … … 415 415 #endif 416 416 417 /* northbridge/amd/amdfam10/amdfam10_acpi.c */ 417 418 unsigned long acpi_add_ssdt_pstates(acpi_rsdp_t *rsdp, unsigned long current); 419 /* cpu/intel/speedstep/acpi.c */ 420 void generate_cpu_entries(void); 418 421 419 422 #define ACPI_WRITE_MADT_IOAPIC(dev,id) \ -
trunk/src/arch/i386/include/arch/smp/mpspec.h
r4686 r5136 32 32 unsigned char mpf_feature1; /* Standard or configuration ? */ 33 33 unsigned char mpf_feature2; /* Bit7 set for IMCR|PIC */ 34 #define MP_FEATURE_VIRTUALWIRE (1 << 7) 35 #define MP_FEATURE_PIC (0 << 7) 34 36 unsigned char mpf_feature3; /* Unused (0) */ 35 37 unsigned char mpf_feature4; /* Unused (0) */ -
trunk/src/arch/i386/lib/console_printk.c
r4794 r5136 1 2 extern int do_printk(int msg_level, const char *fmt, ...);3 1 4 2 #define printk_emerg(fmt, arg...) do_printk(BIOS_EMERG ,fmt, ##arg) -
trunk/src/arch/i386/lib/cpu.c
r4300 r5136 225 225 info = cpu_info(); 226 226 227 printk_ notice("Initializing CPU #%ld\n", info->index);227 printk_info("Initializing CPU #%ld\n", info->index); 228 228 229 229 cpu = info->cpu; -
trunk/src/boot/hardwaremain.c
r5102 r5136 32 32 #include <delay.h> 33 33 #include <stdlib.h> 34 #include <part/hard_reset.h> 35 #include <part/init_timer.h> 34 #include <reset.h> 36 35 #include <boot/tables.h> 37 36 #include <boot/elf.h> -
trunk/src/boot/selfboot.c
r4912 r5136 20 20 21 21 #include <console/console.h> 22 #include < part/fallback_boot.h>22 #include <fallback.h> 23 23 #include <boot/elf.h> 24 24 #include <boot/elf_boot.h> -
trunk/src/cpu/intel/model_6ex/cache_as_ram_disable.c
r4997 r5136 55 55 56 56 /* No servicable parts below this line .. */ 57 58 #if CAR_DEBUG 57 #ifdef CAR_DEBUG 59 58 /* Check value of esp to verify if we have enough rom for stack in Cache as RAM */ 60 59 unsigned v_esp; -
trunk/src/cpu/intel/model_6fx/cache_as_ram_disable.c
r4997 r5136 56 56 /* No servicable parts below this line .. */ 57 57 58 #if CAR_DEBUG58 #ifdef CAR_DEBUG 59 59 /* Check value of esp to verify if we have enough rom for stack in Cache as RAM */ 60 60 unsigned v_esp; -
trunk/src/cpu/x86/car/copy_and_run.c
r5111 r5136 1 /* Copyright (C) 2009 coresystems GmbH 2 (Written by Patrick Georgi <patrick.georgi@coresystems.de> for coresystems GmbH 3 */ 1 /* 2 * This file is part of the coreboot project. 3 * 4 * Copyright (C) 2009-2010 coresystems GmbH 5 * Written by Patrick Georgi <patrick.georgi@coresystems.de> 6 * for coresystems GmbH 7 * 8 * This program is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; version 2 of 11 * the License. 12 * 13 * This program is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 16 * GNU General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, 21 * MA 02110-1301 USA 22 */ 4 23 5 void cbfs_and_run_core(c har*, unsigned ebp);24 void cbfs_and_run_core(const char *, unsigned ebp); 6 25 7 26 static void copy_and_run(unsigned cpu_reset) -
trunk/src/devices/hypertransport.c
r4890 r5136 35 35 #include <device/pci_ids.h> 36 36 #include <device/hypertransport.h> 37 #include <part/hard_reset.h>38 #include <part/fallback_boot.h>39 37 40 38 /* The hypertransport link is already optimized in pre-ram code -
trunk/src/devices/pci_device.c
r4995 r5136 33 33 #include <device/pci.h> 34 34 #include <device/pci_ids.h> 35 #include <part/hard_reset.h>36 #include <part/fallback_boot.h>37 35 #include <delay.h> 38 36 #if CONFIG_HYPERTRANSPORT_PLUGIN_SUPPORT == 1 -
trunk/src/devices/pnp_device.c
r3964 r5136 241 241 resource->size = 1; 242 242 resource->flags |= IORESOURCE_DRQ; 243 } 243 } 244 /* These are not IRQs, but set the flag to have the 245 * resource allocator do the right thing 246 */ 247 if (info->flags & PNP_EN) { 248 resource = new_resource(dev, PNP_IDX_EN); 249 resource->size = 1; 250 resource->flags |= IORESOURCE_IRQ; 251 } 252 if (info->flags & PNP_MSC0) { 253 resource = new_resource(dev, PNP_IDX_MSC0); 254 resource->size = 1; 255 resource->flags |= IORESOURCE_IRQ; 256 } 257 if (info->flags & PNP_MSC1) { 258 resource = new_resource(dev, PNP_IDX_MSC1); 259 resource->size = 1; 260 resource->flags |= IORESOURCE_IRQ; 261 } 244 262 } 245 263 -
trunk/src/devices/root_device.c
r4756 r5136 26 26 #include <device/device.h> 27 27 #include <device/pci.h> 28 #include < part/hard_reset.h>28 #include <reset.h> 29 29 30 30 /** -
trunk/src/drivers/generic/debug/debug_dev.c
r4781 r5136 6 6 #include <device/pci_ops.h> 7 7 #include <cpu/x86/msr.h> 8 #include < part/hard_reset.h>8 #include <reset.h> 9 9 #include <delay.h> 10 10 #include "chip.h" -
trunk/src/drivers/i2c/adm1026/adm1026.c
r4588 r5136 5 5 #include <device/pci_ids.h> 6 6 #include <device/pci_ops.h> 7 #include <part/hard_reset.h>8 7 #include <cpu/x86/msr.h> 9 8 #include "chip.h" -
trunk/src/drivers/i2c/adm1027/adm1027.c
r2663 r5136 5 5 #include <device/pci_ids.h> 6 6 #include <device/pci_ops.h> 7 #include <part/hard_reset.h>8 7 #include <cpu/x86/msr.h> 9 8 #include "chip.h" -
trunk/src/include/cpu/cpu.h
r4890 r5136 18 18 #if CONFIG_HAVE_SMI_HANDLER 19 19 void smm_init(void); 20 void smm_lock(void); 21 void smm_setup_structures(void *gnvs, void *tcg, void *smi1); 20 22 #endif 21 23 -
trunk/src/include/cpu/x86/bist.h
r2589 r5136 2 2 #define CPU_X86_BIST_H 3 3 4 static void report_bist_failure(u nsigned longbist)4 static void report_bist_failure(u32 bist) 5 5 { 6 6 if (bist != 0) { -
trunk/src/include/cpu/x86/lapic.h
r4921 r5136 61 61 static inline __attribute__((always_inline)) void stop_this_cpu(void) 62 62 { 63 64 63 /* Called by an AP when it is ready to halt and wait for a new task */ 65 64 for(;;) { … … 67 66 } 68 67 } 68 #else 69 void stop_this_cpu(void); 69 70 #endif 70 71 -
trunk/src/include/cpu/x86/tsc.h
r4921 r5136 25 25 return val; 26 26 } 27 28 void init_timer(void);29 27 #endif 30 28 31 32 29 #endif /* CPU_X86_TSC_H */ -
trunk/src/include/delay.h
r4890 r5136 1 1 #ifndef DELAY_H 2 2 #define DELAY_H 3 3 4 #if !defined( __ROMCC__) 5 6 #if CONFIG_HAVE_INIT_TIMER == 1 7 void init_timer(void); 8 #else 9 #define init_timer() do{} while(0) 10 #endif 4 11 5 12 void udelay(unsigned usecs); -
trunk/src/include/device/pnp.h
r4000 r5136 34 34 unsigned function; 35 35 unsigned flags; 36 #define PNP_IO0 0x01 37 #define PNP_IO1 0x02 38 #define PNP_IO2 0x04 39 #define PNP_IO3 0x08 40 #define PNP_IRQ0 0x10 41 #define PNP_IRQ1 0x20 42 #define PNP_DRQ0 0x40 43 #define PNP_DRQ1 0x80 36 #define PNP_IO0 0x001 37 #define PNP_IO1 0x002 38 #define PNP_IO2 0x004 39 #define PNP_IO3 0x008 40 #define PNP_IRQ0 0x010 41 #define PNP_IRQ1 0x020 42 #define PNP_DRQ0 0x040 43 #define PNP_DRQ1 0x080 44 #define PNP_EN 0x100 45 #define PNP_MSC0 0x200 46 #define PNP_MSC1 0x400 44 47 struct io_info io0, io1, io2, io3; 45 48 }; -
trunk/src/include/device/pnp_def.h
r1662 r5136 2 2 #define DEVICE_PNP_DEF_H 3 3 4 #define PNP_IDX_EN 0x30 4 5 #define PNP_IDX_IO0 0x60 5 6 #define PNP_IDX_IO1 0x62 … … 10 11 #define PNP_IDX_DRQ0 0x74 11 12 #define PNP_IDX_DRQ1 0x75 12 13 #define PNP_IDX_MSC0 0xf0 14 #define PNP_IDX_MSC1 0xf1 13 15 14 16 #endif /* DEVICE_PNP_DEF_H */ -
trunk/src/lib/cbmem.c
r4939 r5136 185 185 if (!cbmem_reinit(high_tables_base)) { 186 186 /* Something went wrong, our high memory area got wiped */ 187 acpi_slp_type = =0;187 acpi_slp_type = 0; 188 188 cbmem_init(high_tables_base, high_tables_size); 189 189 } -
trunk/src/lib/fallback_boot.c
r5135 r5136 1 1 #include <console/console.h> 2 #include < part/fallback_boot.h>3 #include < part/watchdog.h>2 #include <fallback.h> 3 #include <watchdog.h> 4 4 #include <pc80/mc146818rtc.h> 5 5 #include <arch/io.h> -
trunk/src/lib/ramtest.c
r4661 r5136 31 31 */ 32 32 #if CONFIG_USE_PRINTK_IN_CAR 33 printk_debug("DRAM fill: 0x%08 x-0x%08x\r\n", start, stop);33 printk_debug("DRAM fill: 0x%08lx-0x%08lx\r\n", start, stop); 34 34 #else 35 35 print_debug("DRAM fill: "); … … 43 43 if (!(addr & 0xfffff)) { 44 44 #if CONFIG_USE_PRINTK_IN_CAR 45 printk_debug("%08 x \r", addr);45 printk_debug("%08lx \r", addr); 46 46 #else 47 47 print_debug_hex32(addr); … … 53 53 /* Display final address */ 54 54 #if CONFIG_USE_PRINTK_IN_CAR 55 printk_debug("%08 x\r\nDRAM filled\r\n", addr);55 printk_debug("%08lx\r\nDRAM filled\r\n", addr); 56 56 #else 57 57 print_debug_hex32(addr); … … 68 68 */ 69 69 #if CONFIG_USE_PRINTK_IN_CAR 70 printk_debug("DRAM verify: 0x%08 x-0x%08x\r\n", start, stop);70 printk_debug("DRAM verify: 0x%08lx-0x%08lx\r\n", start, stop); 71 71 #else 72 72 print_debug("DRAM verify: "); … … 81 81 if (!(addr & 0xfffff)) { 82 82 #if CONFIG_USE_PRINTK_IN_CAR 83 printk_debug("%08 x \r", addr);83 printk_debug("%08lx \r", addr); 84 84 #else 85 85 print_debug_hex32(addr); … … 91 91 /* Display address with error */ 92 92 #if CONFIG_USE_PRINTK_IN_CAR 93 printk_err("Fail: @0x%08 x Read value=0x%08x\r\n", addr, value);93 printk_err("Fail: @0x%08lx Read value=0x%08lx\r\n", addr, value); 94 94 #else 95 95 print_err("Fail: @0x"); … … 112 112 /* Display final address */ 113 113 #if CONFIG_USE_PRINTK_IN_CAR 114 printk_debug("%08 x", addr);114 printk_debug("%08lx", addr); 115 115 #else 116 116 print_debug_hex32(addr); … … 143 143 */ 144 144 #if CONFIG_USE_PRINTK_IN_CAR 145 printk_debug("Testing DRAM : %08 x - %08x\r\n", start, stop);145 printk_debug("Testing DRAM : %08lx - %08lx\r\n", start, stop); 146 146 #else 147 147 print_debug("Testing DRAM : "); -
trunk/src/mainboard/intel/d945gclf/Kconfig
r5052 r5136 92 92 default 2 93 93 depends on BOARD_INTEL_D945GCLF 94 95 config HAVE_ACPI_SLIC 96 bool 97 default n 98 depends on BOARD_INTEL_D945GCLF 99 -
trunk/src/mainboard/intel/d945gclf/acpi_tables.c
r5018 r5136 36 36 unsigned long acpi_create_slic(unsigned long current); 37 37 #endif 38 void generate_cpu_entries(void); // from cpu/intel/speedstep39 unsigned long acpi_fill_mcfg(unsigned long current); // from northbridge/intel/i94540 38 41 39 #if OLD_ACPI -
trunk/src/mainboard/kontron/986lcd-m/Kconfig
r5051 r5136 77 77 default "amipci_01.20" 78 78 depends on BOARD_KONTRON_986LCD_M 79 80 config HAVE_ACPI_SLIC 81 bool 82 default n 83 depends on BOARD_KONTRON_986LCD_M 84 -
trunk/src/mainboard/kontron/986lcd-m/acpi_tables.c
r4861 r5136 33 33 34 34 extern unsigned char AmlCode[]; 35 #if HAVE_ACPI_SLIC35 #if CONFIG_HAVE_ACPI_SLIC 36 36 unsigned long acpi_create_slic(unsigned long current); 37 37 #endif 38 void generate_cpu_entries(void); // from cpu/intel/speedstep39 38 40 39 #include "../../../southbridge/intel/i82801gx/i82801gx_nvs.h" … … 143 142 acpi_fadt_t *fadt; 144 143 acpi_facs_t *facs; 145 #if HAVE_ACPI_SLIC144 #if CONFIG_HAVE_ACPI_SLIC 146 145 acpi_header_t *slic; 147 146 #endif … … 217 216 for (i=0; i < dsdt->length; i++) { 218 217 if (*(u32*)(((u32)dsdt) + i) == 0xC0DEBABE) { 219 printk_debug("ACPI: Patching up global NVS in DSDT at offset 0x%04x -> 0x%08 x\n", i, current);218 printk_debug("ACPI: Patching up global NVS in DSDT at offset 0x%04x -> 0x%08lx\n", i, current); 220 219 *(u32*)(((u32)dsdt) + i) = current; // 0x92 bytes 221 220 break; … … 224 223 225 224 /* And fill it */ 226 acpi_create_gnvs( current);225 acpi_create_gnvs((global_nvs_t *)current); 227 226 228 227 current += 0x100; … … 239 238 dsdt->length); 240 239 241 #if HAVE_ACPI_SLIC240 #if CONFIG_HAVE_ACPI_SLIC 242 241 printk_debug("ACPI: * SLIC\n"); 243 242 slic = (acpi_header_t *)current; -
trunk/src/mainboard/kontron/986lcd-m/devicetree.cb
r4925 r5136 103 103 io 0x60 = 0x2e8 104 104 irq 0x70 = 10 105 irq 0xf1 = 4 # set IRMODE 0 # XXX not an irq 105 106 end 106 107 device pnp 4e.5 off # Keyboard -
trunk/src/mainboard/kontron/986lcd-m/mainboard.c
r5042 r5136 27 27 #include <pc80/mc146818rtc.h> 28 28 #include <arch/io.h> 29 #include <arch/coreboot_tables.h> 29 30 #include "chip.h" 30 31 int add_northbridge_resources(struct lb_memory *mem);32 31 33 32 int add_mainboard_resources(struct lb_memory *mem) -
trunk/src/mainboard/kontron/986lcd-m/mptable.c
r5043 r5136 28 28 #include <stdint.h> 29 29 30 void *smp_write_config_table(void *v)30 static void *smp_write_config_table(void *v) 31 31 { 32 32 static const char sig[4] = "PCMP"; … … 37 37 int i; 38 38 int max_pci_bus, firewire_bus = 0, riser_bus = 0, isa_bus; 39 int ioapic_id; 39 40 40 41 mc = (void *)(((char *)v) + SMP_FLOATING_TABLE_LEN); … … 87 88 88 89 /* I/O APICs: APIC ID Version State Address */ 89 smp_write_ioapic(mc, 2, 0x20, 0xfec00000); 90 ioapic_id = 2; 91 smp_write_ioapic(mc, ioapic_id, 0x20, 0xfec00000); 90 92 91 93 /* Legacy Interrupts */ 92 94 93 95 /* I/O Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# */ 94 smp_write_intsrc(mc, mp_ExtINT, MP_IRQ_TRIGGER_ DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x0, 0x2, 0x0);95 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x1, 0x2, 0x1);96 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x0, 0x2, 0x2);97 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x3, 0x2, 0x3);98 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x4, 0x2, 0x4);99 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, isa_bus, 0x8, 0x2, 0x8);100 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x9, 0x2, 0x9);101 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xa, 0x2, 0xa);102 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xb, 0x2, 0xb);103 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xc, 0x2, 0xc);104 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xd, 0x2, 0xd);105 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xe, 0x2, 0xe);106 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xf, 0x2, 0xf);96 smp_write_intsrc(mc, mp_ExtINT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x0, ioapic_id, 0x0); 97 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x1, ioapic_id, 0x1); 98 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x0, ioapic_id, 0x2); 99 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x3, ioapic_id, 0x3); 100 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x4, ioapic_id, 0x4); 101 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_EDGE|MP_IRQ_POLARITY_HIGH, isa_bus, 0x8, ioapic_id, 0x8); 102 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0x9, ioapic_id, 0x9); 103 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xa, ioapic_id, 0xa); 104 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xb, ioapic_id, 0xb); 105 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xc, ioapic_id, 0xc); 106 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xd, ioapic_id, 0xd); 107 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xe, ioapic_id, 0xe); 108 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_DEFAULT|MP_IRQ_POLARITY_DEFAULT, isa_bus, 0xf, ioapic_id, 0xf); 107 109 108 110 /* Builtin devices on Bus 0 */ 109 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x8, 0x2, 0x10); 110 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x7d, 0x2, 0x13); 111 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x74, 0x2, 0x17); 112 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x75, 0x2, 0x13); 113 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x76, 0x2, 0x12); 114 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x77, 0x2, 0x10); 115 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x6c, 0x2, 0x10); 116 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x70, 0x2, 0x10); 117 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x71, 0x2, 0x11); 111 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x4, ioapic_id, 0x10); 112 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x8, ioapic_id, 0x10); 113 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x7d, ioapic_id, 0x13); 114 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x74, ioapic_id, 0x17); 115 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x75, ioapic_id, 0x13); 116 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x76, ioapic_id, 0x12); 117 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x77, ioapic_id, 0x10); 118 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x6c, ioapic_id, 0x10); 119 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x70, ioapic_id, 0x10); 120 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x0, 0x71, ioapic_id, 0x11); 118 121 119 /* Firewire 4:0.0*/122 /* Internal PCI bus (Firewire, PCI slot) */ 120 123 if (firewire) { 121 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, firewire_bus, 0x0, 0x2, 0x10); 124 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, firewire_bus, 0x0, ioapic_id, 0x10); 125 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, firewire_bus, 0x4, ioapic_id, 0x14); 122 126 } 123 127 … … 125 129 /* Old riser card */ 126 130 // riser slot top 5:8.0 127 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x20, 0x2, 0x14);131 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x20, ioapic_id, 0x14); 128 132 // riser slot middle 5:9.0 129 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x24, 0x2, 0x15);133 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x24, ioapic_id, 0x15); 130 134 // riser slot bottom 5:a.0 131 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x28, 0x2, 0x16);135 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x28, ioapic_id, 0x16); 132 136 133 137 /* New Riser Card */ 134 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x30, 0x2, 0x14);135 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x34, 0x2, 0x15);136 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x38, 0x2, 0x16);138 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x30, ioapic_id, 0x14); 139 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x34, ioapic_id, 0x15); 140 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, riser_bus, 0x38, ioapic_id, 0x16); 137 141 } 138 142 143 /* PCIe slot */ 144 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x1, 0x0, ioapic_id, 0x10); 145 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x1, 0x1, ioapic_id, 0x11); 146 139 147 /* Onboard Ethernet */ 140 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x 1, 0x0, 0x2, 0x10);148 smp_write_intsrc(mc, mp_INT, MP_IRQ_TRIGGER_LEVEL|MP_IRQ_POLARITY_LOW, 0x2, 0x0, ioapic_id, 0x10); 141 149 142 150 /* Local Ints: Type Polarity Trigger Bus ID IRQ APIC ID PIN# */ … … 153 161 } 154 162 163 /* MP table generation in coreboot is not very well designed; 164 * One of the issues is that it knows nothing about Virtual 165 * Wire mode, which everyone uses since a decade or so. This 166 * function fixes up our floating table. This spares us doing 167 * a half-baked fix of adding a new parameter to 200+ calls 168 * to smp_write_floating_table() 169 */ 170 static void fixup_virtual_wire(void *v) 171 { 172 struct intel_mp_floating *mf = v; 173 174 mf->mpf_checksum = 0; 175 mf->mpf_feature2 = MP_FEATURE_VIRTUALWIRE; 176 mf->mpf_checksum = smp_compute_checksum(mf, mf->mpf_length*16); 177 } 178 155 179 unsigned long write_smp_table(unsigned long addr) 156 180 { 157 181 void *v; 158 182 v = smp_write_floating_table(addr); 183 fixup_virtual_wire(v); 159 184 return (unsigned long)smp_write_config_table(v); 160 185 } -
trunk/src/mainboard/kontron/986lcd-m/romstage.c
r5092 r5136 2 2 * This file is part of the coreboot project. 3 3 * 4 * Copyright (C) 2007-20 09coresystems GmbH4 * Copyright (C) 2007-2010 coresystems GmbH 5 5 * 6 6 * This program is free software; you can redistribute it and/or … … 49 49 #include "pc80/mc146818rtc_early.c" 50 50 51 #include <console/console.h> 51 52 #include "pc80/serial.c" 52 53 #include "arch/i386/lib/console.c" … … 368 369 #include "lib/cbmem.c" 369 370 371 #include "cpu/intel/model_6ex/cache_as_ram_disable.c" 372 370 373 void real_main(unsigned long bist) 371 374 { … … 478 481 */ 479 482 if (resume_backup_memory) 480 memcpy(resume_backup_memory, CONFIG_RAMBASE, HIGH_MEMORY_SAVE);483 memcpy(resume_backup_memory, (void *)CONFIG_RAMBASE, HIGH_MEMORY_SAVE); 481 484 482 485 /* Magic for S3 resume */ … … 486 489 } 487 490 488 #include "cpu/intel/model_6ex/cache_as_ram_disable.c" -
trunk/src/mainboard/roda/rk886ex/Kconfig
r5052 r5136 74 74 default 0x6886 75 75 depends on BOARD_RODA_RK886EX 76 77 config HAVE_ACPI_SLIC 78 bool 79 default n 80 depends on BOARD_RODA_RK886EX 81 -
trunk/src/mainboard/roda/rk886ex/acpi_tables.c
r5031 r5136 35 35 unsigned long acpi_create_slic(unsigned long current); 36 36 #endif 37 void generate_cpu_entries(void); // from cpu/intel/speedstep38 unsigned long acpi_fill_mcfg(unsigned long current); // from northbridge/intel/i94539 37 40 38 #define OLD_ACPI 0 -
trunk/src/mainboard/via/epia-m700/acpi_tables.c
r4778 r5136 40 40 41 41 extern u32 wake_vec; 42 extern u8 acpi_sleep_type;43 42 44 43 /* … … 204 203 } 205 204 206 int acpi_is_wakeup(void)207 {208 return (acpi_sleep_type == 3);209 } -
trunk/src/mainboard/via/epia-m700/wakeup.c
r4397 r5136 32 32 #include <console/console.h> 33 33 #include <delay.h> 34 #include <part/init_timer.h> /* for jason_tsc_count_end */35 34 #include "wakeup.h" 36 35 -
trunk/src/northbridge/amd/amdfam10/misc_control.c
r4381 r5136 31 31 #include <device/pci_ids.h> 32 32 #include <device/pci_ops.h> 33 #include <part/hard_reset.h>34 33 #include <pc80/mc146818rtc.h> 35 34 #include <bitops.h> -
trunk/src/northbridge/amd/amdk8/misc_control.c
r4394 r5136 15 15 #include <device/pci_ids.h> 16 16 #include <device/pci_ops.h> 17 #include < part/hard_reset.h>17 #include <reset.h> 18 18 #include <pc80/mc146818rtc.h> 19 19 #include <bitops.h> -
trunk/src/northbridge/intel/e7520/pciexp_porta.c
r2891 r5136 7 7 #include <arch/io.h> 8 8 #include "chip.h" 9 #include < part/hard_reset.h>9 #include <reset.h> 10 10 11 11 typedef struct northbridge_intel_e7520_config config_t; -
trunk/src/northbridge/intel/i3100/pciexp_porta.c
r3536 r5136 29 29 #include <arch/io.h> 30 30 #include "chip.h" 31 #include < part/hard_reset.h>31 #include <reset.h> 32 32 33 33 typedef struct northbridge_intel_i3100_config config_t; -
trunk/src/northbridge/intel/i3100/pciexp_porta_ep80579.c
r4615 r5136 29 29 #include <arch/io.h> 30 30 #include "chip.h" 31 #include < part/hard_reset.h>31 #include <reset.h> 32 32 33 33 typedef struct northbridge_intel_i3100_config config_t; -
trunk/src/northbridge/intel/i945/northbridge.c
r4861 r5136 32 32 #include "chip.h" 33 33 #include "i945.h" 34 35 int get_pcie_bar(u32 *base, u32 *len) 34 #include <arch/coreboot_tables.h> 35 36 static int get_pcie_bar(u32 *base, u32 *len) 36 37 { 37 38 device_t dev; -
trunk/src/northbridge/intel/i945/raminit.c
r5092 r5136 399 399 } 400 400 401 /* The chipset might be able to do this. What the heck, legacy bios402 * just beeps when a single DIMM is in the Channel 1 socket. So let's403 * not bother until someone needs this enough to cope with it.404 */405 401 if (!(dimm_mask & ((1 << DIMM_SOCKETS) - 1))) { 406 printk_ err("Channel 0 has no memory populated. This setup is not usable. Please move the DIMM.\n");402 printk_info("Channel 0 has no memory populated.\n"); 407 403 } 408 404 } … … 455 451 int i, j, idx; 456 452 int lowest_common_cas = 0; 457 int max_ram_speed ;453 int max_ram_speed = 0; 458 454 459 455 const u8 ddr2_speeds_table[] = { … … 1594 1590 continue; 1595 1591 1596 printk_spew("DIMM%d has 8 banks.\n" );1592 printk_spew("DIMM%d has 8 banks.\n", i); 1597 1593 1598 1594 if (i & 1) … … 2573 2569 pci_write_config8(PCI_DEV(0, 0x2, 0), 0xc1, reg8); 2574 2570 2575 #if C2_SELF_REFRESH_DISABLE2571 #ifdef C2_SELF_REFRESH_DISABLE 2576 2572 2577 2573 if (integrated_graphics) { -
trunk/src/northbridge/intel/i945/raminit.h
r4455 r5136 68 68 } __attribute__ ((packed)); 69 69 70 void receive_enable_adjust(struct sys_info *sysinfo); 71 70 72 #endif /* RAMINIT_H */ -
trunk/src/pc80/mc146818rtc_early.c
r4381 r5136 1 1 #include <pc80/mc146818rtc.h> 2 #include < part/fallback_boot.h>2 #include <fallback.h> 3 3 4 4 #ifndef CONFIG_MAX_REBOOT_CNT -
trunk/src/pc80/serial.c
r4534 r5136 1 #include <part/fallback_boot.h>2 3 1 /* Base Address */ 4 2 #ifndef CONFIG_TTYS0_BASE -
trunk/src/pc80/usbdebug_direct_serial.c
r4788 r5136 16 16 */ 17 17 18 #include <part/fallback_boot.h>19 18 #include "../lib/usbdebug_direct.c" 20 19 -
trunk/src/southbridge/intel/i3100/i3100_pciexp_portb.c
r4392 r5136 29 29 #include <arch/io.h> 30 30 #include "chip.h" 31 #include < part/hard_reset.h>31 #include <reset.h> 32 32 33 33 #define PCIE_LCTL 0x50 -
trunk/src/southbridge/intel/i82801gx/Kconfig
r5039 r5136 21 21 bool 22 22 select IOAPIC 23 select USE_WATCHDOG_ON_BOOT 23 24 -
trunk/src/southbridge/intel/i82801gx/i82801gx.h
r5127 r5136 47 47 extern void i82801gx_enable(device_t dev); 48 48 #endif 49 50 #define MAINBOARD_POWER_OFF 0 51 #define MAINBOARD_POWER_ON 1 52 #define MAINBOARD_POWER_KEEP 2 53 54 #ifndef CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL 55 #define CONFIG_MAINBOARD_POWER_ON_AFTER_POWER_FAIL MAINBOARD_POWER_ON 56 #endif 57 58 /* PCI Configuration Space (D30:F0): PCI2PCI */ 59 #define PSTS 0x06 60 #define SMLT 0x1b 61 #define SECSTS 0x1e 62 #define INTR 0x3c 63 #define BCTRL 0x3e 64 #define SBR (1 << 6) 65 #define SEE (1 << 1) 66 #define PERE (1 << 0) 49 67 50 68 /* PCI Configuration Space (D31:F0): LPC */ -
trunk/src/southbridge/intel/i82801gx/i82801gx_azalia.c
r5092 r5136 34 34 typedef struct southbridge_intel_i82801gx_config config_t; 35 35 36 static int set_bits(u 8 *port, u32 mask, u32 val)36 static int set_bits(u32 port, u32 mask, u32 val) 37 37 { 38 38 u32 reg32; … … 63 63 } 64 64 65 static int codec_detect(u 8 *base)65 static int codec_detect(u32 base) 66 66 { 67 67 u32 reg32; … … 117 117 */ 118 118 119 static int wait_for_ready(u 8 *base)119 static int wait_for_ready(u32 base) 120 120 { 121 121 /* Use a 50 usec timeout - the Linux kernel uses the … … 140 140 */ 141 141 142 static int wait_for_valid(u 8 *base)142 static int wait_for_valid(u32 base) 143 143 { 144 144 u32 reg32; … … 164 164 } 165 165 166 static void codec_init(struct device *dev, u 8 *base, int addr)166 static void codec_init(struct device *dev, u32 base, int addr) 167 167 { 168 168 u32 reg32; … … 208 208 } 209 209 210 static void codecs_init(struct device *dev, u 8 *base, u32 codec_mask)210 static void codecs_init(struct device *dev, u32 base, u32 codec_mask) 211 211 { 212 212 int i; … … 219 219 static void azalia_init(struct device *dev) 220 220 { 221 u 8 *base;221 u32 base; 222 222 struct resource *res; 223 223 u32 codec_mask; … … 304 304 // NOTE this will break as soon as the Azalia get's a bar above 305 305 // 4G. Is there anything we can do about it? 306 base = (u 8 *) ((u32)res->base);306 base = (u32)res->base; 307 307 printk_debug("Azalia: base = %08x\n", (u32)base); 308 308 codec_mask = codec_detect(base); -
trunk/src/southbridge/intel/i82801gx/i82801gx_lpc.c
r5026 r5136 28 28 #include <arch/io.h> 29 29 #include "i82801gx.h" 30 #include "i82801gx_power.h"31 30 32 31 #define NMI_OFF 0 -
trunk/src/southbridge/intel/i82801gx/i82801gx_pci.c
r4538 r5136 23 23 #include <device/pci.h> 24 24 #include <device/pci_ids.h> 25 #include "i82801gx.h" 25 26 26 27 static void pci_init(struct device *dev) … … 35 36 36 37 /* This device has no interrupt */ 37 pci_write_config8(dev, 0x3c, 0xff);38 pci_write_config8(dev, INTR, 0xff); 38 39 39 40 /* disable parity error response and SERR */ 40 reg16 = pci_read_config16(dev, 0x3e);41 reg16 = pci_read_config16(dev, BCTRL); 41 42 reg16 &= ~(1 << 0); 42 43 reg16 &= ~(1 << 1); 43 pci_write_config16(dev, 0x3e, reg16);44 pci_write_config16(dev, BCTRL, reg16); 44 45 45 46 /* Master Latency Count must be set to 0x04! */ 46 reg8 = pci_read_config8(dev, 0x1b);47 reg8 = pci_read_config8(dev, SMLT); 47 48 reg8 &= 0x07; 48 49 reg8 |= (0x04 << 3); 49 pci_write_config8(dev, 0x1b, reg8);50 pci_write_config8(dev, SMLT, reg8); 50 51 51 52 /* Will this improve throughput of bus masters? */ … … 53 54 54 55 /* Clear errors in status registers */ 55 reg16 = pci_read_config16(dev, 0x06);56 reg16 = pci_read_config16(dev, PSTS); 56 57 //reg16 |= 0xf900; 57 pci_write_config16(dev, 0x06, reg16);58 pci_write_config16(dev, PSTS, reg16); 58 59 59 reg16 = pci_read_config16(dev, 0x1e);60 reg16 = pci_read_config16(dev, SECSTS); 60 61 // reg16 |= 0xf900; 61 pci_write_config16(dev, 0x1e, reg16);62 pci_write_config16(dev, SECSTS, reg16); 62 63 } 63 64 -
trunk/src/southbridge/intel/i82801gx/i82801gx_pcie.c
r4538 r5136 76 76 pci_write_config16(dev, 0x50, reg16); 77 77 78 #if EVEN_MORE_DEBUG78 #ifdef EVEN_MORE_DEBUG 79 79 reg32 = pci_read_config32(dev, 0x20); 80 80 printk_spew(" MBL = 0x%08x\n", reg32); -
trunk/src/southbridge/intel/i82801gx/i82801gx_reset.c
r5016 r5136 20 20 21 21 #include <arch/io.h> 22 #include <reset.h> 22 23 23 24 void soft_reset(void) -
trunk/src/southbridge/intel/i82801gx/i82801gx_smi.c
r5026 r5136 25 25 #include <console/console.h> 26 26 #include <arch/io.h> 27 #include <cpu/cpu.h> 27 28 #include <cpu/x86/cache.h> 28 29 #include <cpu/x86/smm.h> … … 238 239 extern uint8_t smm_relocation_start, smm_relocation_end; 239 240 240 void smm_relocate(void)241 static void smm_relocate(void) 241 242 { 242 243 u32 smi_en; … … 318 319 } 319 320 320 void smm_install(void)321 static void smm_install(void) 321 322 { 322 323 /* enable the SMM memory window */ -
trunk/src/southbridge/intel/i82801gx/i82801gx_smihandler.c
r5026 r5136 28 28 #include <device/pci_def.h> 29 29 #include "i82801gx.h" 30 #include "i82801gx_power.h"31 30 32 31 #define DEBUG_SMI -
trunk/src/southbridge/intel/i82801gx/i82801gx_usb_ehci.c
r5022 r5136 54 54 res = find_resource(dev, 0x10); 55 55 base = res->base; 56 reg32 = read32( (u8 *)base + 0x24) | (1 << 2);57 write32( (u8 *)base + 0x24, reg32);56 reg32 = read32(base + 0x24) | (1 << 2); 57 write32(base + 0x24, reg32); 58 58 59 59 /* workaround */ -
trunk/src/southbridge/intel/i82801gx/i82801gx_watchdog.c
r3991 r5136 23 23 #include <device/device.h> 24 24 #include <device/pci.h> 25 #include <watchdog.h> 25 26 26 27 void watchdog_off(void) -
trunk/src/southbridge/nvidia/ck804/ck804_reset.c
r4890 r5136 5 5 6 6 #include <arch/io.h> 7 #include < part/hard_reset.h>7 #include <reset.h> 8 8 9 9 #define PCI_DEV(BUS, DEV, FN) ( \ -
trunk/src/southbridge/sis/sis966/sis761.c
r3964 r5136 35 35 #include <device/pci_ids.h> 36 36 #include <device/pci_ops.h> 37 #include <part/hard_reset.h>38 37 #include <pc80/mc146818rtc.h> 39 38 #include <bitops.h> 40 39 #include <cpu/amd/model_fxx_rev.h> 41 42 //#include "amdk8.h"43 44 40 #include <arch/io.h> 45 41 -
trunk/src/superio/winbond/w83627thg/superio.c
r4993 r5136 103 103 { &ops, W83627THG_PP, PNP_IO0 | PNP_IRQ0 | PNP_DRQ0, { 0x07f8, 0}, }, 104 104 { &ops, W83627THG_SP1, PNP_IO0 | PNP_IRQ0, { 0x7f8, 0 }, }, 105 { &ops, W83627THG_SP2, PNP_IO0 | PNP_IRQ0 , { 0x7f8, 0 }, },105 { &ops, W83627THG_SP2, PNP_IO0 | PNP_IRQ0 | PNP_MSC1, { 0x7f8, 0 }, }, 106 106 /* No 4 { 0,}, */ 107 { &ops, W83627THG_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1 , { 0x7ff, 0 }, { 0x7ff, 0x4}, },107 { &ops, W83627THG_KBC, PNP_IO0 | PNP_IO1 | PNP_IRQ0 | PNP_IRQ1 | PNP_MSC0, { 0x7ff, 0 }, { 0x7ff, 0x4}, }, 108 108 { &ops, W83627THG_GAME_MIDI_GPIO1, PNP_IO0 | PNP_IO1 | PNP_IRQ0, { 0x7ff, 0 }, {0x7fe, 4} }, 109 109 { &ops, W83627THG_GPIO2,}, 110 { &ops, W83627THG_GPIO3, },110 { &ops, W83627THG_GPIO3, PNP_EN | PNP_MSC0 | PNP_MSC1, }, 111 111 { &ops, W83627THG_ACPI, PNP_IRQ0, }, 112 112 { &ops, W83627THG_HWM, PNP_IO0 | PNP_IRQ0, { 0xff8, 0 } }, -
trunk/util/abuild/abuild
r5108 r5136 163 163 if [ "$PAYLOAD" != "/dev/null" ]; then 164 164 echo "# CONFIG_PAYLOAD_NONE is not set" >> .config 165 echo "CONFIG_PAYLOAD_ELF=\"$PAYLOAD\"" >> .config 165 echo "CONFIG_PAYLOAD_ELF=y" >> .config 166 echo "CONFIG_FALLBACK_PAYLOAD_FILE=\"$PAYLOAD\"" >> .config 166 167 fi 167 168 168 169 if [ "$loglevel" != "default" ]; then 169 170 printf "(loglevel override) " 170 echo "CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_$loglevel=y" 171 echo "CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=$loglevel" 172 echo "CONFIG_DEFAULT_CONSOLE_LOGLEVEL_$loglevel=y" 173 echo "CONFIG_DEFAULT_CONSOLE_LOGLEVEL=$loglevel" 171 echo "CONFIG_MAXIMUM_CONSOLE_LOGLEVEL_$loglevel=y" >> .config 172 echo "CONFIG_MAXIMUM_CONSOLE_LOGLEVEL=$loglevel" >> .config 173 echo "CONFIG_DEFAULT_CONSOLE_LOGLEVEL_$loglevel=y" >> .config 174 echo "CONFIG_DEFAULT_CONSOLE_LOGLEVEL=$loglevel" >> .config 174 175 fi 175 176 fi … … 224 225 mv .config ${build_dir}/config.build 225 226 mv .xcompile ${build_dir}/xcompile.build 226 mv ..config.tmp ${build_dir}/config.deps227 227 cd $TARGET/${VENDOR}_${MAINBOARD} 228 228 etime=`perl -e 'print time();' 2>/dev/null || date +%s` -
trunk/util/romcc/romcc.c
r5123 r5136 22450 22450 static int is_imm32(struct triple *imm) 22451 22451 { 22452 return ((imm->op == OP_INTCONST) && (imm->u.cval <= 0xffffffffUL)) || 22452 // second condition commented out to prevent compiler warning: 22453 // imm->u.cval is always 32bit unsigned, so the comparison is 22454 // always true. 22455 return ((imm->op == OP_INTCONST) /* && (imm->u.cval <= 0xffffffffUL) */ ) || 22453 22456 (imm->op == OP_ADDRCONST); 22454 22457
Note: See TracChangeset
for help on using the changeset viewer.
