summaryrefslogtreecommitdiffstats
path: root/target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch
diff options
context:
space:
mode:
authorUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-19 22:42:03 +0000
committerUlf Samuelsson <ulf.samuelsson@atmel.com>2009-01-19 22:42:03 +0000
commit5a4676144660f6e92bbe5e0de6b38094df155021 (patch)
tree064a71e50fa34e6a26c44b5597b3c4e1fc45556a /target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch
parentb71c76a10a21320a9401cc4246079e9f4f47fae1 (diff)
downloadbuildroot-novena-5a4676144660f6e92bbe5e0de6b38094df155021.tar.gz
buildroot-novena-5a4676144660f6e92bbe5e0de6b38094df155021.zip
Bump u-boot to -2009.01-rc3, and add possibility to apply the arch-at91 patches if using an at91
Diffstat (limited to 'target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch')
-rw-r--r--target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch b/target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch
new file mode 100644
index 000000000..81ab7c6e6
--- /dev/null
+++ b/target/device/Atmel/arch-arm/u-boot/2009.01-rc3/u-boot-2009.01-rc1-006-drivers-net-macb.c.patch
@@ -0,0 +1,28 @@
+diff -urN u-boot-2008.10-0rig/drivers/net/macb.c u-boot-2008.10/drivers/net/macb.c
+--- u-boot-2008.10-0rig/drivers/net/macb.c 2008-10-18 21:30:31.000000000 +0200
++++ u-boot-2008.10/drivers/net/macb.c 2008-12-28 23:44:11.000000000 +0100
+@@ -415,18 +415,16 @@
+
+ /* choose RMII or MII mode. This depends on the board */
+ #ifdef CONFIG_RMII
+-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
+- defined(CONFIG_AT91SAM9263)
+- macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
+-#else
++#if defined(CONFIG_AVR32)
+ macb_writel(macb, USRIO, 0);
+-#endif
+ #else
+-#if defined(CONFIG_AT91CAP9) || defined(CONFIG_AT91SAM9260) || \
+- defined(CONFIG_AT91SAM9263)
+- macb_writel(macb, USRIO, MACB_BIT(CLKEN));
++ macb_writel(macb, USRIO, MACB_BIT(RMII) | MACB_BIT(CLKEN));
++#endif
+ #else
++#if defined(CONFIG_AVR32)
+ macb_writel(macb, USRIO, MACB_BIT(MII));
++#else
++ macb_writel(macb, USRIO, MACB_BIT(CLKEN));
+ #endif
+ #endif /* CONFIG_RMII */
+