This is the mail archive of the ecos-patches@sourceware.org mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Eth/Serial Patch for PowerPC 405EP


patch enables build of ethernet and serial device drivers for PowerPC 405EP

This time with Changelog ;-)
diff -Naur ecos-cvs/packages/devs/eth/powerpc/ppc405/current/cdl/ppc405_eth_drivers.cdl ecos/packages/devs/eth/powerpc/ppc405/current/cdl/ppc405_eth_drivers.cdl
--- ecos-cvs/packages/devs/eth/powerpc/ppc405/current/cdl/ppc405_eth_drivers.cdl	2003-09-19 19:11:20.000000000 +0200
+++ ecos/packages/devs/eth/powerpc/ppc405/current/cdl/ppc405_eth_drivers.cdl	2005-08-25 16:17:49.000000000 +0200
@@ -57,7 +57,7 @@
     active_if	  CYGPKG_IO_ETH_DRIVERS
     active_if	  CYGPKG_HAL_POWERPC 
     active_if	  CYGPKG_HAL_POWERPC_PPC40x
-    requires      { CYGHWR_HAL_POWERPC_PPC4XX == "405GP" }
+    requires      { (CYGHWR_HAL_POWERPC_PPC4XX == "405GP") || (CYGHWR_HAL_POWERPC_PPC4XX == "405EP") }
     requires      CYGPKG_DEVS_ETH_PHY
 
     implements    CYGHWR_NET_DRIVERS
@@ -74,7 +74,7 @@
     }
     requires { CYGHWR_DEVS_ETH_POWERPC_PPC405_NET_DRIVERS == 1 }
 
-    description   "Ethernet driver for PowerPC 405GP boards."
+    description   "Ethernet driver for PowerPC 405GP/EP boards."
     compile       -library=libextras.a if_ppc405.c
 
     cdl_option CYGNUM_DEVS_ETH_POWERPC_PPC405_BUFSIZE {
diff -Naur ecos-cvs/packages/devs/eth/powerpc/ppc405/current/ChangeLog ecos/packages/devs/eth/powerpc/ppc405/current/ChangeLog
--- ecos-cvs/packages/devs/eth/powerpc/ppc405/current/ChangeLog	2005-02-03 17:01:10.000000000 +0100
+++ ecos/packages/devs/eth/powerpc/ppc405/current/ChangeLog	2005-08-25 16:16:57.000000000 +0200
@@ -1,3 +1,7 @@
+2005-08-25  Markus Schade <marks@peppercon.de>
+
+	* enabled build for PowerPC 405EP
+
 2005-02-03  Gary Thomas  <gary@mlbassoc.com>
 
 	* src/ppc405_enet.h: 
diff -Naur ecos-cvs/packages/devs/serial/powerpc/ppc405/current/cdl/ser_powerpc_ppc405.cdl ecos/packages/devs/serial/powerpc/ppc405/current/cdl/ser_powerpc_ppc405.cdl
--- ecos-cvs/packages/devs/serial/powerpc/ppc405/current/cdl/ser_powerpc_ppc405.cdl	2003-09-19 19:11:24.000000000 +0200
+++ ecos/packages/devs/serial/powerpc/ppc405/current/cdl/ser_powerpc_ppc405.cdl	2005-08-25 16:22:29.000000000 +0200
@@ -58,14 +58,14 @@
     active_if     CYGPKG_IO_SERIAL
     active_if     CYGPKG_HAL_POWERPC_PPC40x  
 # Only the 405GP has these ports
-    active_if     { CYGHWR_HAL_POWERPC_PPC4XX == "405GP" }
+    active_if     { CYGHWR_HAL_POWERPC_PPC4XX == "405GP" || CYGHWR_HAL_POWERPC_PPC4XX == "405EP" }
 
     requires      CYGPKG_ERROR
     include_dir   cyg/io
 
     description   "
            This option enables the serial 16x5x device drivers for the
-           PowerPC PPC405GP based platforms."
+           PowerPC PPC405GP/EP based platforms."
 
     # FIXME: This really belongs in the GENERIC_16X5X package
     cdl_interface CYGINT_IO_SERIAL_GENERIC_16X5X_REQUIRED {
@@ -84,7 +84,7 @@
     }
 
     cdl_component CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL0 {
-        display       "PowerPC PPC405GP serial port 0 driver"
+        display       "PowerPC PPC405GP/EP serial port 0 driver"
         flavor        bool
         default_value 1
 
@@ -97,7 +97,7 @@
             PowerPC PPC405GP port 0."
 
         cdl_option CYGDAT_IO_SERIAL_POWERPC_PPC405_SERIAL0_NAME {
-            display       "Device name for PowerPC PPC405GP serial port 0 driver"
+            display       "Device name for PowerPC PPC405GP/EP serial port 0 driver"
             flavor        data
             default_value {"\"/dev/ser0\""}
             description   "
@@ -111,7 +111,7 @@
             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
                             3600 4800 7200 9600 14400 19200 38400
                             57600 115200 230400 }
-            default_value 38400
+            default_value 115200
             description   "
                 This option specifies the default baud rate (speed)
                 for the PowerPC PPC405GP port 0."
@@ -156,7 +156,7 @@
             legal_values  { 50 75 110 "134_5" 150 200 300 600 1200 1800 2400
                             3600 4800 7200 9600 14400 19200 38400
                             57600 115200 230400 }
-            default_value 38400
+            default_value 115200
             description   "
                 This option specifies the default baud rate (speed)
                 for the PowerPC PPC405GP port 1."
@@ -169,7 +169,7 @@
              default_value 128
              description   "
                  This option specifies the size of the internal
-                 buffers used for the PowerPC PPC405GP port 1."
+                 buffers used for the PowerPC PPC405GP/EP port 1."
          }
     }
 
diff -Naur ecos-cvs/packages/devs/serial/powerpc/ppc405/current/ChangeLog ecos/packages/devs/serial/powerpc/ppc405/current/ChangeLog
--- ecos-cvs/packages/devs/serial/powerpc/ppc405/current/ChangeLog	2003-09-19 19:11:24.000000000 +0200
+++ ecos/packages/devs/serial/powerpc/ppc405/current/ChangeLog	2005-08-25 16:21:46.000000000 +0200
@@ -1,3 +1,7 @@
+2005-08-25  Markus Schade  <marks@peppercon.de>
+
+	* enabled build for PowerPC 405EP
+
 2003-09-19  Gary Thomas  <gary@mlbassoc.com>
 
 	* include/powerpc_ppc405_ser.inl: 
diff -Naur ecos-cvs/packages/devs/serial/powerpc/ppc405/current/include/powerpc_ppc405_ser.inl ecos/packages/devs/serial/powerpc/ppc405/current/include/powerpc_ppc405_ser.inl
--- ecos-cvs/packages/devs/serial/powerpc/ppc405/current/include/powerpc_ppc405_ser.inl	2003-09-19 19:11:24.000000000 +0200
+++ ecos/packages/devs/serial/powerpc/ppc405/current/include/powerpc_ppc405_ser.inl	2005-03-31 15:55:50.000000000 +0200
@@ -2,7 +2,7 @@
 //
 //      io/serial/powerpc/powerpc_ppc405_ser.inl
 //
-//      PPC405GP Serial I/O definitions
+//      PPC405GP/EP Serial I/O definitions
 //
 //==========================================================================
 //####ECOSGPLCOPYRIGHTBEGIN####
@@ -44,7 +44,7 @@
 // Author(s):    gthomas
 // Contributors: 
 // Date:         2003-09-16
-// Purpose:      PowerPC PPC405GP serial drivers
+// Purpose:      PowerPC PPC405GP/EP serial drivers
 // Description: 
 //
 //####DESCRIPTIONEND####
@@ -87,7 +87,12 @@
 #define CYG_IO_SERIAL_GENERIC_16X5X_BAUD_GENERATOR cyg_var_baud_generator
 
 #ifdef CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL0
+#if defined(CYGHWR_HAL_POWERPC_PPC4XX_405GP)
 static pc_serial_info ppc405_serial_info0 = {_PPC405GP_UART0, CYGNUM_HAL_INTERRUPT_UART0};
+#endif
+#if defined(CYGHWR_HAL_POWERPC_PPC4XX_405EP)
+static pc_serial_info ppc405_serial_info0 = {_PPC405EP_UART0, CYGNUM_HAL_INTERRUPT_UART0};
+#endif
 #if CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BUFSIZE > 0
 static unsigned char ppc405_serial_out_buf0[CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BUFSIZE];
 static unsigned char ppc405_serial_in_buf0[CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL0_BUFSIZE];
@@ -126,7 +131,12 @@
 #endif //  CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL0
 
 #ifdef CYGPKG_IO_SERIAL_POWERPC_PPC405_SERIAL1
+#if defined(CYGHWR_HAL_POWERPC_PPC4XX_405GP)
 static pc_serial_info ppc405_serial_info1 = {_PPC405GP_UART1, CYGNUM_HAL_INTERRUPT_UART1};
+#endif
+#if defined(CYGHWR_HAL_POWERPC_PPC4XX_405EP)
+static pc_serial_info ppc405_serial_info1 = {_PPC405EP_UART1, CYGNUM_HAL_INTERRUPT_UART1};
+#endif
 #if CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BUFSIZE > 0
 static unsigned char ppc405_serial_out_buf1[CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BUFSIZE];
 static unsigned char ppc405_serial_in_buf1[CYGNUM_IO_SERIAL_POWERPC_PPC405_SERIAL1_BUFSIZE];

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]