Patchwork [U-Boot] sh: Set CONFIG_SH_ETHER_PHY_MODE and CONFIG_SH_ETHER_SH7734_MII to boards with sh_eth

login
register
mail settings
Submitter Nobuhiro Iwamatsu
Date May 16, 2012, 1:40 a.m.
Message ID <1337132451-31553-1-git-send-email-iwamatsu@nigauri.org>
Download mbox | patch
Permalink /patch/159485/
State Accepted
Commit a80a661989d35620465da85d9d9f8179e9c9e843
Headers show

Comments

Nobuhiro Iwamatsu - May 16, 2012, 1:40 a.m.
The board with sh_eth needs to set CONFIG_SH_ETHER_PHY_MODE.
And SH7734 needs to set value of CONFIG_SH_ETHER_SH7734_MII.

Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
---
 include/configs/ecovec.h    |    1 +
 include/configs/espt.h      |    1 +
 include/configs/r0p7734.h   |    2 ++
 include/configs/sh7757lcr.h |    1 +
 include/configs/sh7763rdp.h |    1 +
 5 files changed, 6 insertions(+)

Patch

diff --git a/include/configs/ecovec.h b/include/configs/ecovec.h
index 4d09132..f6aacd0 100644
--- a/include/configs/ecovec.h
+++ b/include/configs/ecovec.h
@@ -95,6 +95,7 @@ 
 #define CONFIG_PHYLIB
 #define CONFIG_BITBANGMII
 #define CONFIG_BITBANGMII_MULTI
+#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 
 /* USB / R8A66597 */
 #define CONFIG_USB_R8A66597_HCD
diff --git a/include/configs/espt.h b/include/configs/espt.h
index 3df1fae..f61e2d8 100644
--- a/include/configs/espt.h
+++ b/include/configs/espt.h
@@ -124,5 +124,6 @@ 
 #define CONFIG_PHYLIB
 #define CONFIG_BITBANGMII
 #define CONFIG_BITBANGMII_MULTI
+#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 
 #endif /* __SH7763RDP_H */
diff --git a/include/configs/r0p7734.h b/include/configs/r0p7734.h
index aa3193d..f143c3b 100644
--- a/include/configs/r0p7734.h
+++ b/include/configs/r0p7734.h
@@ -62,6 +62,8 @@ 
 #define CONFIG_PHY_SMSC 1
 #define CONFIG_BITBANGMII
 #define CONFIG_BITBANGMII_MULTI
+#define CONFIG_SH_ETHER_SH7734_MII (0x00) /* MII */
+#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 #ifndef CONFIG_SH_ETHER
 # define CONFIG_SMC911X
 # define CONFIG_SMC911X_16_BIT
diff --git a/include/configs/sh7757lcr.h b/include/configs/sh7757lcr.h
index 708bff7..d5c7b72 100644
--- a/include/configs/sh7757lcr.h
+++ b/include/configs/sh7757lcr.h
@@ -109,6 +109,7 @@ 
 #define CONFIG_PHYLIB
 #define CONFIG_BITBANGMII
 #define CONFIG_BITBANGMII_MULTI
+#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 
 #define SH7757LCR_ETHERNET_MAC_BASE_SPI	0x000b0000
 #define SH7757LCR_SPI_SECTOR_SIZE	(64 * 1024)
diff --git a/include/configs/sh7763rdp.h b/include/configs/sh7763rdp.h
index 59728f5..9efbbd0 100644
--- a/include/configs/sh7763rdp.h
+++ b/include/configs/sh7763rdp.h
@@ -124,5 +124,6 @@ 
 #define CONFIG_PHYLIB
 #define CONFIG_BITBANGMII
 #define CONFIG_BITBANGMII_MULTI
+#define CONFIG_SH_ETHER_PHY_MODE PHY_INTERFACE_MODE_MII
 
 #endif /* __SH7763RDP_H */