From 2bc7082f7376cd910b240cae08cfcc103b321fc2 Mon Sep 17 00:00:00 2001 From: luka Date: Sat, 14 Jul 2012 23:54:20 +0000 Subject: [package] uboot-kirkwood: update to 2012.04.01 iConnect board tested by: Tim Fletcher Wojciech Dubowik DockStar board tested by: Martin Mueller RaidSonic ICY BOX NAS6210 board tested by: Luka Perkov SheevaPlug was not tested but support for SheevaPlug is taken from upstream uboot and it is not reported to be broken there. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32717 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/uboot-kirkwood/patches/0003-ide_bus.patch | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 package/uboot-kirkwood/patches/0003-ide_bus.patch (limited to 'package/uboot-kirkwood/patches/0003-ide_bus.patch') 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 000000000..c94d63da9 --- /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)]) + -- cgit v1.2.3