Skip to contentSkip to conversation

EST8260 has bogus bd_info

PATCH New Paul Gortmaker 1 participant 1 message Feb 16, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 EST8260 has bogus bd_info

I managed to rescue an old EST8260 board from a life as a doorstop, and after sticking u-boot on it, I was getting nothing but a silent death. I eventually discovered it wouldn't boot because est8260.h had its own personal copy of an ancient bd_info struct that doesn't match any U-boot from this century.

arch/ppc/platforms/est8260.h +5 -20
@@ -6,30 +6,15 @@
 #ifndef __EST8260_PLATFORM
 #define __EST8260_PLATFORM
 
+#include <linux/config.h>
+#include <asm/ppcboot.h>
+
 #define CPM_MAP_ADDR		((uint)0xf0000000)
 
 #define BOOTROM_RESTART_ADDR	((uint)0xff000104)
 
 /* For our show_cpuinfo hooks. */
-#define CPUINFO_VENDOR		"EST Corporation"
-#define CPUINFO_MACHINE		"SBC8260 PowerPC"
-
-/* A Board Information structure that is given to a program when
- * prom starts it up.
- */
-typedef struct bd_info {
-	unsigned int	bi_memstart;	/* Memory start address */
-	unsigned int	bi_memsize;	/* Memory (end) size in bytes */
-	unsigned int	bi_intfreq;	/* Internal Freq, in Hz */
-	unsigned int	bi_busfreq;	/* Bus Freq, in MHz */
-	unsigned int	bi_cpmfreq;	/* CPM Freq, in MHz */
-	unsigned int	bi_brgfreq;	/* BRG Freq, in MHz */
-	unsigned int	bi_vco;		/* VCO Out from PLL */
-	unsigned int	bi_baudrate;	/* Default console baud rate */
-	unsigned int	bi_immr;	/* IMMR when called from boot rom */
-	unsigned char	bi_enetaddr[6];
-} bd_t;
-
-extern bd_t m8xx_board_info;
+#define CPUINFO_VENDOR		"Wind River"
+#define CPUINFO_MACHINE		"EST SBC8260 PowerPC"
 
 #endif 	/* __EST8260_PLATFORM */