Hi Albert, On Tue, May 15, 2012 at 09:42:59PM +0200, Albert ARIBAUD wrote: > >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)]) > > Sorry, been busier than usual. I'll try and test this tomorrow > night; if not, that'll be next week I'm afraid.
It's no hurry... I was pinging you so this does not end up forgotten. If this does not work for your boards we can always use #ifdef's. Regards, Luka _______________________________________________ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot