changeset 2479:f324122c760c

* cdl/hal_arm_at91sam7xek.cdl: Added configuration options in order to support the at91sam7x512 * src/at91sam7xek_misc.c: Fix a typo in the phy initialisation code. Pin 18 was being setup to drive the powerdown pin of the phy but pin 19 was driven low instead.
author asl
date Thu, 01 May 2008 10:49:42 +0000
parents 6aecbf23ac78
children 1bc68a59cf20
files packages/hal/arm/at91/at91sam7xek/current/ChangeLog packages/hal/arm/at91/at91sam7xek/current/cdl/hal_arm_at91sam7xek.cdl packages/hal/arm/at91/at91sam7xek/current/src/at91sam7xek_misc.c
diffstat 3 files changed, 12 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/at91/at91sam7xek/current/ChangeLog
+++ b/packages/hal/arm/at91/at91sam7xek/current/ChangeLog
@@ -1,3 +1,11 @@
+2008-04-30  John Eigelaar <jeigelaar@mweb.co.za>
+
+        * cdl/hal_arm_at91sam7xek.cdl: Added configuration options in 
+	order to support the at91sam7x512
+	* src/at91sam7xek_misc.c: Fix a typo in the phy initialisation code.
+	Pin 18 was being setup to drive the powerdown pin of the phy but 
+	pin 19 was driven low instead.
+
 2007-01-17  John Eigelaar <jeigelaar@mweb.co.za>
 
         * Added hal_plf_eth_init() in order to initialise the Davicom
--- a/packages/hal/arm/at91/at91sam7xek/current/cdl/hal_arm_at91sam7xek.cdl
+++ b/packages/hal/arm/at91/at91sam7xek/current/cdl/hal_arm_at91sam7xek.cdl
@@ -56,8 +56,9 @@ cdl_package CYGPKG_HAL_ARM_AT91SAM7XEK {
     compile       at91sam7xek_misc.c
     
     requires      { CYGHWR_HAL_ARM_AT91 == "AT91SAM7S" }
-    requires      { CYGHWR_HAL_ARM_AT91SAM7 == "at91sam7x256" ||
-                    CYGHWR_HAL_ARM_AT91SAM7 == "at91sam7x128" }
+    requires      { CYGHWR_HAL_ARM_AT91SAM7 == "at91sam7x256"  || 
+                    CYGHWR_HAL_ARM_AT91SAM7 == "at91sam7x128" ||
+                    CYGHWR_HAL_ARM_AT91SAM7 == "at91sam7x512" }
 		    
     requires      { is_active(CYGPKG_DEVS_ETH_PHY) implies
                     (1 == CYGHWR_DEVS_ETH_PHY_DM9161A) }
--- a/packages/hal/arm/at91/at91sam7xek/current/src/at91sam7xek_misc.c
+++ b/packages/hal/arm/at91/at91sam7xek/current/src/at91sam7xek_misc.c
@@ -97,7 +97,7 @@ void hal_plf_eth_init(void)
 
    /* Power Down Mode */
    HAL_ARM_AT91_GPIO_CFG_DIRECTION(AT91_GPIO_PB18, AT91_PIN_OUT);
-   HAL_ARM_AT91_GPIO_PUT(AT91_GPIO_PB19,0);
+   HAL_ARM_AT91_GPIO_PUT(AT91_GPIO_PB18,0);
 
    /* All the lines setup correctly. Now do a external reset and let the phy 
       start up in the correct mode */