]> www.infradead.org Git - users/rw/ppcboot.git/commitdiff
Add changes necessary to boot with the 2.4.0-test2 version of Linux,
authorhydra <hydra>
Sun, 22 Oct 2000 01:46:14 +0000 (01:46 +0000)
committerhydra <hydra>
Sun, 22 Oct 2000 01:46:14 +0000 (01:46 +0000)
which uses an "extended" board_info (bd_t) structure.  It needs a
few items that are not available in the standard ppcboot bd_t.
In the future, this new structure type may become the "standard".

common/board.c
include/config_CPCI405.h
include/ppcboot.h

index 7019951b0a6c30f0820ff1edc1529b6a708d9f41..2c84bcd210f90b250db28afcf0ffcd148a2742bb 100644 (file)
@@ -170,6 +170,10 @@ board_init_f (ulong bootflag)
      * Save local variables to board info struct
      */
 
+#ifdef EXTBDINFO
+       strcpy(bd->bi_s_version, "1.1");
+       strcpy(bd->bi_r_version, PPCBOOT_VERSION);
+#endif
     bd->bi_memstart    = CFG_SDRAM_BASE;  /* start of  DRAM memory             */
     bd->bi_memsize     = dram_size;      /* size  of  DRAM memory in bytes     */
     bd->bi_flashstart  = CFG_FLASH_BASE;  /* start of FLASH memory             */
@@ -202,6 +206,11 @@ board_init_f (ulong bootflag)
     bd->bi_intfreq  = clock_mhz;               /* Internal Freq, in MHz        */
     bd->bi_busfreq  = get_bus_freq(clock_mhz); /* Bus Freq,      in MHz        */
     bd->bi_baudrate = baudrate;                        /* Console Baudrate             */
+#ifdef EXTBDINFO
+       bd->bi_procfreq = cpu_speed * 1000000; /* Processor Speed, In Hz */
+       bd->bi_plb_busfreq = bd->bi_busfreq;
+       bd->bi_pci_busfreq = bd->bi_busfreq;
+#endif
 
     /* Function pointers must be added after code relocation */
 #if 0
index c9d8a6bf0179197d671eeab3ff122f4aa2634db5..56e37dab2908d851a2e6bbbedc81d68071c18c1f 100644 (file)
 #define CFG_BAUDRATE_DEFAULT   CONFIG_BAUDRATE     /* default baudrate */
 
 #define CFG_TFTP_LOADADDR      0x100000        /* default load address */
+#define EXTBDINFO      1                               /* To use extended board_into (bd_t) */
 
 /*-----------------------------------------------------------------------
  * Start addresses for the final memory configuration
index 7fab83928d11340eabac6fea42e4a1d17dc50d43..ca5afa6c7f1927c0ba6d51ce2885eaab7c96397b 100644 (file)
@@ -65,6 +65,10 @@ typedef struct monitor_functions {
  * ppcboot starts it up.
  */
 typedef struct bd_info {
+#ifdef EXTBDINFO
+       unsigned char   bi_s_version[4];        /* Version of this structure */
+       unsigned char   bi_r_version[30];       /* Version of the ROM (IBM) */
+#endif
         unsigned long  bi_memstart;    /* start of  DRAM memory                */
         unsigned long  bi_memsize;     /* size  of  DRAM memory in bytes       */
         unsigned long  bi_flashstart;  /* start of FLASH memory                */
@@ -80,7 +84,14 @@ typedef struct bd_info {
         unsigned char  bi_enetaddr[6]; /* Ethernet adress                      */
         unsigned char  bi_reserved[2]; /* -- just for alignment --             */
         unsigned long  bi_intfreq;     /* Internal Freq, in MHz                */
+#ifdef EXTBDINFO
+        unsigned int   bi_procfreq;    /* CPU (Internal) Freq, in Hz           */
+#endif
         unsigned long  bi_busfreq;     /* Bus Freq, in MHz                     */
+#ifdef EXTBDINFO
+        unsigned int   bi_plb_busfreq; /* PLB Bus speed, in Hz */
+        unsigned int   bi_pci_busfreq; /* PCI Bus speed, in Hz */
+#endif
         unsigned long  bi_baudrate;    /* Console Baudrate                     */
         mon_fnc_t      bi_mon_fnc;     /* Addresses of monitor functions       */
 } bd_t;