| 1 |
|
| 2 | |
| 3 | * This interface is used for compatibility with old U-boots *ONLY*.
|
| 4 | * Please do not imitate or extend this.
|
| 5 |
|
| 6 |
|
| 7 | |
| 8 | * (C) Copyright 2000, 2001
|
| 9 | * Wolfgang Denk, DENX Software Engineering, [email protected].
|
| 10 |
|
| 11 |
|
| 12 | #ifndef __PPCBOOT_H__
|
| 13 | #define __PPCBOOT_H__
|
| 14 |
|
| 15 | |
| 16 | * Board information passed to kernel from PPCBoot
|
| 17 | *
|
| 18 | * include/asm-ppc/ppcboot.h
|
| 19 |
|
| 20 |
|
| 21 | #include "types.h"
|
| 22 |
|
| 23 | typedef struct bd_info {
|
| 24 | unsigned long bi_memstart;
|
| 25 | unsigned long bi_memsize;
|
| 26 | unsigned long bi_flashstart;
|
| 27 | unsigned long bi_flashsize;
|
| 28 | unsigned long bi_flashoffset;
|
| 29 | unsigned long bi_sramstart;
|
| 30 | unsigned long bi_sramsize;
|
| 31 | #if defined(TARGET_8xx) || defined(TARGET_CPM2) || defined(TARGET_85xx) ||\
|
| 32 | defined(TARGET_83xx) || defined(TARGET_86xx)
|
| 33 | unsigned long bi_immr_base;
|
| 34 | #endif
|
| 35 | #if defined(TARGET_PPC_MPC52xx)
|
| 36 | unsigned long bi_mbar_base;
|
| 37 | #endif
|
| 38 | unsigned long bi_bootflags;
|
| 39 | unsigned long bi_ip_addr;
|
| 40 | unsigned char bi_enetaddr[6];
|
| 41 | unsigned short bi_ethspeed;
|
| 42 | unsigned long bi_intfreq;
|
| 43 | unsigned long bi_busfreq;
|
| 44 | #if defined(TARGET_CPM2)
|
| 45 | unsigned long bi_cpmfreq;
|
| 46 | unsigned long bi_brgfreq;
|
| 47 | unsigned long bi_sccfreq;
|
| 48 | unsigned long bi_vco;
|
| 49 | #endif
|
| 50 | #if defined(TARGET_PPC_MPC52xx)
|
| 51 | unsigned long bi_ipbfreq;
|
| 52 | unsigned long bi_pcifreq;
|
| 53 | #endif
|
| 54 | unsigned long bi_baudrate;
|
| 55 | #if defined(TARGET_4xx)
|
| 56 | unsigned char bi_s_version[4];
|
| 57 | unsigned char bi_r_version[32];
|
| 58 | unsigned int bi_procfreq;
|
| 59 | unsigned int bi_plb_busfreq;
|
| 60 | unsigned int bi_pci_busfreq;
|
| 61 | unsigned char bi_pci_enetaddr[6];
|
| 62 | #endif
|
| 63 | #if defined(TARGET_HYMOD)
|
| 64 | hymod_conf_t bi_hymod_conf;
|
| 65 | #endif
|
| 66 | #if defined(TARGET_EVB64260) || defined(TARGET_44x) || \
|
| 67 | defined(TARGET_85xx) || defined(TARGET_83xx) || defined(TARGET_HAS_ETH1)
|
| 68 |
|
| 69 | unsigned char bi_enet1addr[6];
|
| 70 | #define HAVE_ENET1ADDR
|
| 71 | #endif
|
| 72 | #if defined(TARGET_EVB64260) || defined(TARGET_440GX) || \
|
| 73 | defined(TARGET_85xx) || defined(TARGET_HAS_ETH2)
|
| 74 |
|
| 75 | unsigned char bi_enet2addr[6];
|
| 76 | #define HAVE_ENET2ADDR
|
| 77 | #endif
|
| 78 | #if defined(TARGET_440GX) || defined(TARGET_HAS_ETH3)
|
| 79 |
|
| 80 | unsigned char bi_enet3addr[6];
|
| 81 | #define HAVE_ENET3ADDR
|
| 82 | #endif
|
| 83 | #if defined(TARGET_4xx)
|
| 84 | unsigned int bi_opbfreq;
|
| 85 | int bi_iic_fast[2];
|
| 86 | #endif
|
| 87 | #if defined(TARGET_440GX)
|
| 88 | int bi_phynum[4];
|
| 89 | int bi_phymode[4];
|
| 90 | #endif
|
| 91 | } bd_t;
|
| 92 |
|
| 93 | #define bi_tbfreq bi_intfreq
|
| 94 |
|
| 95 | #endif
|