; --------------------------------------------------------------------------------
; @Title: Set up the board info (bd_t structure)
; @Description: 
;   This is normally done by the boot loader, and is
;   only necessary if you're not using the boot loader
;   check with your board bd_info/bd_t structure (
;   (usually arch/ppc/platforms/<board>.h or include/asm/ppcboot.h)
; @Keywords: linux
; @Author: DIE
; @Chip: MPC8280
; @Board: PQ2FADS-ZU
; @Copyright: (C) 1989-2014 Lauterbach GmbH, licensed for use with TRACE32(R) only
; --------------------------------------------------------------------------------
; $Id: board_info.cmm 7486 2014-07-29 08:15:44Z rweiss $


 &bdinfo=0x280000

 Data.Set &bdinfo+0x00 %Long 0x00000000     ; mem start
 Data.Set &bdinfo+0x04 %Long 0x01000000     ; DRAM size 16MB
 Data.Set &bdinfo+0x08 %Long 0xFE000000     ; flash start
 Data.Set &bdinfo+0x0c %Long 0x02000000     ; flash size
 Data.Set &bdinfo+0x10 %Long 0x00000000     ; flash offset
 Data.Set &bdinfo+0x14 %Long 0x00000000     ; sram start
 Data.Set &bdinfo+0x18 %Long 0x00000000     ; sram size
 Data.Set &bdinfo+0x1c %Long 0xF0000000     ; immr base
 Data.Set &bdinfo+0x20 %Long 0x00000000     ; boot flags
 Data.Set &bdinfo+0x24 %Long 0x0a11002e     ; IP address 10.17.0.46
 Data.Set &bdinfo+0x28 %Byte 0x00 0x04 0xac 0xe3 0x11 0xa2 ; Ethernet address
 Data.Set &bdinfo+0x2e %Word 0x000a         ; Ethenet speed 10 Mbps
 Data.Set &bdinfo+0x30 %Long 300000000.     ; internal freq 300 MHz
 Data.Set &bdinfo+0x34 %Long 100000000.     ; bus freq 100 MHz
 Data.Set &bdinfo+0x38 %Long 200000000.     ; cpm freq 200 MHz
 Data.Set &bdinfo+0x3c %Long  25000000.     ; brg freq  25 MHz
 Data.Set &bdinfo+0x40 %Long 100000000.     ; scc freq 100 MHz
 Data.Set &bdinfo+0x44 %Long 400000000.     ; vco freq 400 MHz
 Data.Set &bdinfo+0x48 %Long 0x0001C200     ; console baudrate 115200
 
 Register.Set R3 &bdinfo      ; R3 points to boot info
 
 ; setup command line arguments

 Data.Set &bdinfo+0x100 "console=ttyCPM0,115200 root=/dev/ram" 0

 Register.Set r6 &bdinfo+0x100      ; R6 points to command line
 Register.Set r7 &bdinfo+0x1ff      ; R7 points to end of command line

 ENDDO
 
