소스 검색

[Fix] Set the LED status register on the UC101 for the LXT971 PHY.
clear the Display after reset.

Signed-off-by: Heiko Schocher <hs@denx.de>

Heiko Schocher 18 년 전
부모
커밋
37403005cf
2개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      board/uc101/uc101.c
  2. 4 0
      cpu/mpc5xxx/fec.c

+ 2 - 0
board/uc101/uc101.c

@@ -221,6 +221,8 @@ long int initdram (int board_type)
 int checkboard (void)
 int checkboard (void)
 {
 {
 	puts ("Board: MAN UC101\n");
 	puts ("Board: MAN UC101\n");
+	/* clear the Display */
+	*(char *)(CFG_DISP_CWORD) = 0x80;
 	return 0;
 	return 0;
 }
 }
 
 

+ 4 - 0
cpu/mpc5xxx/fec.c

@@ -467,6 +467,10 @@ static int mpc5xxx_fec_init_phy(struct eth_device *dev, bd_t * bis)
 		miiphy_write(dev->name, phyAddr, 0x0, 0x8000);
 		miiphy_write(dev->name, phyAddr, 0x0, 0x8000);
 		udelay(1000);
 		udelay(1000);
 
 
+#if defined(CONFIG_UC101)
+		/* Set the LED configuration Register for the UC101 Board */
+		miiphy_write(dev->name, phyAddr, 0x14, 0x4122);
+#endif
 		if (fec->xcv_type == MII10) {
 		if (fec->xcv_type == MII10) {
 			/*
 			/*
 			 * Force 10Base-T, FDX operation
 			 * Force 10Base-T, FDX operation