Root/
| 1 | http://lists.denx.de/pipermail/u-boot/2012-April/122594.html |
| 2 | http://patchwork.ozlabs.org/patch/159129/ |
| 3 | --- |
| 4 | |
| 5 | diff --git a/include/ide.h b/include/ide.h |
| 6 | index 8ecc9dd..385e909 100644 |
| 7 | --- a/include/ide.h |
| 8 | +++ b/include/ide.h |
| 9 | @@ -24,7 +24,7 @@ |
| 10 | #ifndef _IDE_H |
| 11 | #define _IDE_H |
| 12 | |
| 13 | -#define IDE_BUS(dev) (dev >> 1) |
| 14 | +#define IDE_BUS(dev) (dev / (CONFIG_SYS_IDE_MAXDEVICE / CONFIG_SYS_IDE_MAXBUS)) |
| 15 | |
| 16 | #define ATA_CURR_BASE(dev) (CONFIG_SYS_ATA_BASE_ADDR+ide_bus_offset[IDE_BUS(dev)]) |
| 17 | |
| 18 |
