updated for v2
[coreboot.git] / targets / motorola / sandpoint / Config.lb
1 # Sample config file for Motorola Sandpoint X3 Demo Board with
2 # the Altimus mpc7410 PMC card
3 # This will make a target directory of ./sandpoint
4
5 loadoptions
6
7 target sandpoint
8
9 uses CROSS_COMPILE 
10 uses HAVE_OPTION_TABLE
11 uses CONFIG_SANDPOINT_ALTIMUS 
12 uses CONFIG_COMPRESS 
13 uses DEFAULT_CONSOLE_LOGLEVEL 
14 uses CONFIG_USE_INIT
15 uses NO_POST
16 uses CONFIG_CONSOLE_SERIAL8250 
17 uses TTYS0_BASE 
18 uses UART0_IO_BASE 
19 uses CONFIG_IDE_STREAM 
20 uses IDE_BOOT_DRIVE
21 uses IDE_SWAB IDE_OFFSET 
22 uses ROM_SIZE ROM_IMAGE_SIZE 
23 uses ROM_SECTION_SIZE 
24 uses ROM_SECTION_OFFSET 
25 uses _RESET
26 uses _EXCEPTION_VECTORS
27 uses _ROMBASE
28 uses _RAMBASE
29 uses STACK_SIZE HEAP_SIZE
30
31 ## use a cross compiler
32 option CROSS_COMPILE="powerpc-eabi-"
33 #option CROSS_COMPILE="ppc_74xx-"
34
35 ## Use stage 1 initialization code
36 option CONFIG_USE_INIT=1
37
38 ## We don't use compressed image
39 option CONFIG_COMPRESS=0
40
41 ## Turn off POST codes
42 option NO_POST=1
43
44 ## Enable serial console
45 option DEFAULT_CONSOLE_LOGLEVEL=8
46 option CONFIG_CONSOLE_SERIAL8250=1
47 option TTYS0_BASE=0x3f0
48 option UART0_IO_BASE=0xfe000000+TTYS0_BASE
49
50 ## Boot linux from IDE
51 option CONFIG_IDE_STREAM=1
52 option IDE_BOOT_DRIVE=0
53 option IDE_SWAB=1
54 option IDE_OFFSET=0
55
56 option ROM_SIZE=1048576
57
58 ## For the trick of using cache as ram
59 ## put the fake ram location at this address
60 #option CACHE_RAM_BASE=0x00200000
61 #option CACHE_RAM_SIZE=0x00004000
62
63 ##
64 ## Use a 64K stack
65 ##
66 option STACK_SIZE=0x10000
67
68 ##
69 ## Use a 64K heap
70 ##
71 option HEAP_SIZE=0x10000
72
73 ## Compute the location and size of where this firmware image
74 ## (linuxBIOS plus bootloader) will live in the boot rom chip.
75 ##       
76 option ROM_SECTION_SIZE=ROM_SIZE
77 option ROM_SECTION_OFFSET=0
78
79 # Sandpoint Demo Board
80 romimage "normal"
81         ## Sandpoint reset vector
82         option _RESET=0xfff00100
83
84         ## Excpetoion vectors
85         option _EXCEPTION_VECTORS=_RESET+0x100
86
87         ## Start of linuxBIOS in the boot rom
88         ## = _RESET + exeception vector table size
89         option _ROMBASE=0xfff03100
90
91         ## LinuxBIOS C code runs at this location in RAM
92         option _RAMBASE=0x00100000
93
94         ## ROM_IMAGE_SIZE is the amount of space to allow linuxBIOS to occupy.
95         option ROM_IMAGE_SIZE=49152
96         option CONFIG_SANDPOINT_ALTIMUS=1
97
98         mainboard motorola/sandpoint
99 end
100
101 buildrom ./linuxbios.rom ROM_SIZE "normal"