mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
dc2d62d3ac
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
18 lines
475 B
Diff
18 lines
475 B
Diff
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)])
|
|
|