Skip to contentSkip to conversation

LEON SPARC V8 processor support for linux-2.6.10

PATCH In review Jiri Gaisler 1 participant 2 messages Jan 4, 2005 – Jan 5, 2005

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 4/7 LEON SPARC V8 processor support for linux-2.6.10

Leon3 serial+ethermac driver:

[4/7] diff2.6.10_driver_amba.diff diff for drivers/amba

drivers/Makefile renamed from linux-2.6.10/drivers/Makefile +1 -0
diff -Naur ../linux-2.6.10/drivers/Makefile linux-2.6.10/drivers/Makefile
@@ -60,3 +60,4 @@
 obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
 obj-$(CONFIG_MMC)		+= mmc/
 obj-y				+= firmware/
+obj-$(CONFIG_LEON_3)            += amba/
drivers/amba/Kconfig renamed from linux-2.6.10/drivers/amba/Kconfig +12 -0
diff -Naur ../linux-2.6.10/drivers/amba/Kconfig linux-2.6.10/drivers/amba/Kconfig
@@ -0,0 +1,12 @@
+
+#------------------------------------------------------------------------------
+# Amba device driver configuration
+#------------------------------------------------------------------------------
+
+menu "Grlib: Amba device driver configuration"
+
+source "drivers/amba/gaisler/Kconfig"
+source "drivers/amba/opencores/Kconfig"
+
+endmenu
+
drivers/amba/Makefile renamed from linux-2.6.10/drivers/amba/Makefile +7 -0
diff -Naur ../linux-2.6.10/drivers/amba/Makefile linux-2.6.10/drivers/amba/Makefile
@@ -0,0 +1,7 @@
+#
+# Makefile for the PCI bus specific drivers.
+#
+
+obj-y		+= amba.o amba_driver.o
+
+obj-y           += gaisler/ opencores/
drivers/amba/amba.c renamed from linux-2.6.10/drivers/amba/amba.c +181 -0

181 lines not on this page · raw message

drivers/amba/amba_driver.c renamed from linux-2.6.10/drivers/amba/amba_driver.c +78 -0

78 lines not on this page · raw message

drivers/amba/gaisler/Kconfig renamed from linux-2.6.10/drivers/amba/gaisler/Kconfig +12 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/Kconfig linux-2.6.10/drivers/amba/gaisler/Kconfig
@@ -0,0 +1,12 @@
+
+menu "Vendor Gaisler"
+
+config GRLIB_GAISLER_APBUART
+	bool "Grlib apbuart driver" 
+	default y
+	---help---
+	  Add the driver for the grlib apbuart serial core.
+
+endmenu
+
+
drivers/amba/gaisler/Makefile renamed from linux-2.6.10/drivers/amba/gaisler/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/Makefile linux-2.6.10/drivers/amba/gaisler/Makefile
@@ -0,0 +1,3 @@
+
+obj-$(CONFIG_GRLIB_GAISLER_APBUART)		+= apbuart/ 
+
drivers/amba/gaisler/apbuart/Makefile renamed from linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile
@@ -0,0 +1,3 @@
+
+obj-y		+= apbuart.o
+
drivers/amba/gaisler/apbuart/apbuart.c renamed from linux-2.6.10/drivers/amba/gaisler/apbuart/apbuart.c +729 -0

729 lines not on this page · raw message

drivers/amba/opencores/Kconfig renamed from linux-2.6.10/drivers/amba/opencores/Kconfig +36 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/Kconfig linux-2.6.10/drivers/amba/opencores/Kconfig
@@ -0,0 +1,36 @@
+
+menu "Vendor Opencores"
+
+config GRLIB_OPENCORES_ETHERMAC
+	bool "Grlib's opencores ethermac driver" 
+	default y
+	depends on NETDEVICES
+	---help---
+	  Add the driver for the grlib opencore ethermac.
+
+
+config GRLIB_OPENCORES_ETHERMAC_MACMSB
+	hex "MSB 24 bits of ethern number (hex)" 
+	default 00007A
+	depends on GRLIB_OPENCORES_ETHERMAC
+	---help---
+	  Most significant 24 bits of the default MAC address
+	  that is initialized when driver probes. A good guess 
+	  is 00007A.
+
+config GRLIB_OPENCORES_ETHERMAC_MACLSB
+	hex "LSB 24 bits of ethern number (hex)" 
+	default CC0012
+	depends on GRLIB_OPENCORES_ETHERMAC
+	---help---
+	  Least significant 24 bits of the default MAC address
+	  that is initialized when driver probes. A good guess 
+	  is CC0012.
+
+
+
+
+endmenu
+
+
+
drivers/amba/opencores/Makefile renamed from linux-2.6.10/drivers/amba/opencores/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/Makefile linux-2.6.10/drivers/amba/opencores/Makefile
@@ -0,0 +1,3 @@
+
+obj-$(CONFIG_GRLIB_OPENCORES_ETHERMAC)		+= ethermac/ 
+
drivers/amba/opencores/ethermac/Makefile renamed from linux-2.6.10/drivers/amba/opencores/ethermac/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/ethermac/Makefile linux-2.6.10/drivers/amba/opencores/ethermac/Makefile
@@ -0,0 +1,3 @@
+
+obj-y		+= open_eth.o
+
drivers/amba/opencores/ethermac/open_eth.c renamed from linux-2.6.10/drivers/amba/opencores/ethermac/open_eth.c +1181 -0

1,181 lines not on this page · raw message

drivers/amba/opencores/ethermac/open_eth.h renamed from linux-2.6.10/drivers/amba/opencores/ethermac/open_eth.h +143 -0

143 lines not on this page · raw message

#1 lore raw

Leon3 serial+ethermac driver, updated.

[4/7] diff2.6.10_driver_amba.diff diff for drivers/amba

Signature · 4 lines
--------------------------------------------------------------------------
Gaisler Research, 1:a Långgatan 19, 413 27 Goteborg, Sweden, +46-317758650
fax: +46-31421407 email: [email protected], home page: www.gaisler.com
--------------------------------------------------------------------------
drivers/Makefile renamed from linux-2.6.10/drivers/Makefile +1 -0
diff -Naur ../linux-2.6.10/drivers/Makefile linux-2.6.10/drivers/Makefile
@@ -60,3 +60,4 @@
 obj-$(CONFIG_CPU_FREQ)		+= cpufreq/
 obj-$(CONFIG_MMC)		+= mmc/
 obj-y				+= firmware/
+obj-$(CONFIG_LEON_3)            += amba/
drivers/amba/Kconfig renamed from linux-2.6.10/drivers/amba/Kconfig +12 -0
diff -Naur ../linux-2.6.10/drivers/amba/Kconfig linux-2.6.10/drivers/amba/Kconfig
@@ -0,0 +1,12 @@
+
+#------------------------------------------------------------------------------
+# Amba device driver configuration
+#------------------------------------------------------------------------------
+
+menu "Grlib: Amba device driver configuration"
+
+source "drivers/amba/gaisler/Kconfig"
+source "drivers/amba/opencores/Kconfig"
+
+endmenu
+
drivers/amba/Makefile renamed from linux-2.6.10/drivers/amba/Makefile +7 -0
diff -Naur ../linux-2.6.10/drivers/amba/Makefile linux-2.6.10/drivers/amba/Makefile
@@ -0,0 +1,7 @@
+#
+# Makefile for the PCI bus specific drivers.
+#
+
+obj-y		+= amba.o amba_driver.o
+
+obj-y           += gaisler/ opencores/
drivers/amba/amba.c renamed from linux-2.6.10/drivers/amba/amba.c +181 -0

181 lines not on this page · raw message

drivers/amba/amba_driver.c renamed from linux-2.6.10/drivers/amba/amba_driver.c +78 -0

78 lines not on this page · raw message

drivers/amba/gaisler/Kconfig renamed from linux-2.6.10/drivers/amba/gaisler/Kconfig +12 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/Kconfig linux-2.6.10/drivers/amba/gaisler/Kconfig
@@ -0,0 +1,12 @@
+
+menu "Vendor Gaisler"
+
+config GRLIB_GAISLER_APBUART
+	bool "Grlib apbuart driver" 
+	default y
+	---help---
+	  Add the driver for the grlib apbuart serial core.
+
+endmenu
+
+
drivers/amba/gaisler/Makefile renamed from linux-2.6.10/drivers/amba/gaisler/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/Makefile linux-2.6.10/drivers/amba/gaisler/Makefile
@@ -0,0 +1,3 @@
+
+obj-$(CONFIG_GRLIB_GAISLER_APBUART)		+= apbuart/ 
+
drivers/amba/gaisler/apbuart/Makefile renamed from linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile linux-2.6.10/drivers/amba/gaisler/apbuart/Makefile
@@ -0,0 +1,3 @@
+
+obj-y		+= apbuart.o
+
drivers/amba/gaisler/apbuart/apbuart.c renamed from linux-2.6.10/drivers/amba/gaisler/apbuart/apbuart.c +729 -0

729 lines not on this page · raw message

drivers/amba/opencores/Kconfig renamed from linux-2.6.10/drivers/amba/opencores/Kconfig +36 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/Kconfig linux-2.6.10/drivers/amba/opencores/Kconfig
@@ -0,0 +1,36 @@
+
+menu "Vendor Opencores"
+
+config GRLIB_OPENCORES_ETHERMAC
+	bool "Grlib's opencores ethermac driver" 
+	default y
+	depends on NETDEVICES
+	---help---
+	  Add the driver for the grlib opencore ethermac.
+
+
+config GRLIB_OPENCORES_ETHERMAC_MACMSB
+	hex "MSB 24 bits of ethern number (hex)" 
+	default 00007A
+	depends on GRLIB_OPENCORES_ETHERMAC
+	---help---
+	  Most significant 24 bits of the default MAC address
+	  that is initialized when driver probes. A good guess 
+	  is 00007A.
+
+config GRLIB_OPENCORES_ETHERMAC_MACLSB
+	hex "LSB 24 bits of ethern number (hex)" 
+	default CC0012
+	depends on GRLIB_OPENCORES_ETHERMAC
+	---help---
+	  Least significant 24 bits of the default MAC address
+	  that is initialized when driver probes. A good guess 
+	  is CC0012.
+
+
+
+
+endmenu
+
+
+
drivers/amba/opencores/Makefile renamed from linux-2.6.10/drivers/amba/opencores/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/Makefile linux-2.6.10/drivers/amba/opencores/Makefile
@@ -0,0 +1,3 @@
+
+obj-$(CONFIG_GRLIB_OPENCORES_ETHERMAC)		+= ethermac/ 
+
drivers/amba/opencores/ethermac/Makefile renamed from linux-2.6.10/drivers/amba/opencores/ethermac/Makefile +3 -0
diff -Naur ../linux-2.6.10/drivers/amba/opencores/ethermac/Makefile linux-2.6.10/drivers/amba/opencores/ethermac/Makefile
@@ -0,0 +1,3 @@
+
+obj-y		+= open_eth.o
+
drivers/amba/opencores/ethermac/open_eth.c renamed from linux-2.6.10/drivers/amba/opencores/ethermac/open_eth.c +1181 -0

1,181 lines not on this page · raw message

drivers/amba/opencores/ethermac/open_eth.h renamed from linux-2.6.10/drivers/amba/opencores/ethermac/open_eth.h +143 -0

143 lines not on this page · raw message

drivers/net/Space.c renamed from linux-2.6.10/drivers/net/Space.c +9 -0
diff -Naur ../linux-2.6.10/drivers/net/Space.c linux-2.6.10/drivers/net/Space.c
@@ -93,6 +93,7 @@
 extern struct net_device *mc32_probe(int unit);
 extern struct net_device *cops_probe(int unit);
 extern struct net_device *ltpc_probe(void);
+extern struct net_device *grlib_oeth_probe(int unit);
   
 /* Detachable devices ("pocket adaptors") */
 extern struct net_device *de620_probe(int unit);
@@ -312,6 +313,13 @@
 	{NULL, 0},
 };
 
+static struct devprobe2 sparc_probes[] __initdata = {
+#ifdef CONFIG_GRLIB_OPENCORES_ETHERMAC
+	{grlib_oeth_probe, 0},
+#endif
+	{NULL, 0},
+};
+
 /*
  * Unified ethernet device probe, segmented per architecture and
  * per bus interface. This drives the legacy devices only for now.
@@ -326,6 +334,7 @@
 
 	(void)(	probe_list2(unit, m68k_probes, base_addr == 0) &&
 		probe_list2(unit, mips_probes, base_addr == 0) &&
+		probe_list2(unit, sparc_probes, base_addr == 0) &&
 		probe_list2(unit, eisa_probes, base_addr == 0) &&
 		probe_list2(unit, mca_probes, base_addr == 0) &&
 		probe_list2(unit, isa_probes, base_addr == 0) &&