summaryrefslogtreecommitdiff
path: root/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
diff options
context:
space:
mode:
Diffstat (limited to 'cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c')
-rw-r--r--cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c16
1 files changed, 10 insertions, 6 deletions
diff --git a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
index 8ba7b14845..5bca2a5e4f 100644
--- a/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
+++ b/cleopatre/linux-2.6.25.10-spc300/arch/arm/mach-spc300/spc300-devices.c
@@ -80,6 +80,7 @@ static struct synop3504_platform_data spc300_ethernet_data = {
.support_mii = 1,
.support_rmii = 0,
.support_gmii = 0,
+ .support_rgmii = 0,
.phy_addr = 0,
.mac_addr = {0x00, 0x13, 0xD7, 0x00, 0x00, 0x00}
};
@@ -99,12 +100,6 @@ static struct resource spc300_ethernet_resource[] = {
.end = INT_ETH,
.flags = IORESOURCE_IRQ,
},
- //TODO: create a PHY driver
-/* [2] = {
- .start = INT_ETH_PHY,
- .end = INT_ETH_PHY,
- .flags = IORESOURCE_IRQ,
- },*/
};
static struct platform_device spc300_ethernet_device = {
.name = "synopsys3504",
@@ -398,16 +393,25 @@ void spc300_add_device_ethernet(void)
spc300_ethernet_data.support_mii = 0;
spc300_ethernet_data.support_rmii = 1;
spc300_ethernet_data.support_gmii = 0;
+ spc300_ethernet_data.support_rgmii = 0;
break;
case 2: //GMII
spc300_ethernet_data.support_mii = 0;
spc300_ethernet_data.support_rmii = 0;
spc300_ethernet_data.support_gmii = 1;
+ spc300_ethernet_data.support_rgmii = 0;
+ break;
+ case 3: //RGMII
+ spc300_ethernet_data.support_mii = 0;
+ spc300_ethernet_data.support_rmii = 0;
+ spc300_ethernet_data.support_gmii = 0;
+ spc300_ethernet_data.support_rgmii = 1;
break;
default:
spc300_ethernet_data.support_mii = 1;
spc300_ethernet_data.support_rmii = 0;
spc300_ethernet_data.support_gmii = 0;
+ spc300_ethernet_data.support_rgmii = 0;
}
//Find PHY address from NVRAM