Message ID | 4FCB7CB1.9080802@gmail.com |
---|---|
State | Not Applicable |
Headers | show |
Hi Tibor, On Sun, Jun 03, 2012 at 05:03:13PM +0200, Vágó Tibor wrote: > Hi, > > I've tested this IDE patch on my NAS6220 and it works. > > U-boot detect both HDD correctly and boot from them. Thank you for testing. Regards, Luka
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)