public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] [PATCH] e1000: add support for 82545GM 64bit PCI-X copper variant
@ 2008-07-09 21:50 Paul Gortmaker
  2008-07-09 22:53 ` Wolfgang Denk
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Gortmaker @ 2008-07-09 21:50 UTC (permalink / raw)
  To: u-boot

This PCI-X e1000 variant works by just adding in the correct
PCI IDs in the appropriate places.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
---
 drivers/net/e1000.c |    2 ++
 drivers/net/e1000.h |    3 ++-
 include/pci_ids.h   |    1 +
 3 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/drivers/net/e1000.c b/drivers/net/e1000.c
index c31029a..060b518 100644
--- a/drivers/net/e1000.c
+++ b/drivers/net/e1000.c
@@ -75,6 +75,7 @@ static struct pci_device_id supported[] = {
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82544GC_LOM},
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82540EM},
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82545EM_COPPER},
+	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82545GM_COPPER},
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82546EB_COPPER},
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82545EM_FIBER},
 	{PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82546EB_FIBER},
@@ -636,6 +637,7 @@ e1000_set_mac_type(struct e1000_hw *hw)
 		hw->mac_type = e1000_82540;
 		break;
 	case E1000_DEV_ID_82545EM_COPPER:
+	case E1000_DEV_ID_82545GM_COPPER:
 	case E1000_DEV_ID_82545EM_FIBER:
 		hw->mac_type = e1000_82545;
 		break;
diff --git a/drivers/net/e1000.h b/drivers/net/e1000.h
index 23b2eb9..c258bc2 100644
--- a/drivers/net/e1000.h
+++ b/drivers/net/e1000.h
@@ -217,13 +217,14 @@ struct e1000_phy_stats {
 #define E1000_DEV_ID_82544GC_LOM    0x100D
 #define E1000_DEV_ID_82540EM	    0x100E
 #define E1000_DEV_ID_82540EM_LOM    0x1015
+#define E1000_DEV_ID_82545GM_COPPER 0x1026
 #define E1000_DEV_ID_82545EM_COPPER 0x100F
 #define E1000_DEV_ID_82545EM_FIBER  0x1011
 #define E1000_DEV_ID_82546EB_COPPER 0x1010
 #define E1000_DEV_ID_82546EB_FIBER  0x1012
 #define E1000_DEV_ID_82541ER	    0x1078
 #define E1000_DEV_ID_82541GI_LF	    0x107C
-#define NUM_DEV_IDS 15
+#define NUM_DEV_IDS 16
 
 #define NODE_ADDRESS_SIZE 6
 #define ETH_LENGTH_OF_ADDRESS 6
diff --git a/include/pci_ids.h b/include/pci_ids.h
index d061017..165456b 100644
--- a/include/pci_ids.h
+++ b/include/pci_ids.h
@@ -1827,6 +1827,7 @@
 #define PCI_DEVICE_ID_INTEL_82545EM_FIBER	0x1011
 #define PCI_DEVICE_ID_INTEL_82546EB_FIBER	0x1012
 #define PCI_DEVICE_ID_INTEL_82540EM_LOM		0x1015
+#define PCI_DEVICE_ID_INTEL_82545GM_COPPER	0x1026
 #define PCI_DEVICE_ID_INTEL_82559		0x1030
 
 #define PCI_DEVICE_ID_INTEL_82562ET	0x1031
-- 
1.5.6.2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [PATCH] e1000: add support for 82545GM 64bit PCI-X copper variant
  2008-07-09 21:50 [U-Boot-Users] [PATCH] e1000: add support for 82545GM 64bit PCI-X copper variant Paul Gortmaker
@ 2008-07-09 22:53 ` Wolfgang Denk
  2008-07-09 23:01   ` Ben Warren
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Denk @ 2008-07-09 22:53 UTC (permalink / raw)
  To: u-boot

In message <1215640245-23211-1-git-send-email-paul.gortmaker@windriver.com> you wrote:
> This PCI-X e1000 variant works by just adding in the correct
> PCI IDs in the appropriate places.
> 
> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
> ---
>  drivers/net/e1000.c |    2 ++
>  drivers/net/e1000.h |    3 ++-
>  include/pci_ids.h   |    1 +
>  3 files changed, 5 insertions(+), 1 deletions(-)

Applied, thanks.

Ben, this was so straightforward that I applied it directly. Hope this
is OK.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
"Well I don't see why I have to make one man  miserable  when  I  can
make so many men happy."              - Ellyn Mustard, about marriage

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot-Users] [PATCH] e1000: add support for 82545GM 64bit PCI-X copper variant
  2008-07-09 22:53 ` Wolfgang Denk
@ 2008-07-09 23:01   ` Ben Warren
  0 siblings, 0 replies; 3+ messages in thread
From: Ben Warren @ 2008-07-09 23:01 UTC (permalink / raw)
  To: u-boot

Wolfgang Denk wrote:
> In message <1215640245-23211-1-git-send-email-paul.gortmaker@windriver.com> you wrote:
>   
>> This PCI-X e1000 variant works by just adding in the correct
>> PCI IDs in the appropriate places.
>>
>> Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
>> ---
>>  drivers/net/e1000.c |    2 ++
>>  drivers/net/e1000.h |    3 ++-
>>  include/pci_ids.h   |    1 +
>>  3 files changed, 5 insertions(+), 1 deletions(-)
>>     
>
> Applied, thanks.
>
> Ben, this was so straightforward that I applied it directly. Hope this
> is OK.
>   
That's cool.  I acked it in my head :) and was going to sanity-check 
applying it tonight.

regards,
Ben

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-07-09 23:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-09 21:50 [U-Boot-Users] [PATCH] e1000: add support for 82545GM 64bit PCI-X copper variant Paul Gortmaker
2008-07-09 22:53 ` Wolfgang Denk
2008-07-09 23:01   ` Ben Warren

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox