powerpc/t4240qds: Print FPGA detail version
Qixis FPGA has tag data contains image name and build date. It is helpful to identify the FPGA image precisely. Signed-off-by: York Sun <yorksun@freescale.com> Acked-by: Timur Tabi <timur@freescale.com> Signed-off-by: Prabhakar Kushwaha <prabhakar@freescale.com> Signed-off-by: Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by: Andy Fleming <afleming@freescale.com>
This commit is contained in:
		
							parent
							
								
									4457e3e678
								
							
						
					
					
						commit
						afa2b72b08
					
				| 
						 | 
					@ -56,14 +56,15 @@ static const int8_t vsc3316_fsm2_rx[8][2] = { {0, 15}, {1, 14}, {6, 7}, {7, 6},
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int checkboard(void)
 | 
					int checkboard(void)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
 | 
						char buf[64];
 | 
				
			||||||
	u8 sw;
 | 
						u8 sw;
 | 
				
			||||||
	struct cpu_type *cpu = gd->cpu;
 | 
						struct cpu_type *cpu = gd->cpu;
 | 
				
			||||||
	ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
 | 
						ccsr_gur_t *gur = (void *)CONFIG_SYS_MPC85xx_GUTS_ADDR;
 | 
				
			||||||
	unsigned int i;
 | 
						unsigned int i;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	printf("Board: %sQDS, ", cpu->name);
 | 
						printf("Board: %sQDS, ", cpu->name);
 | 
				
			||||||
	printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, FPGA Ver: 0x%02x, ",
 | 
						printf("Sys ID: 0x%02x, Sys Ver: 0x%02x, ",
 | 
				
			||||||
		QIXIS_READ(id), QIXIS_READ(arch), QIXIS_READ(scver));
 | 
							QIXIS_READ(id), QIXIS_READ(arch));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	sw = QIXIS_READ(brdcfg[0]);
 | 
						sw = QIXIS_READ(brdcfg[0]);
 | 
				
			||||||
	sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT;
 | 
						sw = (sw & QIXIS_LBMAP_MASK) >> QIXIS_LBMAP_SHIFT;
 | 
				
			||||||
| 
						 | 
					@ -77,6 +78,12 @@ int checkboard(void)
 | 
				
			||||||
	else
 | 
						else
 | 
				
			||||||
		printf("invalid setting of SW%u\n", QIXIS_LBMAP_SWITCH);
 | 
							printf("invalid setting of SW%u\n", QIXIS_LBMAP_SWITCH);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						printf("FPGA: v%d (%s), build %d",
 | 
				
			||||||
 | 
							(int)QIXIS_READ(scver), qixis_read_tag(buf),
 | 
				
			||||||
 | 
							(int)qixis_read_minor());
 | 
				
			||||||
 | 
						/* the timestamp string contains "\n" at the end */
 | 
				
			||||||
 | 
						printf(" on %s", qixis_read_time(buf));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/* Display the RCW, so that no one gets confused as to what RCW
 | 
						/* Display the RCW, so that no one gets confused as to what RCW
 | 
				
			||||||
	 * we're actually using for this boot.
 | 
						 * we're actually using for this boot.
 | 
				
			||||||
	 */
 | 
						 */
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue