Changeset 3638 for trunk

Show
Ignore:
Timestamp:
10/06/08 23:00:46 (3 months ago)
Author:
myles
Message:

Whitespace fixes.

Signed-off-by: Myles Watson <mylesgw@…>
Acked-by: Myles Watson <mylesgw@…>

Location:
trunk/coreboot-v2/src/mainboard
Files:
30 modified

Legend:

Unmodified
Added
Removed
  • trunk/coreboot-v2/src/mainboard/nvidia/l1_2pvv/Config.lb

    r3079 r3638  
    1 ##  
     1## 
    22## This file is part of the coreboot project. 
    3 ##  
     3## 
    44## Copyright (C) 2007 AMD 
    55## Written by Yinghai Lu <yinghailu@amd.com> for AMD. 
    6 ##  
     6## 
    77## This program is free software; you can redistribute it and/or modify 
    88## it under the terms of the GNU General Public License as published by 
    99## the Free Software Foundation; either version 2 of the License, or 
    1010## (at your option) any later version. 
    11 ##  
     11## 
    1212## This program is distributed in the hope that it will be useful, 
    1313## but WITHOUT ANY WARRANTY; without even the implied warranty of 
    1414## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1515## GNU General Public License for more details. 
    16 ##  
     16## 
    1717## You should have received a copy of the GNU General Public License 
    1818## along with this program; if not, write to the Free Software 
    1919## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA 
    20 ##  
     20## 
    2121 
    2222## 
     
    4141## The coreboot bootloader. 
    4242## 
    43 default PAYLOAD_SIZE            = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE ) 
     43default PAYLOAD_SIZE             = ( ROM_SECTION_SIZE - ROM_IMAGE_SIZE ) 
    4444default CONFIG_ROM_PAYLOAD_START = (0xffffffff - ROM_SIZE + ROM_SECTION_OFFSET + 1) 
    4545 
     
    6868end 
    6969 
    70 arch i386 end  
     70arch i386 end 
    7171 
    7272## 
     
    8383 
    8484if HAVE_ACPI_TABLES 
    85         object acpi_tables.o 
    86         object fadt.o 
     85        object acpi_tables.o 
     86        object fadt.o 
    8787        makerule dsdt.c 
    8888                depends "$(MAINBOARD)/dx/dsdt_lb.dsl" 
     
    9090                action  "mv dsdt_lb.hex dsdt.c" 
    9191        end 
    92         object ./dsdt.o 
     92        object ./dsdt.o 
    9393 
    9494        #./ssdt.o is moved to northbridge/amd/amdk8/Config.lb 
    95          
    96         if ACPI_SSDTX_NUM 
    97             makerule ssdt6.c 
    98                         depends "$(MAINBOARD)/dx/pci6.asl" 
    99                         action  "/usr/sbin/iasl -tc $(MAINBOARD)/dx/pci6.asl" 
    100                         action  "perl -pi -e 's/AmlCode/AmlCode_ssdt6/g' pci6.hex" 
    101                         action  "mv pci6.hex ssdt6.c" 
    102             end 
    103             object ./ssdt6.o 
    104             makerule ssdt5.c 
    105                         depends "$(MAINBOARD)/dx/pci5.asl" 
    106                         action  "/usr/sbin/iasl -tc $(MAINBOARD)/dx/pci5.asl" 
    107                         action  "perl -pi -e 's/AmlCode/AmlCode_ssdt5/g' pci5.hex" 
    108                         action  "mv pci5.hex ssdt5.c" 
    109             end 
    110             object ./ssdt5.o 
    111         end 
     95 
     96        if ACPI_SSDTX_NUM 
     97            makerule ssdt6.c 
     98                        depends "$(MAINBOARD)/dx/pci6.asl" 
     99                        action  "/usr/sbin/iasl -tc $(MAINBOARD)/dx/pci6.asl" 
     100                        action  "perl -pi -e 's/AmlCode/AmlCode_ssdt6/g' pci6.hex" 
     101                        action  "mv pci6.hex ssdt6.c" 
     102            end 
     103            object ./ssdt6.o 
     104            makerule ssdt5.c 
     105                        depends "$(MAINBOARD)/dx/pci5.asl" 
     106                        action  "/usr/sbin/iasl -tc $(MAINBOARD)/dx/pci5.asl" 
     107                        action  "perl -pi -e 's/AmlCode/AmlCode_ssdt5/g' pci5.hex" 
     108                        action  "mv pci5.hex ssdt5.c" 
     109            end 
     110            object ./ssdt5.o 
     111        end 
    112112end 
    113113 
    114114if USE_DCACHE_RAM 
    115115 
    116         if CONFIG_USE_INIT       
     116        if CONFIG_USE_INIT 
    117117                makerule ./cache_as_ram_auto.o 
    118                         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h" 
    119                         action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -o $@" 
     118                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h" 
     119                        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -o $@" 
    120120                end 
    121121        else 
    122122                makerule ./cache_as_ram_auto.inc 
    123                         depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h" 
    124                         action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@" 
    125                         action "perl -e 's/.rodata/.rom.data/g' -pi $@" 
    126                         action "perl -e 's/.text/.section .rom.text/g' -pi $@" 
     123                        depends "$(MAINBOARD)/cache_as_ram_auto.c option_table.h" 
     124                        action "$(CC) $(DISTRO_CFLAGS) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/cache_as_ram_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -S -o $@" 
     125                        action "perl -e 's/.rodata/.rom.data/g' -pi $@" 
     126                        action "perl -e 's/.text/.section .rom.text/g' -pi $@" 
    127127                end 
    128128        end 
     
    133133else 
    134134    if CONFIG_AP_CODE_IN_CAR 
    135         makerule ./apc_auto.o 
    136                 depends "$(MAINBOARD)/apc_auto.c option_table.h" 
    137                 action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/apc_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -o $@" 
    138         end 
    139         ldscript /arch/i386/init/ldscript_apc.lb 
     135        makerule ./apc_auto.o 
     136                depends "$(MAINBOARD)/apc_auto.c option_table.h" 
     137                action "$(CC) -I$(TOP)/src -I. $(CPPFLAGS) $(MAINBOARD)/apc_auto.c -Os -nostdinc -nostdlib -fno-builtin -Wall -c -o $@" 
     138        end 
     139        ldscript /arch/i386/init/ldscript_apc.lb 
    140140    end 
    141141end 
     
    160160 
    161161if USE_DCACHE_RAM 
    162         if CONFIG_USE_INIT 
    163                 ldscript /cpu/x86/32bit/entry32.lds 
    164         end 
    165  
    166         if CONFIG_USE_INIT 
    167                 ldscript /cpu/amd/car/cache_as_ram.lds 
    168         end 
     162        if CONFIG_USE_INIT 
     163                ldscript /cpu/x86/32bit/entry32.lds 
     164        end 
     165 
     166        if CONFIG_USE_INIT 
     167                ldscript /cpu/amd/car/cache_as_ram.lds 
     168        end 
    169169end 
    170170 
     
    174174## 
    175175if HAVE_FAILOVER_BOOT 
    176     if USE_FAILOVER_IMAGE  
    177         mainboardinit cpu/x86/16bit/reset16.inc  
    178         ldscript /cpu/x86/16bit/reset16.lds  
     176    if USE_FAILOVER_IMAGE 
     177        mainboardinit cpu/x86/16bit/reset16.inc 
     178        ldscript /cpu/x86/16bit/reset16.lds 
    179179    else 
    180         mainboardinit cpu/x86/32bit/reset32.inc  
    181         ldscript /cpu/x86/32bit/reset32.lds  
    182     end 
    183 else 
    184     if USE_FALLBACK_IMAGE  
    185         mainboardinit cpu/x86/16bit/reset16.inc  
    186         ldscript /cpu/x86/16bit/reset16.lds  
     180        mainboardinit cpu/x86/32bit/reset32.inc 
     181        ldscript /cpu/x86/32bit/reset32.lds 
     182    end 
     183else 
     184    if USE_FALLBACK_IMAGE 
     185        mainboardinit cpu/x86/16bit/reset16.inc 
     186        ldscript /cpu/x86/16bit/reset16.lds 
    187187    else 
    188         mainboardinit cpu/x86/32bit/reset32.inc  
    189         ldscript /cpu/x86/32bit/reset32.lds  
     188        mainboardinit cpu/x86/32bit/reset32.inc 
     189        ldscript /cpu/x86/32bit/reset32.lds 
    190190    end 
    191191end 
     
    201201## 
    202202if HAVE_FAILOVER_BOOT 
    203     if USE_FAILOVER_IMAGE  
     203    if USE_FAILOVER_IMAGE 
    204204        mainboardinit southbridge/nvidia/mcp55/romstrap.inc 
    205205        ldscript /southbridge/nvidia/mcp55/romstrap.lds 
    206206    end 
    207207else 
    208     if USE_FALLBACK_IMAGE  
     208    if USE_FALLBACK_IMAGE 
    209209        mainboardinit southbridge/nvidia/mcp55/romstrap.inc 
    210210        ldscript /southbridge/nvidia/mcp55/romstrap.lds 
     
    220220 
    221221### 
    222 ### This is the early phase of coreboot startup  
     222### This is the early phase of coreboot startup 
    223223### Things are delicate and we test to see if we should 
    224224### failover to another image. 
     
    251251 
    252252## 
    253 ## Include the secondary Configuration files  
     253## Include the secondary Configuration files 
    254254## 
    255255if CONFIG_CHIP_NAME 
     
    258258 
    259259chip northbridge/amd/amdk8/root_complex 
    260         device apic_cluster 0 on 
    261                 chip cpu/amd/socket_F 
    262                         device apic 0 on end 
    263                 end 
    264         end 
     260        device apic_cluster 0 on 
     261                chip cpu/amd/socket_F 
     262                        device apic 0 on end 
     263                end 
     264        end 
    265265        device pci_domain 0 on 
    266266                chip northbridge/amd/amdk8 #mc0 
    267                         device pci 18.0 on  
    268                                 #  devices on link 0, link 0 == LDT 0  
    269                                 chip southbridge/nvidia/mcp55  
     267                        device pci 18.0 on 
     268                                #  devices on link 0, link 0 == LDT 0 
     269                                chip southbridge/nvidia/mcp55 
    270270                                        device pci 0.0 on end   # HT 
    271                                         device pci 1.0 on # LPC 
     271                                        device pci 1.0 on # LPC 
    272272                                                chip superio/winbond/w83627ehg 
    273273                                                        device pnp 2e.0 off #  Floppy 
    274                                                                 io 0x60 = 0x3f0 
    275                                                                 irq 0x70 = 6 
    276                                                                 drq 0x74 = 2 
    277                                                         end 
    278                                                         device pnp 2e.1 off #  Parallel Port 
    279                                                                 io 0x60 = 0x378 
    280                                                                 irq 0x70 = 7 
    281                                                         end 
    282                                                         device pnp 2e.2 on #  Com1 
    283                                                                 io 0x60 = 0x3f8 
    284                                                                 irq 0x70 = 4 
    285                                                         end 
    286                                                         device pnp 2e.3 off #  Com2 
    287                                                                 io 0x60 = 0x2f8 
    288                                                                 irq 0x70 = 3 
    289                                                         end 
    290                                                         device pnp 2e.5 on #  Keyboard 
    291                                                                 io 0x60 = 0x60 
    292                                                                 io 0x62 = 0x64 
    293                                                                 irq 0x70 = 1 
     274                                                                io 0x60 = 0x3f0 
     275                                                                irq 0x70 = 6 
     276                                                                drq 0x74 = 2 
     277                                                        end 
     278                                                        device pnp 2e.1 off #  Parallel Port 
     279                                                                io 0x60 = 0x378 
     280                                                                irq 0x70 = 7 
     281                                                        end 
     282                                                        device pnp 2e.2 on #  Com1 
     283                                                                io 0x60 = 0x3f8 
     284                                                                irq 0x70 = 4 
     285                                                        end 
     286                                                        device pnp 2e.3 off #  Com2 
     287                                                                io 0x60 = 0x2f8 
     288                                                                irq 0x70 = 3 
     289                                                        end 
     290                                                        device pnp 2e.5 on #  Keyboard 
     291                                                                io 0x60 = 0x60 
     292                                                                io 0x62 = 0x64 
     293                                                                irq 0x70 = 1 
    294294                                                                irq 0x72 = 12 
    295295                                                        end 
    296                                                         device pnp 2e.6 off  # SFI  
    297                                                                 io 0x62 = 0x100 
    298                                                         end 
    299                                                         device pnp 2e.7 off #  GPIO_GAME_MIDI 
     296                                                        device pnp 2e.6 off  # SFI 
     297                                                                io 0x62 = 0x100 
     298                                                        end 
     299                                                        device pnp 2e.7 off #  GPIO_GAME_MIDI 
    300300                                                                io 0x60 = 0x220 
    301301                                                                io 0x62 = 0x300 
    302302                                                                irq 0x70 = 9 
    303                                                         end                                              
    304                                                         device pnp 2e.8 off end #  WDTO_PLED 
    305                                                         device pnp 2e.9 off end #  GPIO_SUSLED 
    306                                                         device pnp 2e.a off end #  ACPI 
    307                                                         device pnp 2e.b on #  HW Monitor 
     303                                                        end 
     304                                                        device pnp 2e.8 off end #  WDTO_PLED 
     305                                                        device pnp 2e.9 off end #  GPIO_SUSLED 
     306                                                        device pnp 2e.a off end #  ACPI 
     307                                                        device pnp 2e.b on #  HW Monitor 
    308308                                                                io 0x60 = 0x290 
    309309                                                                irq 0x70 = 5 
    310                                                         end 
     310                                                        end 
    311311                                                end 
    312312                                        end 
    313                                         device pci 1.1 on # SM 0 
    314                                                 chip drivers/generic/generic #dimm 0-0-0 
    315                                                         device i2c 50 on end   
    316                                                 end               
    317                                                 chip drivers/generic/generic #dimm 0-0-1 
    318                                                         device i2c 51 on end 
    319                                                 end      
    320                                                 chip drivers/generic/generic #dimm 0-1-0 
    321                                                         device i2c 52 on end 
    322                                                 end              
    323                                                 chip drivers/generic/generic #dimm 0-1-1 
    324                                                         device i2c 53 on end 
    325                                                 end               
    326                                                 chip drivers/generic/generic #dimm 1-0-0 
    327                                                         device i2c 54 on end 
    328                                                 end      
    329                                                 chip drivers/generic/generic #dimm 1-0-1 
    330                                                         device i2c 55 on end 
    331                                                 end      
    332                                                 chip drivers/generic/generic #dimm 1-1-0 
    333                                                         device i2c 56 on end 
    334                                                 end      
    335                                                 chip drivers/generic/generic #dimm 1-1-1 
    336                                                         device i2c 57 on end 
    337                                                 end  
     313                                        device pci 1.1 on # SM 0 
     314                                                chip drivers/generic/generic #dimm 0-0-0 
     315                                                        device i2c 50 on end 
     316                                                end 
     317                                                chip drivers/generic/generic #dimm 0-0-1 
     318                                                        device i2c 51 on end 
     319                                                end 
     320                                                chip drivers/generic/generic #dimm 0-1-0 
     321                                                        device i2c 52 on end 
     322                                                end 
     323                                                chip drivers/generic/generic #dimm 0-1-1 
     324                                                        device i2c 53 on end 
     325                                                end 
     326                                                chip drivers/generic/generic #dimm 1-0-0 
     327                                                        device i2c 54 on end 
     328                                                end 
     329                                                chip drivers/generic/generic #dimm 1-0-1 
     330                                                        device i2c 55 on end 
     331                                                end 
     332                                                chip drivers/generic/generic #dimm 1-1-0 
     333                                                        device i2c 56 on end 
     334                                                end 
     335                                                chip drivers/generic/generic #dimm 1-1-1 
     336                                                        device i2c 57 on end 
     337                                                end 
    338338                                        end # SM 
    339                                         device pci 1.1 on # SM 1 
     339                                        device pci 1.1 on # SM 1 
    340340#PCI device smbus address will depend on addon pci device, do we need to scan_smbus_bus? 
    341 #                                                chip drivers/generic/generic #PCIXA Slot1 
    342 #                                                        device i2c 50 on end 
    343 #                                                end 
    344 #                                                chip drivers/generic/generic #PCIXB Slot1 
    345 #                                                        device i2c 51 on end 
    346 #                                                end      
    347 #                                                chip drivers/generic/generic #PCIXB Slot2 
    348 #                                                        device i2c 52 on end 
    349 #                                                end              
    350 #                                                chip drivers/generic/generic #PCI Slot1 
    351 #                                                        device i2c 53 on end 
    352 #                                                end               
    353 #                                                chip drivers/generic/generic #Master MCP55 PCI-E 
    354 #                                                        device i2c 54 on end 
    355 #                                                end      
    356 #                                                chip drivers/generic/generic #Slave MCP55 PCI-E 
    357 #                                                        device i2c 55 on end 
    358 #                                                end              
    359                                                 chip drivers/generic/generic #MAC EEPROM 
    360                                                         device i2c 51 on end 
    361                                                 end  
    362  
    363                                         end # SM  
    364                                         device pci 2.0 on end # USB 1.1 
    365                                         device pci 2.1 on end # USB 2 
    366                                         device pci 4.0 on end # IDE 
    367                                         device pci 5.0 on end # SATA 0 
    368                                         device pci 5.1 on end # SATA 1 
    369                                         device pci 5.2 on end # SATA 2 
    370                                         device pci 6.0 on end # PCI 
    371                                         device pci 6.1 on end # AZA 
    372                                         device pci 8.0 on end # NIC 
    373                                         device pci 9.0 on end # NIC 
    374                                         device pci a.0 on end # PCI E 5 
    375                                         device pci b.0 off end # PCI E 4 
    376                                         device pci c.0 off end # PCI E 3 
    377                                         device pci d.0 on end # PCI E 2 
    378                                         device pci e.0 off end # PCI E 1 
    379                                         device pci f.0 on end # PCI E 0 
    380                                         register "ide0_enable" = "1" 
    381                                         register "sata0_enable" = "1" 
    382                                         register "sata1_enable" = "1" 
     341#                                               chip drivers/generic/generic #PCIXA Slot1 
     342#                                                       device i2c 50 on end 
     343#                                               end 
     344#                                               chip drivers/generic/generic #PCIXB Slot1 
     345#                                                       device i2c 51 on end 
     346#                                               end 
     347#                                               chip drivers/generic/generic #PCIXB Slot2 
     348#                                                       device i2c 52 on end 
     349#                                               end 
     350#                                               chip drivers/generic/generic #PCI Slot1 
     351#                                                       device i2c 53 on end 
     352#                                               end 
     353#                                               chip drivers/generic/generic #Master MCP55 PCI-E 
     354#                                                       device i2c 54 on end 
     355#                                               end 
     356#                                               chip drivers/generic/generic #Slave MCP55 PCI-E 
     357#                                                       device i2c 55 on end 
     358#