aboutsummaryrefslogtreecommitdiffstats
path: root/package/uboot-kirkwood/patches/0003-ide_bus.patch
diff options
context:
space:
mode:
authorLuka Perkov <luka@openwrt.org>2012-07-14 23:54:20 +0000
committerLuka Perkov <luka@openwrt.org>2012-07-14 23:54:20 +0000
commitdc2d62d3ace206ae37928e62576729f7abc3f30c (patch)
treeb5006e541734af88db27e2ef9a7d7db57e7432ee /package/uboot-kirkwood/patches/0003-ide_bus.patch
parent8f563df48f9e6baba81e4d440d136b27be84a400 (diff)
downloadupstream-dc2d62d3ace206ae37928e62576729f7abc3f30c.tar.gz
upstream-dc2d62d3ace206ae37928e62576729f7abc3f30c.tar.bz2
upstream-dc2d62d3ace206ae37928e62576729f7abc3f30c.zip
uboot-kirkwood: update to 2012.04.01
iConnect board tested by: Tim Fletcher <tim@night-shade.org.uk> Wojciech Dubowik <wojciech.dubowik@neratec.com> DockStar board tested by: Martin Mueller <mm@sig21.net> RaidSonic ICY BOX NAS6210 board tested by: Luka Perkov <uboot@lukaperkov.net> SheevaPlug was not tested but support for SheevaPlug is taken from upstream uboot and it is not reported to be broken there. SVN-Revision: 32717
Diffstat (limited to 'package/uboot-kirkwood/patches/0003-ide_bus.patch')
-rw-r--r--package/uboot-kirkwood/patches/0003-ide_bus.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/uboot-kirkwood/patches/0003-ide_bus.patch b/package/uboot-kirkwood/patches/0003-ide_bus.patch
new file mode 100644
index 0000000000..c94d63da9d
--- /dev/null
+++ b/package/uboot-kirkwood/patches/0003-ide_bus.patch
@@ -0,0 +1,17 @@
+http://lists.denx.de/pipermail/u-boot/2012-April/122594.html
+http://patchwork.ozlabs.org/patch/159129/
+---
+
+diff --git a/include/ide.h b/include/ide.h
+index 8ecc9dd..385e909 100644
+--- a/include/ide.h
++++ b/include/ide.h
+@@ -24,7 +24,7 @@
+ #ifndef _IDE_H
+ #define _IDE_H
+
+-#define IDE_BUS(dev) (dev >> 1)
++#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS))
+
+ #define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)])
+